macbre / sql-metadata

Uses tokenized query returned by python-sqlparse and generates query metadata

Home Page:https://pypi.python.org/pypi/sql-metadata

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BUG: The Hive "INSERT OVERWRITE TABLE" statement was parsed incorrectly.

Zhenghan-Lin opened this issue · comments

commented

I just found that the "INSERT OVERWRITE TABLE" statement cannot be parsed incorrectly. The variable name that represents the partition was also recognized as the table name.
The case is below:
image

The correct output should be:
[tbl, table1, table2]