IMPALA-1614: Compute stats fails if table name starts with number

Change-Id: Iedac1ec0207a6e7b68ff9575c7c8473bbaf394cf
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/5908
Reviewed-by: Juan Yu <jyu@cloudera.com>
Tested-by: jenkins
This commit is contained in:
Juan Yu
2015-02-02 09:56:39 -08:00
committed by jenkins
parent b01252267a
commit a7e95e0992
2 changed files with 33 additions and 1 deletions

View File

@@ -908,3 +908,23 @@ show table stats compute_stats_db.empty_partitioned
---- TYPES
STRING, BIGINT, BIGINT, STRING, STRING, STRING, STRING, STRING
====
---- QUERY
# IMPALA-1614 Verify that COMPUTE STATS works on a table whose name starts with numbers.
create table compute_stats_db.`123_table` (i int, 1p int) partitioned by (2j int);
alter table compute_stats_db.`123_table` add partition (2j=1);
====
---- QUERY
compute stats compute_stats_db.`123_table`
---- RESULTS
'Updated 1 partition(s) and 2 column(s).'
---- TYPES
STRING
====
---- QUERY
show table stats compute_stats_db.`123_table`
---- RESULTS
'1',0,0,'0B','NOT CACHED','NOT CACHED','TEXT','false'
'Total',0,0,'0B','0B','','',''
---- TYPES
STRING, BIGINT, BIGINT, STRING, STRING, STRING, STRING, STRING
====