risingwave_common::util::sort_util

Function cmp_rows

source
pub fn cmp_rows(
    lhs: impl Row,
    rhs: impl Row,
    order_types: &[OrderType],
) -> Ordering
Expand description

Compare two Rows with specified order types.

ยงPanics

Panics if the length of lhs, rhs and order_types are not equal, or, if the schemas of lhs and rhs are not matched.