Skip to content

Commit

Permalink
refactor: *_horizontal dependent on reduce_expr to expression archite…
Browse files Browse the repository at this point in the history
…cture (pola-rs#11685)
  • Loading branch information
reswqa authored and romanovacca committed Oct 16, 2023
1 parent 0b9bf98 commit 4ad09ea
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/polars-plan/src/dsl/function_expr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ pub enum FunctionExpr {
ForwardFill {
limit: FillNullLimit,
},
SumHorizontal,
MaxHorizontal,
MinHorizontal,
#[cfg(feature = "ewma")]
EwmMean {
options: EWMOptions,
Expand All @@ -270,9 +273,6 @@ pub enum FunctionExpr {
EwmVar {
options: EWMOptions,
},
SumHorizontal,
MaxHorizontal,
MinHorizontal,
}

impl Hash for FunctionExpr {
Expand Down Expand Up @@ -772,15 +772,15 @@ impl From<FunctionExpr> for SpecialEq<Arc<dyn SeriesUdf>> {
},
BackwardFill { limit } => map!(dispatch::backward_fill, limit),
ForwardFill { limit } => map!(dispatch::forward_fill, limit),
SumHorizontal => map_as_slice!(dispatch::sum_horizontal),
MaxHorizontal => wrap!(dispatch::max_horizontal),
MinHorizontal => wrap!(dispatch::min_horizontal),
#[cfg(feature = "ewma")]
EwmMean { options } => map!(ewm::ewm_mean, options),
#[cfg(feature = "ewma")]
EwmStd { options } => map!(ewm::ewm_std, options),
#[cfg(feature = "ewma")]
EwmVar { options } => map!(ewm::ewm_var, options),
SumHorizontal => map_as_slice!(dispatch::sum_horizontal),
MaxHorizontal => wrap!(dispatch::max_horizontal),
MinHorizontal => wrap!(dispatch::min_horizontal),
}
}
}
Expand Down

0 comments on commit 4ad09ea

Please sign in to comment.