[ https://issues.apache.org/jira/browse/HIVE-25077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Venugopal Reddy K resolved HIVE-25077. -------------------------------------- Resolution: Duplicate > Direct SQL to fetch column privileges in refreshPrivileges may be broken in > postgres > ------------------------------------------------------------------------------------ > > Key: HIVE-25077 > URL: https://issues.apache.org/jira/browse/HIVE-25077 > Project: Hive > Issue Type: Improvement > Reporter: Rajesh Balamohan > Assignee: Venugopal Reddy K > Priority: Major > > HIVE-22512 tried to fix direct-sql for col privileges. > > However, "GRANT_OPTION" field in "TBL_COL_PRIVS" is marked as smallint in > postgres. In code, it is retrieved as boolean. > Ref: > [https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java#L1533] > > {code:java} > boolean grantOption = > MetastoreDirectSqlUtils.extractSqlBoolean(privLine[grantOptionIndex]); > {code} > > [https://github.com/apache/hive/blob/048336bd0c21163920557a60c88135b1d5b42d3d/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetastoreDirectSqlUtils.java#L530] > > MetastoreDirectSqlUtils::extractSqlBoolean should handle integers to support > directSQL in postgres. -- This message was sent by Atlassian Jira (v8.20.10#820010)