-
Notifications
You must be signed in to change notification settings - Fork 2k
perf: Implement physical execution of uncorrelated scalar subqueries #21240
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
neilconway
wants to merge
69
commits into
apache:main
Choose a base branch
from
neilconway:neilc/scalar-subquery-expr
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.
Open
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
4a3e553
Initial implementation
neilconway 6b4f5c0
cargo fmt
neilconway 1412ab1
Properly wait for subquery exec to complete before exec'ing main input
neilconway cedfa5c
Better fix for async exec issue
neilconway d80569f
Fix doc lint error
neilconway 9f606fb
Implement logical plan serialization/deserialization for subqueries
neilconway b07491b
cargo fmt
neilconway 27a1ac2
Refactor logical plan deserialization
neilconway bce0a6d
Merge remote-tracking branch 'origin/main' into neilc/scalar-subquery…
neilconway 7071001
Increase large files size check
neilconway b9bce91
fix clippy
neilconway 7c965aa
Update expected TPC-H plans
neilconway 09f167a
Implement statistics
neilconway 54a9f79
Tweak comments
neilconway b979e3d
Merge branch 'main' into neilc/scalar-subquery-expr
neilconway 2c256e7
Ensure projection pushdown works inside uncorrelated subqueries
neilconway 99d9bcf
Update expected plans
neilconway 9a11d62
Fix overlooked cases for projection pushdown
neilconway 9b217ca
Merge remote-tracking branch 'origin/main' into neilc/scalar-subquery…
neilconway 5aef67e
Fix line numbers in expected EXPLAIN
neilconway 3d0b99f
Evaluate subqueries in parallel
neilconway f99ded5
Merge remote-tracking branch 'origin/main' into neilc/scalar-subquery…
neilconway b02abf8
Don't try to use subquery filters for partition pruning
neilconway 3971312
Raise an error if duplicate subquery eval is detected
neilconway 64e9f34
cargo fmt
neilconway 26d8acb
Update expected plan
neilconway d2af491
Merge remote-tracking branch 'origin/main' into neilc/scalar-subquery…
neilconway f9c9d5d
Remove unnecessary IN/EXISTS serialization code
neilconway 92e6054
Code cleanup
neilconway 6857966
Code cleanup
neilconway 6a4f524
Code cleanup and refactoring
neilconway 7adb788
Merge remote-tracking branch 'origin/main' into neilc/scalar-subquery…
neilconway 670139c
Updates for plan API changes
neilconway 1239e3a
Fix doc build
neilconway 7bb6959
Add sanity check on subquery schema, per review
neilconway 4c824a4
Improve comments per review
neilconway ee58247
Introduce struct wrapping scalar subquery results, per review
neilconway f582628
Fix reset_state bug
neilconway 4e7442c
Simplify new test case
neilconway a2087d0
Remove benchmarks, not useful
neilconway dc4ca31
Merge remote-tracking branch 'origin/main' into neilc/scalar-subquery…
neilconway 0416b0d
Refactor unit test code
neilconway b9d307b
Fix doc build
neilconway e787873
Doc fix
neilconway ce1e3c0
Tweak comments
neilconway c32edba
Merge remote-tracking branch 'origin/main' into neilc/scalar-subquery…
neilconway 50d0ef8
Revert clippy benchmark fix
neilconway 5935028
Update stale comment
neilconway 4b60787
Use IndexSet instead of HashSet + Vec
neilconway 177a190
Reduce unnecessary cloning of subqueries
neilconway cf582e3
Introduce type wrapper for subquery index
neilconway 2245153
Minor cleanups
neilconway 19f796c
Fix clippy
neilconway 12b4b6b
Tweak metadata SLT query
neilconway 59a47c8
New approach to proto serialization
neilconway 9ed5cf7
Refactor new proto approach
neilconway 010bc43
Update stale comments
neilconway 7c7265b
Various cleanups
neilconway 200f081
Further cleanups
neilconway 58481f4
Add migration guide notes
neilconway 47ae89c
Merge remote-tracking branch 'origin/main' into neilc/scalar-subquery…
neilconway 6d8d056
Fix CI failures
neilconway 0f3bb7b
Unbreak CI, hopefully
neilconway a7ea4c8
Fix prettier issues
neilconway f6ab615
Fix another prettier issue
neilconway 975ba7c
Fix README
neilconway 443e05f
Merge remote-tracking branch 'origin/main' into neilc/scalar-subquery…
neilconway 5cc14ea
Sigh, fix prettier again
neilconway bd19609
Merge remote-tracking branch 'origin/main' into neilc/scalar-subquery…
neilconway 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.
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.
do we really need to up the limit? this repo gets checked out a lot
What is so large that required increasing to 2MB?
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 changed this because
pbjson.rsstarted to exceed the limit (this PR only increases its size slightly, but it is only a hair under 1MB in mainline).We could certainly make the limit tighter (e.g., 1.2MB) -- or if there's a different approach you prefer, lmk.