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.
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
Pipeline-friendly Bounded Memory Window Executor #4777
Pipeline-friendly Bounded Memory Window Executor #4777
Changes from 58 commits
56db313
343fafb
dfb6683
0a42315
c2a1593
bf7bd11
4cb7258
dbc30ab
aa4f739
6309b01
d0d06de
91629b8
ae451a4
94c784b
7c4bcb9
0068566
0e73945
4f145dd
c63057f
838972c
6d9a876
f2c7286
6b07621
d62bbdc
a2d2229
63d77a6
28075e6
ba388cb
572a1a4
fa30d91
af60aa9
ca711e4
eb97a5c
36394c0
8b3d37f
25af93c
2b2b376
670fe32
3ea9eed
3892394
ca666e9
73d99c6
09c1942
39564d4
9f73ba7
8ac3847
3349edf
701c43e
3b523b4
28773ab
15d416a
9ceb137
8b9aa6f
e13d6e0
93b8d80
d97a1ad
29007ea
a5019c3
ac2f248
0ca3889
516e512
1e764dd
28d68bb
c4b61c5
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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 wonder if it would be cleaner to leave the conversion to
BoundedWindowAggExec
indatafusion/core/src/physical_optimizer/optimize_sorts.rs
rather than also doing it here in the physical planner.That would both keep the physical plan simpler as well as ensure all the cases you care about are covered in datafusion/core/src/physical_optimizer/optimize_sorts.rs
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.
The challenge with doing this in
optimize_sorts.rs
is that it comes after the pipeline-fixing step. We want the ordinary -> bounded conversion done before that so we can analyze pipelining correctly.However, I agree with your general line of thinking. We are currently experimenting with various ways to simplify/reorganize rules so that this can happen not in the planner but in a rule (like
OptimizeSorts
). Here is an example attempt-in-progress.We will submit a follow-on PR when we have something mature.