Skip to content

chore: cleanup OrderedPartialAggregateStream more - #24012

Open
rluvaton wants to merge 1 commit into
apache:mainfrom
rluvaton:cleanup-ordered-partial-stream
Open

chore: cleanup OrderedPartialAggregateStream more#24012
rluvaton wants to merge 1 commit into
apache:mainfrom
rluvaton:cleanup-ordered-partial-stream

Conversation

@rluvaton

Copy link
Copy Markdown
Member

Which issue does this PR close?

N/A

Rationale for this change

My original refactor PR did this but I can just move table and cleanup more

What changes are included in this PR?

remove weird non optimizing thing

Are these changes tested?

existing tests

Are there any user-facing changes?

no

@github-actions github-actions Bot added the physical-plan Changes to the physical-plan crate label Jul 30, 2026

@2010YOUY01 2010YOUY01 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, LGTM.

Left one optional suggestion for further cleaning it up.

.take()
.expect("OrderedPartialAggregateStream state should not be None");

self.handle_reading_input(&mut table, &mut emitter).await?;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could even further move the surrounding setup/cleanup code into this function similarly, then the entry point will only have

self.handle_reading_input(emitter)
self.handle_draining_final(emitter)

Each is representing a execution state, this organization I think map really close to the idea behind it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

physical-plan Changes to the physical-plan crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants