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

HIVE Authorization v2 should not check permission for dummy entity

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0, 1.3.0, 2.0.0
    • 1.2.1, 1.3.0, 2.0.0
    • Authorization
    • None

    Description

      The queries like SELECT 1+1;, The target table and database will set to _dummy_database _dummy_table, authorization should skip these kinds of databases or tables.

      For authz v1. it has skip them.

      eg1. Source code at github

      for (WriteEntity write : outputs) {
              if (write.isDummy() || write.isPathType()) {
                continue;
              }
      

      eg2. Source code at github

      for (ReadEntity read : inputs) {
              if (read.isDummy() || read.isPathType()) {
                continue;
              }
             ...
              }
      

      ...

      This patch will fix authz v2.

      Attachments

        1. HIVE-11498.001.patch
          3 kB
          Dapeng Sun
        2. HIVE-11498.002.patch
          2 kB
          Dapeng Sun
        3. HIVE-11498.003.patch
          2 kB
          Dapeng Sun

        Issue Links

          Activity

            People

              dapengsun Dapeng Sun
              dapengsun Dapeng Sun
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: