Files
impala/testdata/workloads/functional-query/queries/QueryTest/kudu_stats.test
Casey Ching 5387636140 IMPALA-3373: Computing stats on Kudu table duplicates the columns
Computing stats caused the Kudu table to be reloaded in the catalog and
the column definitions ended up getting appended to the existing ones.
There was already a method to clear the column state, so now that is
called during load().

Change-Id: I9ad42338750e9d8873a3584bc22a7cd7bd465c5d
Reviewed-on: http://gerrit.cloudera.org:8080/2813
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: Internal Jenkins
2016-05-12 14:17:34 -07:00

38 lines
891 B
Plaintext

====
---- QUERY
create table simple (id int, name string, valf float, vali bigint)
DISTRIBUTE BY RANGE SPLIT ROWS ((10), (30))
TBLPROPERTIES(
'storage_handler' = 'com.cloudera.kudu.hive.KuduStorageHandler',
'kudu.table_name' = 'simple',
'kudu.master_addresses' = '127.0.0.1',
'kudu.key_columns' = 'id',
'kudu.num_tablet_replicas' = '2'
)
---- RESULTS
====
---- QUERY
show table stats simple
---- RESULTS
-1,'','8000000A',regex:.*?:\d+,2
-1,'8000000A','8000001E',regex:.*?:\d+,2
-1,'8000001E','',regex:.*?:\d+,2
---- 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',''
'name','string',''
'valf','float',''
'vali','bigint',''
---- TYPES
STRING,STRING,STRING
====