Skip to content

Commit 1f9da9f

Browse files
committed
Update field output name for aggregates
1 parent 54de5ab commit 1f9da9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datafusion/physical-expr/src/aggregate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ impl AggregateFunctionExpr {
373373

374374
/// the field of the final result of this aggregation.
375375
pub fn field(&self) -> Field {
376-
self.return_field.clone()
376+
self.return_field.clone().with_name(&self.name)
377377
}
378378

379379
/// the accumulator used to accumulate values from the expressions.

0 commit comments

Comments
 (0)