pvary commented on a change in pull request #2347:
URL: https://github.com/apache/hive/pull/2347#discussion_r646355105



##########
File path: 
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergOutputCommitter.java
##########
@@ -191,13 +191,16 @@ public void commitJob(JobContext originalContext) throws 
IOException {
           .stopOnFailure()
           .executeWith(tableExecutor)
           .run(output -> {
-            Table table = HiveIcebergStorageHandler.table(jobConf, output);
+            Table table = SessionStateUtil.getResource(jobConf, output)

Review comment:
       nit: Maybe:
   ```
   Object res = SessionStateUtil.getResource(jobConf, output);
   Table table = res instanceof Table ? (Table) res : 
HiveIcebergStorageHandler.table(jobConf, output);
   ```




-- 
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]

Reply via email to