Skip to content

Commit

Permalink
Return PhysicalGroupBy from AggregateExec::group_expr
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkharderdev committed Jun 13, 2022
1 parent 27dcdb1 commit a2cb52d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datafusion/core/src/physical_plan/aggregates/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ impl AggregateExec {
}

/// Grouping expressions
pub fn group_expr(&self) -> &[(Arc<dyn PhysicalExpr>, String)] {
self.group_by.expr()
pub fn group_expr(&self) -> &PhysicalGroupBy {
&self.group_by
}

/// Grouping expressions as they occur in the output schema
Expand Down Expand Up @@ -757,7 +757,7 @@ mod tests {
];
assert_batches_sorted_eq!(expected, &result);

let groups = partial_aggregate.group_expr().to_vec();
let groups = partial_aggregate.group_expr().expr().to_vec();

let merge = Arc::new(CoalescePartitionsExec::new(partial_aggregate));

Expand Down

0 comments on commit a2cb52d

Please sign in to comment.