Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-22948

QueryCache: Treat query cache locations as temporary storage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.2, 4.0.0
    • 4.0.0-alpha-1
    • Query Planning
    • None

    Description

      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

            if (privObject instanceof WriteEntity && ((WriteEntity)privObject).isTempURI()) {
              // do not authorize temporary uris
              continue;
            }
      

      is not satisfied by the queries qualifying for the query cache.

      Attachments

        1. HIVE-22948.2.patch
          4 kB
          Gopal Vijayaraghavan
        2. HIVE-22948.1.patch
          3 kB
          Gopal Vijayaraghavan
        3. HIVE-22948.1.patch
          4 kB
          Gopal Vijayaraghavan

        Issue Links

          Activity

            People

              gopalv Gopal Vijayaraghavan
              gopalv Gopal Vijayaraghavan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: