risingwave_common::util::sort_util

Function cmp_datum_iter

source
pub fn cmp_datum_iter(
    lhs: impl IntoIterator<Item = impl ToDatumRef>,
    rhs: impl IntoIterator<Item = impl ToDatumRef>,
    order_types: impl IntoIterator<Item = OrderType>,
) -> Ordering
Expand description

Compare two Datum iterators with specified order types.

ยงPanics

Panics if the number of OrderTypes is smaller than the number of Datums, or if the data types of lhs and rhs are not matched.