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

[column level privilege] show table extended doesn't require table level privilege

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 1.7.0
    • Fix Version/s: None
    • Component/s: Hive Plugin
    • Labels:
      None

      Description

      use column level privilege,

      0: jdbc:hive2://anneyu-cdh55-1.vpc.cloudera.c> show tables in test_db like 'test_tb';
      +-----------+--+
      | tab_name  |
      +-----------+--+
      | test_tb   |
      +-----------+--+
      
      show table extended in test_db like '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)
      

      Do we want to let user see their column info ? such as,

      columns:struct columns { string s, i32 i}
      

        Attachments

        1. SENTRY-846.002.patch
          21 kB
          shenguoquan
        2. SENTRY-846.001.patch
          21 kB
          shenguoquan

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: