Repository navigation
Fix scans dropping NaN rows for IsNaN, NotEqualTo and NotIn #4346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rahulsmahadev
wants to merge
11
commits into
apache:main
Choose a base branch
from
rahulsmahadev:rahul/isnan-scan-nan-rows
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+171
−5
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
9b17b2c
Fix scans dropping NaN rows for IsNaN, NotEqualTo, NotIn and NOT
rahulsmahadev 191387d
Drop NOT handling and cover float32 in NaN-sensitive scans
rahulsmahadev 2feee8e
Merge upstream main into rahul/isnan-scan-nan-rows
rahulsmahadev 241c84e
Fix unreachable-statement lint in _has_nan_sensitive_predicate
rahulsmahadev 7c00394
Merge remote-tracking branch 'upstream/main' into rahul/isnan-scan-na…
rahulsmahadev 6ff9775
Merge upstream/main into rahul/isnan-scan-nan-rows
rahulsmahadev 0520938
Document the rewrite_not precondition and test negated filters
rahulsmahadev 762e597
Merge upstream/main into rahul/isnan-scan-nan-rows
rahulsmahadev 31b282a
Test _nan_safe_conjuncts directly
rahulsmahadev f145b99
Recurse into Or when pushing down NaN-safe predicates
rahulsmahadev d398523
Use a visitor for the NaN-safe pushdown filter
rahulsmahadev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: add negated cases so this test guards the
rewrite_notordering atpyarrow.py:1831._has_nan_sensitive_predicatenever descends intoNot, so if the check ran before the rewrite,Not(NotNaN(x))andNot(EqualTo(x, 5.0))would drop the NaN row again while this test and #4350'stest_scan_negated_comparison_matches_file_pruning_for_nanstill pass.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, added both cases. They fail if the NaN check runs before
rewrite_not([] instead of [0]) and pass as is.