mirror of
https://github.com/apache/impala.git
synced 2026-01-07 18:02:33 -05:00
IMP-1227: Ignore columns of unsupported types in compute stats. Enclose identifiers that are Impala keywords in quotes.
Change-Id: Ie7fa6da2869090428c9229c44b973ecccbb49e8e Reviewed-on: http://gerrit.ent.cloudera.com:8080/1357 Reviewed-by: Alex Behm <alex.behm@cloudera.com> Tested-by: jenkins Reviewed-on: http://gerrit.ent.cloudera.com:8080/1368
This commit is contained in:
@@ -308,3 +308,35 @@ COLUMN, TYPE, #DISTINCT VALUES, #NULLS, MAX SIZE, AVG SIZE
|
||||
---- TYPES
|
||||
STRING, STRING, BIGINT, BIGINT, DOUBLE, DOUBLE
|
||||
====
|
||||
---- QUERY
|
||||
# IMP-1227: Test computing stats on an HBase table that has a
|
||||
# complex-typed column that Impala does not yet support.
|
||||
create table compute_stats_db.map_table
|
||||
like functional_hbase.map_table_hbase;
|
||||
====
|
||||
---- QUERY
|
||||
compute stats compute_stats_db.map_table
|
||||
---- RESULTS
|
||||
'Updated 1 partition(s) and 1 column(s).'
|
||||
---- TYPES
|
||||
STRING
|
||||
====
|
||||
---- QUERY: VERIFY_IS_EQUAL
|
||||
show table stats compute_stats_db.map_table
|
||||
---- LABELS
|
||||
REGION LOCATION, START ROWKEY, EST. #ROWS, SIZE
|
||||
---- RESULTS
|
||||
regex:.+,'',regex:.+,regex:.+
|
||||
---- TYPES
|
||||
STRING, STRING, BIGINT, STRING
|
||||
====
|
||||
---- QUERY
|
||||
show column stats compute_stats_db.map_table
|
||||
---- LABELS
|
||||
COLUMN, TYPE, #DISTINCT VALUES, #NULLS, MAX SIZE, AVG SIZE
|
||||
---- RESULTS
|
||||
'key','STRING',0,0,0,0
|
||||
'map_col','INVALID_TYPE',-1,-1,-1,-1
|
||||
---- TYPES
|
||||
STRING, STRING, BIGINT, BIGINT, DOUBLE, DOUBLE
|
||||
====
|
||||
Reference in New Issue
Block a user