Rajesh Balamohan created HIVE-25077: ---------------------------------------
Summary: 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 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.3.4#803005)