[ https://issues.apache.org/jira/browse/HIVE-26055?focusedWorklogId=774098&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-774098 ]
ASF GitHub Bot logged work on HIVE-26055: ----------------------------------------- Author: ASF GitHub Bot Created on: 24/May/22 15:57 Start Date: 24/May/22 15:57 Worklog Time Spent: 10m Work Description: saihemanth-cloudera commented on code in PR #3247: URL: https://github.com/apache/hive/pull/3247#discussion_r880692701 ########## ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/SQLAuthorizationUtils.java: ########## @@ -271,7 +271,16 @@ private static boolean isOwner(IMetaStoreClient metastoreClient, String userName thriftTableObj = metastoreClient.getTable(hivePrivObject.getDbname(), hivePrivObject.getObjectName()); } catch (Exception e) { - throwGetObjErr(e, hivePrivObject); + boolean isTableExists = true; + try { + if(!metastoreClient.tableExists(hivePrivObject.getDbname(), hivePrivObject.getObjectName())) { Review Comment: Yeah, I tried to do it but it is becoming somewhat hacky because there are multiple places that I would have to instantiate the hivemetastoreclient object to see if the table exists. So I think this would be a good place to call this as add this at one place. Issue Time Tracking ------------------- Worklog Id: (was: 774098) Time Spent: 1h (was: 50m) > Fix the HivePrivilegesObjects for Alter table rename command > ------------------------------------------------------------ > > Key: HIVE-26055 > URL: https://issues.apache.org/jira/browse/HIVE-26055 > Project: Hive > Issue Type: Bug > Components: HiveServer2, Security > Reporter: Sai Hemanth Gantasala > Assignee: Sai Hemanth Gantasala > Priority: Major > Labels: pull-request-available > Time Spent: 1h > Remaining Estimate: 0h > > Fix the HivePrivilegeObjects for Alter table rename query in a way that it > includes source table information in the output objects and destination table > information in the input objects. > -- This message was sent by Atlassian Jira (v8.20.7#820007)