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


##########
flink/v2.1/flink/src/main/java/org/apache/iceberg/flink/maintenance/operator/EqualityConvertReader.java:
##########
@@ -194,17 +193,20 @@ private void processDeleteFile(
     ContentFile<?> file = task.file();
 
     int specId = file.specId();
+    // An unpartitioned equality delete applies globally; a partitioned one 
applies only within its
+    // own spec. Scope accordingly, so the index resolves correctly across 
specs.
+    int deleteSpecId =
+        table.specs().get(specId).isUnpartitioned() ? 
IndexCommand.GLOBAL_DELETE_SPEC_ID : specId;

Review Comment:
   Fair. We could refresh the table, but pulling this from the task directly 
makes more sense. I've pushed a fixup comit.



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