You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "zhuwei (JIRA)" <ji...@apache.org> on 2018/10/14 03:22:00 UTC

[jira] [Updated] (HIVE-20497) ParseException, failed to recognize quoted identifier when re-parsing the re-written query

     [ https://issues.apache.org/jira/browse/HIVE-20497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

zhuwei updated HIVE-20497:
--------------------------
    Attachment: HIVE-20497.5.patch

> ParseException, failed to recognize quoted identifier when re-parsing the re-written query
> ------------------------------------------------------------------------------------------
>
>                 Key: HIVE-20497
>                 URL: https://issues.apache.org/jira/browse/HIVE-20497
>             Project: Hive
>          Issue Type: Bug
>          Components: Parser
>         Environment: hive 2.1.1
>            Reporter: zhuwei
>            Assignee: zhuwei
>            Priority: Major
>         Attachments: HIVE-20497.1.patch, HIVE-20497.2.patch, HIVE-20497.3.patch, HIVE-20497.4.patch, HIVE-20497.5.patch
>
>
> select `user` from team;
> If we have a table `team`, and one of its column has been masked out with `****` with column level authorization. The above query will fail with error "SemanticException org.apache.hadoop.hive.ql.parse.ParseException: line 1:9 Failed to recognize predicate 'user'. Failed rule: 'identifier' in expression specification"
> The root cause is that after re-written the ast, the back quote has been lost.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)