Skip to content

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Oct 12, 2023

Which issue does this PR close?

Related to #7766, follow on to #7805

Rationale for this change

@jackwener suggested in https://github.com/apache/arrow-datafusion/pull/7805/files#r1356685435 that the newly added LogicalPlan::join_on API could be used more widely:

There are more code can be like this.

like join_on_false() .....

What changes are included in this PR?

  1. Use join_on more widely.
  2. Chang the API of LogicalPlan::join_on to match DataFrame::join_on and take an iterator of Exprs rather than just an Expr.

Are these changes tested?

Covered by existing tests

Are there any user-facing changes?

Since the API change in #7805 has not been released, this is not a end-user visible API change

@github-actions github-actions bot added sql SQL Planner logical-expr Logical plan and expressions optimizer Optimizer rules substrait Changes to the substrait crate labels Oct 12, 2023
Copy link
Member

@jackwener jackwener left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @alamb

@alamb
Copy link
Contributor Author

alamb commented Oct 13, 2023

Thank you for the review @jackwener 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

logical-expr Logical plan and expressions optimizer Optimizer rules sql SQL Planner substrait Changes to the substrait crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants