-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Set projection before configuring the source #14685
Merged
alamb
merged 16 commits into
apache:main
from
blaginin:bugfix/set-projection-before-source
Feb 28, 2025
+177
−100
Merged
Changes from 9 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
42d4403
Set projection before configuring the source
blaginin a8709ff
Refresh source manually
blaginin 582aec2
Merge branch 'refs/heads/main' into bugfix/set-projection-before-source
blaginin 1b8a39c
Update statistics on proj / partition columns update
blaginin 54bdbb1
Merge main
blaginin 89ed225
Use `FileScanConfig` own `source`
blaginin 9dd4e38
Extend test to ensure stats are different
blaginin 09a2f6e
Unify names
blaginin e87ffb9
Comment `total_byte_size` in tests
blaginin 616486d
Use source stats as a base
blaginin 1ac9bbf
Merge main & unskip the new test
blaginin a74637c
Return correct stats in the `ParquetSource` mock
blaginin dbd4f67
Revert test changes, add follow on ticket
alamb 7255a16
Merge remote-tracking branch 'apache/main' into bugfix/set-projection…
alamb 9ca4e9d
Revert statistics total_byte_count change
alamb e9ef934
Update test
alamb 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
There are no files selected for viewing
Submodule datafusion-testing
updated
257 files
This file contains 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 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 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 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
Oops, something went wrong.
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.
I don't think those lines were correct, because tests had the same bug: projection was set after the source, and so source statistics (which were used here) weren't really updated properly
A proper way to fix this is set bytes size in
projection_stats
Since it's a separate existing todo, I think it's better to change it in a PR on top of this one
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.
I filed this ticket to track:
Statistics::total_byte_size
does not account for projection inFileScanConfig::with_projection
#14936