Files
impala/testdata/workloads/functional-query/queries/QueryTest/kudu_stats.test
Zoltan Borok-Nagy 2ee914d5b3 IMPALA-5903: Inconsistent specification of result set and result set metadata
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>
2018-04-11 02:21:48 +00:00

33 lines
1.1 KiB
Plaintext

====
---- QUERY
create table simple (id int primary key, name string, valf float, vali bigint)
partition by range (partition values < 10, partition 10 <= values < 30,
partition 30 <= values) stored as kudu tblproperties('kudu.num_tablet_replicas' = '1')
---- RESULTS
'Table has been created.'
====
---- QUERY
show table stats simple
---- RESULTS
-1,'','8000000A',regex:.*?:\d+,1
-1,'8000000A','8000001E',regex:.*?:\d+,1
-1,'8000001E','',regex:.*?:\d+,1
---- TYPES
INT,STRING,STRING,STRING,INT
---- LABELS
# Rows,Start Key,Stop Key,Leader Replica,# Replicas
====
---- QUERY
# IMPALA-3373: Computing stats on a Kudu table lead to duplicate columns shown for the
# table.
compute stats simple;
describe simple;
---- RESULTS
'id','int','','true','false','','AUTO_ENCODING','DEFAULT_COMPRESSION','0'
'name','string','','false','true','','AUTO_ENCODING','DEFAULT_COMPRESSION','0'
'valf','float','','false','true','','AUTO_ENCODING','DEFAULT_COMPRESSION','0'
'vali','bigint','','false','true','','AUTO_ENCODING','DEFAULT_COMPRESSION','0'
---- TYPES
STRING,STRING,STRING,STRING,STRING,STRING,STRING,STRING,STRING
====