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

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

    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

        Issue Links

          Activity

            People

              nareshpr Naresh P R
              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