Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  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

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.1
    • hive_plugin_v2, 1.6.0
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: