marton-bod commented on a change in pull request #2333:
URL: https://github.com/apache/hive/pull/2333#discussion_r643208790
##########
File path:
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergMetaHook.java
##########
@@ -402,10 +406,18 @@ private Schema schema(Properties properties,
org.apache.hadoop.hive.metastore.ap
}
}
- private static PartitionSpec spec(Schema schema, Properties properties,
+ private static PartitionSpec spec(Configuration configuration, Schema
schema, Properties properties,
org.apache.hadoop.hive.metastore.api.Table hmsTable) {
- if (hmsTable.getParameters().get(InputFormatConfig.PARTITION_SPEC) !=
null) {
+ if
(SessionState.get().getQueryState(configuration.get(HiveConf.ConfVars.HIVEQUERYID.varname))
Review comment:
I'll create a new `IcebergSessionUtil` for providing some util methods,
we can sync up with @lcspinter on the implementation
--
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]