Skip to content

Add a new api to create join in LogicalPlanBuilder #4306

@ygf11

Description

@ygf11

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

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions