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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 1.7.0
    • None
    • Hive Plugin
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: