[
https://issues.apache.org/jira/browse/HIVE-21227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16763390#comment-16763390
]
Hive QA commented on HIVE-21227:
--------------------------------
Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12958021/HIVE-21227.002.patch
{color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified.
{color:green}SUCCESS:{color} +1 due to 15784 tests passed
Test results:
https://builds.apache.org/job/PreCommit-HIVE-Build/15995/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/15995/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-15995/
Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.YetusPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
{noformat}
This message is automatically generated.
ATTACHMENT ID: 12958021 - PreCommit-HIVE-Build
> HIVE-20776 causes view access regression
> ----------------------------------------
>
> Key: HIVE-21227
> URL: https://issues.apache.org/jira/browse/HIVE-21227
> Project: Hive
> Issue Type: Bug
> Components: Hive
> Affects Versions: 4.0.0
> Reporter: Na Li
> Assignee: Na Li
> Priority: Major
> Attachments: HIVE-21227.001.patch, HIVE-21227.002.patch
>
>
> 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
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)