Uploaded image for project: 'Sentry'
  1. Sentry
  2. SENTRY-847

[column level privilege] if grant column level privilege to user, show columns in table shouldn't require extra table level privilege

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: hive_plugin_v2, 1.6.0
    • Component/s: None
    • Labels:
      None

      Description

      grant select(s) on table test_tb to role test_role;
      
      show columns in test_tb;
      
      Error: Error while compiling statement: FAILED: SemanticException No valid privileges
       Required privileges for this query: Server=server1->Db=test_db->Table=test_tb->action=insert;Server=server1->Db=test_db->Table=test_tb->action=select; (state=42000,code=40000)
      

        Attachments

        1. SENTRY-847.001.patch
          18 kB
          shenguoquan
        2. SENTRY-847.002.patch
          18 kB
          shenguoquan
        3. SENTRY-847.003.patch
          18 kB
          shenguoquan
        4. SENTRY-847.004.patch
          18 kB
          shenguoquan

          Issue Links

            Activity

              People

              • Assignee:
                guoquan shenguoquan
                Reporter:
                anneyu Anne Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: