[
https://issues.apache.org/jira/browse/HIVE-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12699041#action_12699041
]
Zheng Shao commented on HIVE-415:
---------------------------------
The fix turns out to be simple:
The following code in Hive.g:
{code}
queryStatementExpression
: queryStatement (queryOperator^ queryStatementExpression)*
;
{code}
should be changed to:
{code}
queryStatementExpression
: queryStatement (queryOperator^ queryStatementExpression)?
;
{code}
> Long queries does not parse in Hive
> -----------------------------------
>
> Key: HIVE-415
> URL: https://issues.apache.org/jira/browse/HIVE-415
> Project: Hadoop Hive
> Issue Type: Bug
> Components: Query Processor
> Reporter: Zheng Shao
> Assignee: Zheng Shao
> Priority: Critical
> Attachments: HIVE-415.1.patch
>
>
> A query like this won't parse, because the Hive grammar allows backtracking:
> {code}
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable UNION ALL
> select 1 from mytable;
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.