mirror of
https://github.com/apache/impala.git
synced 2026-01-03 06:00:52 -05:00
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
38 lines
891 B
Plaintext
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
|
|
====
|