jonasHanhan commented on code in PR #27073:
URL: https://github.com/apache/datafusion/pull/27073#discussion_r4702580565
##########
datafusion/substrait/src/logical_plan/producer/rel/aggregate_rel.rs:
##########
@@ -167,8 +167,19 @@ pub fn parse_flat_grouping_exprs(
) -> datafusion::common::Result<Grouping> {
let mut expression_references = Vec::with_capacity(exprs.len());
let mut grouping_expressions = Vec::with_capacity(exprs.len());
+ // DataFusion's Aggregate schema keeps each grouping key once
Review Comment:
Yeah, almost — it'll still execute `GROUP BY k, k`, it just collapses the
extra `k` in the aggregate. The producer was still emitting both grouping
expressions, so this just dedupes them first.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]