Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 2.11.0
-
None
-
ghx-label-4
Description
The Impala CREATE TABLE syntax guide includes this bit of grammar in the Kudu partitioning section:
range_clause ::= RANGE [ (pk_col [, ...]) ] ( { PARTITION constant_expression range_comparison_operator VALUES range_comparison_operator constant_expression | PARTITION VALUE = constant_expression_or_tuple } [, ...] )
This is suspicious because constant_expression is used in the range clause, and constant_expression_or_tuple is used in the single-value clause. I believe both should allow for tuples.
In other words, today a CREATE TABLE statement such as
CREATE TABLE t (a BIGINT, b BIGINT, PRIMARY KEY (a, b)) PARTITION BY RANGE (a, b) ( PARTITION (0, 0) <= VALUES < (10, 0) ) STORED AS KUDU;
results in a syntax error, and it should not. CC twmarshall