-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Re-organize and rename aggregates physical plan #2388
Conversation
}; | ||
|
||
/// stream struct for aggregation without grouping columns | ||
pub(crate) struct NoGroupingAggregateStream { |
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.
Any suggestions on the name of this single-state aggregation?
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.
Maybe just AggregateStream
?
ballista/rust/core/src/utils.rs
Outdated
@@ -151,7 +151,7 @@ fn build_exec_plan_diagram( | |||
id: &mut AtomicUsize, | |||
draw_entity: bool, | |||
) -> Result<usize> { | |||
let operator_str = if plan.as_any().downcast_ref::<HashAggregateExec>().is_some() { | |||
let operator_str = if plan.as_any().downcast_ref::<AggregateExec>().is_some() { | |||
"HashAggregateExec" |
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.
Should we also change the operator string here to remove Hash ?
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 @andygrove. I've updated all these explanation strings and checked all occurrences of hash_aggregate
and HashAggregate
.
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.
LGTM. I left one question.
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.
Looks great -- thanks @yjshen
@@ -306,19 +306,21 @@ impl AsExecutionPlan for PhysicalPlanNode { | |||
Arc::new((&input_schema).try_into()?), | |||
)?)) | |||
} | |||
PhysicalPlanType::HashAggregate(hash_agg) => { | |||
PhysicalPlanType::Aggregate(hash_agg) => { |
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.
👍
}; | ||
|
||
/// stream struct for aggregation without grouping columns | ||
pub(crate) struct NoGroupingAggregateStream { |
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.
Maybe just AggregateStream
?
Which issue does this PR close?
Closes #2387.
Rationale for this change
GroupedHashAggregateStream
for aggregate with grouping keys, and a non-hash implementation for aggregate without grouping keys but namedHashAggregateStream
.What changes are included in this PR?
Are there any user-facing changes?
No.
No.