Skip to content

Conversation

@2010YOUY01
Copy link
Contributor

Which issue does this PR close?

related to #17358

Rationale for this change

It's not clear to me how to properly handle existing partitioning when using swap_inputs() interface, so I checked the related code and add some comments to explain the pre-condition when using the swap_inputs() interface in join operators.

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the physical-plan Changes to the physical-plan crate label Sep 2, 2025
Copy link
Contributor

@jonathanc-n jonathanc-n left a comment

Choose a reason for hiding this comment

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

This lgtm, small nit (just want to keep everything easy to read 😄 ). Thanks @2010YOUY01!

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @2010YOUY01 and @jonathanc-n -- this is a nice change for sure

@alamb alamb added the documentation Improvements or additions to documentation label Sep 4, 2025
@alamb alamb merged commit a68563b into apache:main Sep 4, 2025
28 checks passed
destrex271 pushed a commit to destrex271/datafusion that referenced this pull request Sep 5, 2025
…pache#17373)

* doc caveats of `swap_inputs()` interface in join executors

* fix ci

* Update datafusion/physical-plan/src/joins/hash_join/exec.rs

Co-authored-by: Jonathan Chen <[email protected]>

---------

Co-authored-by: Jonathan Chen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation physical-plan Changes to the physical-plan crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants