grantatspothero commented on code in PR #18338:
URL: https://github.com/apache/iceberg/pull/18338#discussion_r4159660817
##########
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?)
Do you happen to know how common writing equality delete files with more
fields than just the equality delete fields is?
Context: I agree with your fix as it is supported per spec, just trying to
understand the scope of the problem.
--
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]