datafusion_physical_expr_common::utils

Function reverse_order_bys

Source
pub fn reverse_order_bys(order_bys: LexOrderingRef<'_>) -> LexOrdering
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’.