Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 2.8.0
-
ghx-label-8
Description
It is currently difficult to create a Kudu table with a single partition, but this is useful for very small tables. It's currently possible to do so by creating one range partition that spans the entire key range, but this is very cumbersome. We should add syntax to make this easier. Internally to Kudu we would represent this as range partitioning over no columns.
Current syntax:
CREATE TABLE [IF NOT EXISTS] [db_name.]table_name (col_name data_type [kudu_column_attribute ...] [COMMENT 'col_comment'] [, ...] [PRIMARY KEY (col_name[, ...])] ) [PARTITION BY kudu_partition_clause [COMMENT 'table_comment'] STORED AS KUDU [TBLPROPERTIES ('key1'='value1', 'key2'='value2', ...)]
Proposed syntax:
CREATE TABLE [IF NOT EXISTS] [db_name.]table_name (col_name data_type [kudu_column_attribute ...] [COMMENT 'col_comment'] [, ...] [PRIMARY KEY (col_name[, ...])] ) [UNPARTITIONED | PARTITION BY kudu_partition_clause [COMMENT 'table_comment'] STORED AS KUDU [TBLPROPERTIES ('key1'='value1', 'key2'='value2', ...)]
Attachments
Issue Links
- breaks
-
IMPALA-6173 SHOW CREATE TABLE broken for unpartitioned Kudu tables
- Resolved