Skip to content

Commit d11820a

Browse files
authored
refactor count_distinct to not to have update and merge (#5408)
1 parent ddd64e7 commit d11820a

3 files changed

Lines changed: 117 additions & 323 deletions

File tree

‎datafusion/physical-expr/src/aggregate/build_in.rs‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,9 @@ pub fn create_aggregate_expr(
5858
return_type,
5959
)),
6060
(AggregateFunction::Count, true) => Arc::new(expressions::DistinctCount::new(
61-
input_phy_types,
62-
input_phy_exprs,
61+
input_phy_types[0].clone(),
62+
input_phy_exprs[0].clone(),
6363
name,
64-
return_type,
6564
)),
6665
(AggregateFunction::Grouping, _) => Arc::new(expressions::Grouping::new(
6766
input_phy_exprs[0].clone(),

0 commit comments

Comments
 (0)