Skip to content

Commit

Permalink
refactor: Don't enter streaming engine for groupby-> agg mean/median …
Browse files Browse the repository at this point in the history
…date
  • Loading branch information
ritchie46 committed Jun 7, 2024
1 parent faf0f06 commit 6a48e65
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ pub fn can_convert_to_hash_agg(
}
) && {
if let Ok(field) = ae.to_field(input_schema, Context::Default, expr_arena) {
field.dtype.to_physical().is_numeric()
match field.dtype {
DataType::Date => {
matches!(agg_fn, IRAggExpr::Mean(_) | IRAggExpr::Median(_))
},
_ => field.dtype.to_physical().is_numeric(),
}
} else {
false
}
Expand Down

0 comments on commit 6a48e65

Please sign in to comment.