risingwave_frontend::expr::utils

Function merge_expr_by_logical

source
pub(super) fn merge_expr_by_logical<I>(
    exprs: I,
    op: ExprType,
    identity_elem: ExprImpl,
) -> ExprImpl
where I: IntoIterator<Item = ExprImpl>,
Expand description

Merge the given expressions by the logical operation.

The op must be commutative and associative, typically And or Or.