Function mz_sql::plan::query::plan_order_by_exprs
source ยท pub(crate) fn plan_order_by_exprs(
ecx: &ExprContext<'_>,
order_by_exprs: &[OrderByExpr<Aug>],
output_columns: &[(usize, &ColumnName)],
) -> Result<(Vec<ColumnOrder>, Vec<HirScalarExpr>), PlanError>
Expand description
Plans a slice of ORDER BY
expressions.
See plan_order_by_or_distinct_expr
for details on the output_columns
parameter.
Returns the determined column orderings and a list of scalar expressions that must be mapped onto the underlying relation expression.