Repository navigation
Conversation
fengruotj
force-pushed
the
fix/fallback-row-filter
branch
from
December 2, 2026 09:22
3616b06 to
fe7ca69
Compare
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
Closes #11626
PyPaimon raises
NotImplementedErrorwhen a system-table filter exceeds the 256-leaf limit for Arrow expressions. For example, a query on$optionswith 256 equality conditions joined byORreturns['file.format']. Adding one more condition for a missing key causesto_arrow()to fail.This PR routes oversized predicate trees through the system-table reader’s existing row filter. The reader validates the predicate, evaluates it before projection, and applies the global limit across splits. Eligible predicates with up to 256 leaves continue to use Arrow.
Tests
Added regression tests for
ANDandORpredicates with 256, 257, and 1,024 leaves. They verify that 256 equality conditions use Arrow and that larger trees return the expected rows through row filtering. Additional cases cover nested predicates,NULLcomparisons, filtering on columns omitted from the projection, and a global limit across two splits.$optionsreproducer now returns['file.format']with both 256 and 257 conditions.Table.filter(Expression)incompatibility at 256 leaves.