Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Sql parser should raise parsing error, when the CTAS statement has "PARTITION BY", yet the list of partitioning column is empty.
create table nation_par partition by as select n_nationkey, n_name, n_comment from cp.`tpch/nation.parquet`;
The expected behavior would be SQL parer error :
Error: PARSE ERROR: Encountered "as" at line 3, column 1. Was expecting: "(" ...