Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
When I try to add test cases, I find it is not easy to create join logical plan whose keys are expressions, because we have to create many additional projections.
I would like to add a new api to create such join in LogicalPlanBuilder.
Describe the solution you'd like
Add a new api to create join in LogicalPlanBuilder. The api will be like:
pub fn join_with_expr_keys(
&self,
right: &LogicalPlan,
join_type: JoinType,
join_keys: (Vec<impl Into<Expr>>, Vec<impl Into<Expr>>),
filter: Option<Expr>,
) -> Result<Self> Describe alternatives you've considered
Additional context
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Activity
Jefffrey commentedon Sep 24, 2025
I think the
join_on()method fits the bill:datafusion/datafusion/expr/src/logical_plan/builder.rs
Lines 927 to 982 in 5bbdb7e
Reference PRs:
LogicalPlanBuilder::join_on#7805