deniskuzZ commented on code in PR #4880:
URL: https://github.com/apache/hive/pull/4880#discussion_r1409238831
##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergStorageHandler.java:
##########
@@ -1640,7 +1681,17 @@ public boolean
shouldOverwrite(org.apache.hadoop.hive.ql.metadata.Table mTable,
}
@Override
- public void addResourcesForCreateTable(Map<String, String> tblProps,
HiveConf hiveConf) {
+ public void addResourcesForCreateTable(Map<String, String> tblProps,
HiveConf hiveConf, Hive db,
+ TableName qualifiedTabName, boolean isExt) throws MetaException,
HiveException {
+ Optional<String> defaultTableLocation =
+ SessionStateUtil.getProperty(conf,
hive_metastoreConstants.DEFAULT_TABLE_LOCATION);
+ if (!defaultTableLocation.isPresent()) {
+ Warehouse wh = new Warehouse(conf);
Review Comment:
also same thing is set in `SessionStateUtil.addResourceOrThrow(conf,
META_TABLE_LOCATION, tblLocation)`
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]