[ 
https://issues.apache.org/jira/browse/HIVE-25514?focusedWorklogId=658449&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-658449
 ]

ASF GitHub Bot logged work on HIVE-25514:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 30/Sep/21 15:31
            Start Date: 30/Sep/21 15:31
    Worklog Time Spent: 10m 
      Work Description: nrg4878 commented on a change in pull request #2634:
URL: https://github.com/apache/hive/pull/2634#discussion_r719525592



##########
File path: 
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HMSHandler.java
##########
@@ -6652,15 +6683,17 @@ public GetPartitionsPsWithAuthResponse 
get_partitions_ps_with_auth_req(GetPartit
     String[] parsedDbName = parseDbName(db_name, conf);
     startPartitionFunction("get_partitions_names_ps", parsedDbName[CAT_NAME],
         parsedDbName[DB_NAME], tbl_name, part_vals);
-    fireReadTablePreEvent(parsedDbName[CAT_NAME], parsedDbName[DB_NAME], 
tbl_name);
     List<String> ret = null;
     Exception ex = null;
     try {
-      authorizeTableForPartitionMetadata(parsedDbName[CAT_NAME], 
parsedDbName[DB_NAME], tbl_name);
+      fireReadTablePreEvent(parsedDbName[CAT_NAME], parsedDbName[DB_NAME], 
tbl_name);
       ret = getMS().listPartitionNamesPs(parsedDbName[CAT_NAME], 
parsedDbName[DB_NAME], tbl_name,
           part_vals, max_parts);
       ret = FilterUtils.filterPartitionNamesIfEnabled(isServerFilterEnabled,
           filterHook, parsedDbName[CAT_NAME], parsedDbName[DB_NAME], tbl_name, 
ret);
+    } catch (NullPointerException e) {

Review comment:
       we shouldnt be catching NullPointerException here.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 658449)
    Time Spent: 50m  (was: 40m)

> Alter table with partitions should honor {OWNER} policies from Apache Ranger 
> in the HMS
> ---------------------------------------------------------------------------------------
>
>                 Key: HIVE-25514
>                 URL: https://issues.apache.org/jira/browse/HIVE-25514
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive, Standalone Metastore
>    Affects Versions: 4.0.0
>            Reporter: Sai Hemanth Gantasala
>            Assignee: Sai Hemanth Gantasala
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> The following commands should honor \{OWNER} policies from Apache Ranger in 
> the HMS.
> {code:java}
> Show partitions table_name;
> alter table foo.table_name partition (country='us') rename to partition 
> (country='canada);
> alter table foo.table_name drop partition (id='canada');{code}
> The examples above are tables with partitions. So the partition APIs in HMS 
> should be modifed to honor \{owner} policies from Apache ranger. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to