You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Gopal Vijayaraghavan (Jira)" <ji...@apache.org> on 2020/02/29 08:38:00 UTC

[jira] [Updated] (HIVE-22948) QueryCache: Treat query cache locations as temporary storage

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

Gopal Vijayaraghavan updated HIVE-22948:
----------------------------------------
    Status: Patch Available  (was: Open)

> QueryCache: Treat query cache locations as temporary storage
> ------------------------------------------------------------
>
>                 Key: HIVE-22948
>                 URL: https://issues.apache.org/jira/browse/HIVE-22948
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Planning
>    Affects Versions: 3.1.2, 4.0.0
>            Reporter: Gopal Vijayaraghavan
>            Assignee: Gopal Vijayaraghavan
>            Priority: Major
>         Attachments: HIVE-22948.1.patch
>
>
> The WriteEntity with a query cache query is considered for user authorization without having direct access for users.
> https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/command/CommandAuthorizerV2.java#L111
> {code}
>       if (privObject instanceof WriteEntity && ((WriteEntity)privObject).isTempURI()) {
>         // do not authorize temporary uris
>         continue;
>       }
> {code}
> is not satisfied by the queries qualifying for the query cache.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)