[ https://issues.apache.org/jira/browse/HIVE-26319?focusedWorklogId=785050&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-785050 ]
ASF GitHub Bot logged work on HIVE-26319: ----------------------------------------- Author: ASF GitHub Bot Created on: 27/Jun/22 11:49 Start Date: 27/Jun/22 11:49 Worklog Time Spent: 10m Work Description: kasakrisz commented on code in PR #3362: URL: https://github.com/apache/hive/pull/3362#discussion_r907295916 ########## 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: Replaced the `List<CommitInfo>` to `Map<String, CommitInfo>` where the key is the string representation of the `jobId` associated to the `CommitInfo`. Issue Time Tracking ------------------- Worklog Id: (was: 785050) Time Spent: 3h (was: 2h 50m) > 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: 3h > 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)