mirror of
https://github.com/apache/impala.git
synced 2026-02-01 21:00:29 -05:00
This change compute the real number of true and false statistics information for boolean columns. Before this, impala used to set numTrues and numFalses to hardcoded -1 to indicate that its statistics is missing. Test Done: Append the numTrue and numFalse test for all the statistics-related test cases including the non-incremental, incremental and other test cases. Change-Id: I991bee8e7fdc644d908289f5fe2ee8032cc2c431 Reviewed-on: http://gerrit.cloudera.org:8080/14666 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
====
|
|
---- QUERY
|
|
# Stats on an HBase table
|
|
show table stats alltypesagg
|
|
---- LABELS
|
|
REGION LOCATION, START ROWKEY, EST. #ROWS, SIZE
|
|
---- RESULTS: VERIFY_IS_EQUAL
|
|
regex:.+,'',regex:.+,regex:.+KB
|
|
regex:.+,'1',regex:.+,regex:.+MB
|
|
regex:.+,'3',regex:.+,regex:.+MB
|
|
regex:.+,'5',regex:.+,regex:.+MB
|
|
regex:.+,'7',regex:.+,regex:.+MB
|
|
regex:.+,'9',regex:.+,regex:.+KB
|
|
'Total','',regex:.+,regex:.+MB
|
|
---- TYPES
|
|
STRING, STRING, BIGINT, STRING
|
|
====
|
|
---- QUERY
|
|
# Column stats on an HBaseTable
|
|
show column stats alltypessmall
|
|
---- LABELS
|
|
COLUMN, TYPE, #DISTINCT VALUES, #NULLS, MAX SIZE, AVG SIZE, #TRUES, #FALSES
|
|
---- RESULTS
|
|
'id','INT',105,-1,4,4,-1,-1
|
|
'bigint_col','BIGINT',10,-1,8,8,-1,-1
|
|
'bool_col','BOOLEAN',2,-1,1,1,53,53
|
|
'date_string_col','STRING',12,-1,8,8,-1,-1
|
|
'double_col','DOUBLE',10,-1,8,8,-1,-1
|
|
'float_col','FLOAT',10,-1,4,4,-1,-1
|
|
'int_col','INT',10,-1,4,4,-1,-1
|
|
'month','INT',4,-1,4,4,-1,-1
|
|
'smallint_col','SMALLINT',10,-1,2,2,-1,-1
|
|
'string_col','STRING',10,-1,1,1,-1,-1
|
|
'timestamp_col','TIMESTAMP',101,-1,16,16,-1,-1
|
|
'tinyint_col','TINYINT',10,-1,1,1,-1,-1
|
|
'year','INT',1,-1,4,4,-1,-1
|
|
---- TYPES
|
|
STRING, STRING, BIGINT, BIGINT, BIGINT, DOUBLE, BIGINT, BIGINT
|
|
====
|