You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Laszlo Bodor (JIRA)" <ji...@apache.org> on 2019/03/05 13:30:00 UTC

[jira] [Comment Edited] (HIVE-21293) Fix ambiguity in grammar warnings at compilation time (II)

    [ https://issues.apache.org/jira/browse/HIVE-21293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16784423#comment-16784423 ] 

Laszlo Bodor edited comment on HIVE-21293 at 3/5/19 1:29 PM:
-------------------------------------------------------------

[~ashutoshc], [~jcamachorodriguez]: I tried it with excluding KW_UNKNOWN from "booleanValue", which made "constant" not to match "atomExpression" hence the warning went away
I don't know if it's the best solution, but bool_unknown.q test is still passing locally

please find it in https://issues.apache.org/jira/secure/attachment/12961167/HIVE-21293.02.patch


was (Author: abstractdog):
[~ashutoshc], [~jcamachorodriguez]: I tried it with excluding KW_UNKNOWN from "booleanValue", which made "constant" not to match "atomExpression" hence the warning went away
I don't know if it's the best solution, but bool_unknown.q test is still passing locally

> 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)