mirror of
https://github.com/apache/impala.git
synced 2026-01-06 06:01:03 -05:00
This commit reverts the behavior introduced by IMPALA-3719 which used the Kudu default behavior for column nullability if none was specified in the CREATE TABLE statement. With this commit, non-key columns of Kudu tables that are created from Impala are by default nullable unless specified otherwise. Change-Id: I950d9a9c64e3851e11a641573617790b340ece94 Reviewed-on: http://gerrit.cloudera.org:8080/5259 Reviewed-by: Alex Behm <alex.behm@cloudera.com> Tested-by: Internal Jenkins
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
====
|
|
---- QUERY
|
|
create table simple (id int primary key, name string, valf float, vali bigint)
|
|
distribute by range (partition values < 10, partition 10 <= values < 30,
|
|
partition 30 <= values) stored as kudu tblproperties('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','','true','false','','AUTO_ENCODING','DEFAULT_COMPRESSION','0'
|
|
'name','string','','false','true','','AUTO_ENCODING','DEFAULT_COMPRESSION','0'
|
|
'valf','float','','false','true','','AUTO_ENCODING','DEFAULT_COMPRESSION','0'
|
|
'vali','bigint','','false','true','','AUTO_ENCODING','DEFAULT_COMPRESSION','0'
|
|
---- TYPES
|
|
STRING,STRING,STRING,STRING,STRING,STRING,STRING,STRING,STRING
|
|
====
|