Skip to content

Commit

Permalink
Fix regression in distinct aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
mwylde committed Jul 29, 2024
1 parent bb69311 commit 026e282
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datafusion/proto/src/physical_plan/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ impl AsExecutionPlan for protobuf::PhysicalPlanNode {
let sort_exprs = &[];
let ordering_req = &[];
let ignore_nulls = false;
udaf::create_aggregate_expr(agg_udf.as_ref(), &input_phy_expr, logical_exprs, sort_exprs, ordering_req, &physical_schema, name, ignore_nulls, false)
udaf::create_aggregate_expr(agg_udf.as_ref(), &input_phy_expr, logical_exprs, sort_exprs, ordering_req, &physical_schema, name, ignore_nulls, agg_node.distinct)
}
}
}).transpose()?.ok_or_else(|| {
Expand Down
2 changes: 1 addition & 1 deletion datafusion/proto/src/physical_plan/to_proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub fn serialize_physical_aggr_expr(
aggregate_function: Some(physical_aggregate_expr_node::AggregateFunction::UserDefinedAggrFunction(name)),
expr: expressions,
ordering_req,
distinct: false,
distinct: a.is_distinct(),
},
)),
});
Expand Down

0 comments on commit 026e282

Please sign in to comment.