LouisDeconinck commented on code in PR #18097:
URL: https://github.com/apache/iceberg/pull/18097#discussion_r4044749410


##########
flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/sink/dynamic/DynamicCommitter.java:
##########
@@ -222,24 +220,22 @@ private static long getMaxCommittedCheckpointId(
   private void commitPendingRequests(
       Table table,
       String branch,
-      NavigableMap<Long, List<CommitRequest<DynamicCommittable>>> 
commitRequestMap,
+      NavigableMap<Long, CommitRequest<DynamicCommittable>> commitRequestMap,
       String newFlinkJobId,
       String operatorId)
       throws IOException {
     long checkpointId = commitRequestMap.lastKey();
     List<ManifestFile> manifests = Lists.newArrayList();
     NavigableMap<Long, List<WriteResult>> pendingResults = Maps.newTreeMap();

Review Comment:
   Done in dede42c — pending results are now NavigableMap<Long, WriteResult>, 
built per checkpoint via WriteResult.Builder; replacePartitions/commitDeltaTxn 
consume the merged results directly. Applied identically to the v1.20, v2.1, 
v2.2, and v2.3 implementations.



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

Reply via email to