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

Grant select on view2 created from view1, select from view2 fails, it requires select privilege from view1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4.0, 1.5.0
    • None
    • Core
    • None

    Description

      Create view_from_test_complex_view from test_complex_view:

      describe formatted view_from_test_complex_view;
      | View Expanded Text:           | SELECT `userid` AS `userid`, `link` AS `link` FROM (SELECT userid,link from `test_complex_view_database`.`test_complex_view`) `test_complex_view_database.view_from_test_complex_view`  | NULL
      

      Grant select to a test group, use a user from that group to select will encounter privilege error:

      0: jdbc:hive2://anneyu-sentry-ha-10-4.ent.clo> select * from view_from_test_complex_view;
      Error: Error while compiling statement: FAILED: SemanticException No valid privileges
       Required privileges for this query: Server=server1->Db=test_complex_view_database->Table=test_complex_view->action=select; (state=42000,code=40000)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            anneyu Anne Yu
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: