findinpath commented on code in PR #18338:
URL: https://github.com/apache/iceberg/pull/18338#discussion_r4163810196


##########
core/src/main/java/org/apache/iceberg/ManifestReader.java:
##########
@@ -413,6 +413,16 @@ private static boolean requireStatsProjection(Expression 
rowFilter, Collection<S
         && !columns.containsAll(STATS_COLUMNS);
   }
 
+  private F withFilterableStats(F contentFile) {
+    if (contentFile.content() == FileContent.EQUALITY_DELETES
+        && !contentFile.equalityFieldIds().isEmpty()) {
+      // only equality delete's equality-field stats are relevant for pruning
+      return 
contentFile.copyWithStats(Set.copyOf(contentFile.equalityFieldIds()));

Review Comment:
   > Is there a specific writer that does this (spark? flink? something else?)
   
   [Oracle GoldenGate ](https://www.oracle.com/integration/goldengate/)
   
   
   > Do you happen to know how common writing equality delete files with more 
fields than just the equality delete fields is?
   
   I don't know.
   It seems though that it has escaped the apache/iceberg community to add 
support for this rather exotic handling. I'm guessing it is rather uncommon.



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