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

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

Gopal Vijayaraghavan created HIVE-22948:
-------------------------------------------

             Summary: 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


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)