sql-metadata icon indicating copy to clipboard operation
sql-metadata copied to clipboard

BUG: The Hive ALTER statement was incorrectly parsed

Open Zhenghan-Lin opened this issue 1 year ago • 0 comments

The input SQL is : SQL = “ALTER TABLE table_name DROP IF EXISTS PARTITION (dt = 20240524)”

The code is :

Parser(SQL).tables

The output is: ['table_name', 'PARTITION', 'dt']

While the correct result should be: ['table_name']

Zhenghan-Lin avatar May 24 '24 07:05 Zhenghan-Lin