mirror of
https://github.com/apache/impala.git
synced 2026-01-07 00:02:28 -05:00
Before this commit it was quite random which DDL oprations returned a result set and which didn't. With this commit, every DDL operations return a summary of its execution. They declare their result set schema in Frontend.java, and provide the summary in CalatogOpExecutor.java. Updated the tests according to the new behavior. Change-Id: Ic542fb8e49e850052416ac663ee329ee3974e3b9 Reviewed-on: http://gerrit.cloudera.org:8080/9090 Reviewed-by: Alex Behm <alex.behm@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
30 lines
546 B
Plaintext
30 lines
546 B
Plaintext
====
|
|
---- QUERY
|
|
create external table tbl
|
|
(c0 string, c1 string, c2 string, c3 int, c4 int, c5 int)
|
|
row format delimited fields terminated by ','
|
|
location 'file://$IMPALA_HOME/testdata/data/local_tbl'
|
|
---- RESULTS
|
|
'Table has been created.'
|
|
====
|
|
---- QUERY
|
|
describe tbl
|
|
---- RESULTS
|
|
'c0','string',''
|
|
'c1','string',''
|
|
'c2','string',''
|
|
'c3','int',''
|
|
'c4','int',''
|
|
'c5','int',''
|
|
---- TYPES
|
|
STRING, STRING, STRING
|
|
====
|
|
---- QUERY
|
|
select * from tbl
|
|
---- RESULTS
|
|
'a','b','c',1,2,3
|
|
'x','y','z',9,8,7
|
|
---- TYPES
|
|
STRING, STRING, STRING, INT, INT, INT
|
|
====
|