mirror of
https://github.com/apache/impala.git
synced 2026-01-08 12:02:54 -05:00
IMPALA-3726: Add support for Kudu-specific column options
This commit adds support for Kudu-specific column options in CREATE TABLE statements. The syntax is: CREATE TABLE tbl_name ([col_name type [PRIMARY KEY] [option [...]]] [, ....]) where option is: | NULL | NOT NULL | ENCODING encoding_val | COMPRESSION compression_algorithm | DEFAULT expr | BLOCK_SIZE num The output of the SHOW CREATE TABLE statement was altered to include all the specified column options for Kudu tables. Change-Id: I727b9ae1b7b2387db752b58081398dd3f3449c02 Reviewed-on: http://gerrit.cloudera.org:8080/5026 Reviewed-by: Dimitris Tsirogiannis <dtsirogiannis@cloudera.com> Tested-by: Internal Jenkins
This commit is contained in:
committed by
Internal Jenkins
parent
60414f0633
commit
3db5ced4ce
@@ -478,7 +478,7 @@ class TestImpalaShell(ImpalaTestSuite):
|
||||
def test_kudu_dml_reporting(self, unique_database):
|
||||
db = unique_database
|
||||
run_impala_shell_cmd('--query="create table %s.dml_test (id int primary key, '\
|
||||
'age int) distribute by hash(id) into 2 buckets stored as kudu"' % db)
|
||||
'age int null) distribute by hash(id) into 2 buckets stored as kudu"' % db)
|
||||
|
||||
self._validate_dml_stmt("insert into %s.dml_test (id) values (7), (7)" % db, 1, 1)
|
||||
self._validate_dml_stmt("insert into %s.dml_test (id) values (7)" % db, 0, 1)
|
||||
|
||||
Reference in New Issue
Block a user