huaxingao commented on code in PR #17018:
URL: https://github.com/apache/iceberg/pull/17018#discussion_r3522464106


##########
flink/v2.1/flink/src/main/java/org/apache/iceberg/flink/maintenance/operator/EqualityConvertPKIndex.java:
##########
@@ -250,14 +261,22 @@ private void resolveDeletes(Collector<DVPosition> out) 
throws Exception {
     // indexed sequence is not comparable to the staging delete's; event-time 
ordering already
     // prevents false deletion.
     Long deleteSeq = resolveSequenceNumber.value();
+    // A partitioned delete applies only to data rows of the same spec. An 
unpartitioned delete
+    // (GLOBAL_DELETE_SPEC_ID) applies to every spec. deleteSpecIds holds 
every scope seen this
+    // cycle (usually one).
+    List<Integer> deleteSpecIds = Lists.newArrayList(resolveSpecIds.get());

Review Comment:
   nit: use `Set<Integer>` here, `resolveSpecIds` can have duplicate spec ids 
(one per delete row), and `contains()` scan the whole list.



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