[
https://issues.apache.org/jira/browse/HIVE-21293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16784559#comment-16784559
]
Jesus Camacho Rodriguez commented on HIVE-21293:
------------------------------------------------
Thanks [~abstractdog]. I checked the change and I have an alternative
suggestion that may work to allow unknown as a boolean constant: Rewriting
{{KW_UNKNOWN}} into {{KW_UNKNOWN -> TOK_NULL}} within the {{booleanValue}} rule
(similar to
https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g#L336).
Do you think that would work?
> Fix ambiguity in grammar warnings at compilation time (II)
> ----------------------------------------------------------
>
> Key: HIVE-21293
> URL: https://issues.apache.org/jira/browse/HIVE-21293
> Project: Hive
> Issue Type: Bug
> Components: Parser
> Affects Versions: 4.0.0
> Reporter: Jesus Camacho Rodriguez
> Assignee: Laszlo Bodor
> Priority: Major
> Attachments: HIVE-21293.01.patch, HIVE-21293.02.patch
>
>
> These are the warnings at compilation time:
> {code}
> warning(200): IdentifiersParser.g:424:5:
> Decision can match input such as "KW_UNKNOWN" using multiple alternatives: 1,
> 10
> As a result, alternative(s) 10 were disabled for that input
> {code}
> This means that multiple parser rules can match certain query text, possibly
> leading to unexpected errors at parsing time.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)