risingwave_frontend::optimizer::plan_node::generic

Function push_down_join_condition

source
pub fn push_down_join_condition(
    on_condition: &mut Condition,
    left_col_num: usize,
    right_col_num: usize,
    ty: JoinType,
    push_temporal_predicate: bool,
) -> (Condition, Condition)
Expand description

Try to pushes parts of the join condition to its inputs. Returns the pushed predicates. The pushed part will be removed from the original join predicate.

InputRefs in the right pushed condition are indexed by the right child’s output schema.