Function datafusion_physical_expr_common::utils::reverse_order_bys
source · pub fn reverse_order_bys(
order_bys: &[PhysicalSortExpr],
) -> Vec<PhysicalSortExpr>
Expand description
Reverses the ORDER BY expression, which is useful during equivalent window expression construction. For instance, ‘ORDER BY a ASC, NULLS LAST’ turns into ‘ORDER BY a DESC, NULLS FIRST’.