hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesus Camacho Rodriguez (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-21278) Fix ambiguity in grammar warnings at compilation time
Date Tue, 19 Feb 2019 18:19:00 GMT

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

Jesus Camacho Rodriguez commented on HIVE-21278:
------------------------------------------------

Created HIVE-21293 to tackle the 'UNKNOWN' issue since transforming it into a reserved keyword
can create backwards compatibility issues.

> Fix ambiguity in grammar warnings at compilation time
> -----------------------------------------------------
>
>                 Key: HIVE-21278
>                 URL: https://issues.apache.org/jira/browse/HIVE-21278
>             Project: Hive
>          Issue Type: Bug
>          Components: Parser
>            Reporter: Jesus Camacho Rodriguez
>            Assignee: Jesus Camacho Rodriguez
>            Priority: Major
>         Attachments: HIVE-21278.01.patch, HIVE-21278.02.patch, HIVE-21278.patch
>
>
> These are the warnings at compilation time:
> {code}
> warning(200): org/apache/hadoop/hive/ql/parse/HiveParser.g:2439:5:
> Decision can match input such as "KW_CHECK KW_DATETIME" using multiple alternatives:
1, 2
> As a result, alternative(s) 2 were disabled for that input
> warning(200): org/apache/hadoop/hive/ql/parse/HiveParser.g:2439:5:
> Decision can match input such as "KW_CHECK KW_DATE {LPAREN, StringLiteral}" using multiple
alternatives: 1, 2
> As a result, alternative(s) 2 were disabled for that input
> warning(200): org/apache/hadoop/hive/ql/parse/HiveParser.g:2439:5:
> Decision can match input such as "KW_CHECK KW_UNIONTYPE LESSTHAN" using multiple alternatives:
1, 2
> As a result, alternative(s) 2 were disabled for that input
> warning(200): org/apache/hadoop/hive/ql/parse/HiveParser.g:2439:5:
> Decision can match input such as "KW_CHECK {KW_EXISTS, KW_TINYINT}" using multiple alternatives:
1, 2
> As a result, alternative(s) 2 were disabled for that input
> warning(200): org/apache/hadoop/hive/ql/parse/HiveParser.g:2439:5:
> Decision can match input such as "KW_CHECK KW_STRUCT LESSTHAN" using multiple alternatives:
1, 2
> As a result, alternative(s) 2 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)

Mime
View raw message