Function datafusion_expr::expr_rewriter::rewrite_sort_cols_by_aggs

source ยท
pub fn rewrite_sort_cols_by_aggs(
    exprs: impl IntoIterator<Item = impl Into<Expr>>,
    plan: &LogicalPlan,
) -> Result<Vec<Expr>>
Expand description

Rewrite sort on aggregate expressions to sort on the column of aggregate output For example, max(x) is written to col("max(x)")