Conversation
…version ParquetReaderFactory drops conjuncts whose top-level columns are not in the read type, but a nested field predicate (s.b) passed that check as long as s was projected. When the read type prunes s to ROW<a>, Parquet reads the unrequested s.b column as all-null and skips row groups that contain matching rows. Also require the whole nested path to survive the read type; an OR touching a pruned path is dropped as a whole. Generated-by: Claude Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
fix #10378
withReadTypeprunes a nested field that a filter references (s.b = 7withs ROW<a>), withoutexecuteFilter().s.bpasses and Parquet reads it as all-null.ParquetReaderFactorynow also requires the whole nested path in the read type. AND keeps projected conjuncts; an OR touching a pruned path is dropped.ReadBuilderpath is affected. Flink/Spark SQL keep filter fields in the read type;executeFilter()is already safe.Tests
AppendOnlySimpleTableTest#testParquetFilterOnUnprojectedNestedField; fails on master.ParquetReadWriteTest#testReadWithUnprojectedNestedFilter(AND, OR); both fail on master.ParquetReadWriteTest54/54 andAppendOnlySimpleTableTest114/114 pass; checkstyle and spotless pass onpaimon-formatandpaimon-core.