simhadri-g commented on a change in pull request #1007: URL: https://github.com/apache/hive/pull/1007#discussion_r431341379
########## File path: metastore/scripts/upgrade/hive/hive-schema-4.0.0.hive.sql ########## @@ -1700,7 +1701,18 @@ SELECT DISTINCT P.`TBL_COL_PRIV`, IF (P.`GRANT_OPTION` == 0, 'NO', 'YES') FROM - `sys`.`TBL_COL_PRIVS` P JOIN `sys`.`TBLS` T ON (P.`TBL_ID` = T.`TBL_ID`) + (SELECT + Q.`GRANTOR`, + Q.`GRANT_OPTION`, + Q.`PRINCIPAL_NAME`, + Q.`PRINCIPAL_TYPE`, + Q.`AUTHORIZER`, + Q.`COLUMN_NAME`, + `TBL_COL_PRIV_TMP`.`TBL_COL_PRIV`, + Q.`TBL_ID` + FROM `sys`.`TBL_COL_PRIVS` AS Q + LATERAL VIEW explode(split_map_privs(Q.`TBL_COL_PRIV`)) `TBL_COL_PRIV_TMP` AS `TBL_COL_PRIV`) P Review comment: Derby, postgres and mysql ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org