You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Chun Ni <cn...@salesforce.com> on 2019/07/10 20:26:04 UTC

Problem about hplsql.g4

Hi,

I used hplsql.g4 to parse HiveQL. Unfortunately, when the query contains
keyword "partition", it can not be parsed in AST.

For example :
"INSERT overwrite table fact_app_logs_loading partition (ts_date=20190623)
SELECT count(*), logrecordtype  FROM applogs.fact_app_logs WHERE
ts_date=20190623  group by logrecordtype"

This query can not be parsed. However, if I remove "partition
(ts_date=20190623)", it can be parsed. Do you know why it happens? Thank
you!

Best regards,
Chun Ni