risingwave_common::util::sort_util

Function partial_cmp_rows

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

Partial compare two Rows with specified order types.

NOTE: This function returns None if two rows have different schema.