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

Union All on view fail with no valid permission on underneath table

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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0, 2.1.1, 2.2.0
    • Query Planning
    • None

    Description

      When sentry is enabled.
      create view V as select * from T;
      When the user has read permission on view V, but does not have read permission on table T,

      select * from V union all select * from V
      failed with:

      0: jdbc:hive2://********> select * from s07view union all select * from s07view limit 1;
      Error: Error while compiling statement: FAILED: SemanticException No valid privileges
       Required privileges for this query: Server=server1->Db=default->Table=sample_07->action=select; (state=42000,code=40000)
      

      Attachments

        1. HIVE-13991.1.patch
          3 kB
          Yongzhi Chen
        2. HIVE-13991.2.patch
          6 kB
          Yongzhi Chen

        Issue Links

        Activity

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

          People

            ychena Yongzhi Chen Assign to me
            ychena Yongzhi Chen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment