pub fn stat_expr(
expr: &BoundExpression,
aggregate_fn: &AggregateFnRef,
session: &VortexSession,
) -> Option<BoundExpression>Expand description
Expresses the statistic aggregate_fn of expr as an expression over the statistics that
can be read for the current scope.
If a StatDerivation is registered for the root scalar function of expr, it decides the
statistic. Otherwise this is a reference to aggregate_fn of expr itself. Returns None
when the statistic cannot be known, for example when the aggregate does not support the dtype
of expr.