Skip to main content

compute_join_projection

Function compute_join_projection 

Source
pub fn compute_join_projection(
    select_exprs: &[Expression],
    outer_columns: &[String],
    inner_columns: &[String],
) -> Option<JoinProjectionIndices>
Expand description

Compute projection indices for a join operator.

Analyzes SELECT expressions and determines which columns from the outer and inner sides are needed. Returns columns in SELECT order (not outer-first/inner-second).

§Arguments

  • select_exprs - The SELECT expressions to analyze
  • outer_columns - Column names from the outer (left) side of the join
  • inner_columns - Column names from the inner (right) side of the join

§Returns

Some(JoinProjectionIndices) if all expressions are simple column references, None otherwise.