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

HIVE-20776 causes view access regression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.0.0-alpha-1
    • Hive
    • None

    Description

      HIVE-20776 introduces a change that causes regression for view access.

      Before the change, a user with select access of a view can get all columns of a view with select access of a view that is derived from a partitioned table.

      With the change, that user cannot access that view.

      The reason is that

      • When user accesses columns of a view, Hive needs to get the partitions of the table that the view is derived from. The user name is the user who issues the query to access the view.
      • The change in HIVE-20776 checks if user has access to a table before getting its partitions. When user only has access of a view, not the access of a table itself, this change denies the user access of the view.

      The solution is when getting table partitions, do not filter on table at HMS client

      Attachments

        1. HIVE-21227.001.patch
          1 kB
          Na Li
        2. HIVE-21227.002.patch
          4 kB
          Na Li

        Issue Links

          Activity

            People

              linaataustin Na Li
              linaataustin Na Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: