[ https://issues.apache.org/jira/browse/HIVE-28482?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhihua Deng updated HIVE-28482: ------------------------------- Labels: hive-4.0.1-merged hive-4.0.1-must pull-request-available (was: hive-4.0.1-must pull-request-available) > Iceberg: CTAS, CTLT query failure while fetching URI for authorization > ---------------------------------------------------------------------- > > Key: HIVE-28482 > URL: https://issues.apache.org/jira/browse/HIVE-28482 > Project: Hive > Issue Type: Bug > Reporter: Sourabh Badhya > Assignee: Sourabh Badhya > Priority: Major > Labels: hive-4.0.1-merged, hive-4.0.1-must, > pull-request-available > Fix For: 4.1.0 > > > When we perform CTAS query with the following configs set to true - > {code:java} > set hive.security.authorization.enabled=true; > set hive.security.authorization.tables.on.storagehandlers=true; > create table ctas_source stored by iceberg stored as orc as select * from > src;{code} > The following error trace is seen - > {code:java} > Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Exception > occurred while getting the URI from storage handler: null > at > org.apache.hadoop.hive.ql.security.authorization.command.CommandAuthorizerV2.addHivePrivObject(CommandAuthorizerV2.java:213) > at > org.apache.hadoop.hive.ql.security.authorization.command.CommandAuthorizerV2.getHivePrivObjects(CommandAuthorizerV2.java:152) > at > org.apache.hadoop.hive.ql.security.authorization.command.CommandAuthorizerV2.doAuthorization(CommandAuthorizerV2.java:77) > at > org.apache.hadoop.hive.ql.security.authorization.command.CommandAuthorizer.doAuthorization(CommandAuthorizer.java:58) > {code} > > -- This message was sent by Atlassian Jira (v8.20.10#820010)