Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-23607

Permission Issue: Create view on another view succeeds but alter view fails

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      create table test_table (id int);
      create view test_view as select * from test_table;

       

      -- user "abc" has read access on test_view
      -- Create view succeeds
      create view test_view_1 as select * from test_view;
      -- Alter view fails
      alter view test_view_1 as select * from test_view
      Error: Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [abc] does not have [SELECT] privilege on [test/test_table] (state=42000,code=40000)
      

       

      Attachments

        1. HIVE-23607.patch
          4 kB
          Naresh P R

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            nareshpr Naresh P R Assign to me
            nareshpr Naresh P R
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 20m
              20m

              Slack

                Issue deployment