[ https://issues.apache.org/jira/browse/HIVE-26319?focusedWorklogId=781977&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-781977 ]
ASF GitHub Bot logged work on HIVE-26319: ----------------------------------------- Author: ASF GitHub Bot Created on: 16/Jun/22 09:27 Start Date: 16/Jun/22 09:27 Worklog Time Spent: 10m Work Description: pvary commented on code in PR #3362: URL: https://github.com/apache/hive/pull/3362#discussion_r898886482 ########## iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergOutputCommitter.java: ########## @@ -325,7 +339,15 @@ private void commitTable(FileIO io, ExecutorService executor, JobContext jobCont LOG.info("Committing job has started for table: {}, using location: {}", table, generateJobLocation(location, conf, jobContext.getJobID())); - int numTasks = SessionStateUtil.getCommitInfo(conf, name).map(info -> info.getTaskNum()).orElseGet(() -> { + Optional<SessionStateUtil.CommitInfo> commitInfo; + if (SessionStateUtil.getCommitInfo(conf, name).isPresent()) { + commitInfo = SessionStateUtil.getCommitInfo(conf, name).get() + .stream().filter(ci -> ci.getJobIdStr().equals(jobContext.getJobID().toString())).findFirst(); Review Comment: Are we sure that the first `commitInfo` has the same number of tasks as all of them? Issue Time Tracking ------------------- Worklog Id: (was: 781977) Time Spent: 0.5h (was: 20m) > Iceberg integration: Perform update split early > ----------------------------------------------- > > Key: HIVE-26319 > URL: https://issues.apache.org/jira/browse/HIVE-26319 > Project: Hive > Issue Type: Improvement > Components: File Formats > Reporter: Krisztian Kasa > Assignee: Krisztian Kasa > Priority: Major > Labels: pull-request-available > Fix For: 4.0.0 > > Time Spent: 0.5h > Remaining Estimate: 0h > > Extend update split early to iceberg tables like in HIVE-21160 for native > acid tables -- This message was sent by Atlassian Jira (v8.20.7#820007)