Skip to content

Do not reset HashJoinExec state when calling HashJoinExec::with_projection#20340

Closed
alamb wants to merge 2 commits intoapache:mainfrom
alamb:alamb/less_builder
Closed

Do not reset HashJoinExec state when calling HashJoinExec::with_projection#20340
alamb wants to merge 2 commits intoapache:mainfrom
alamb:alamb/less_builder

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Feb 13, 2026

Which issue does this PR close?

Rationale for this change

@2010YOUY01 noted in https://github.com/apache/datafusion/pull/19893/changes#r2787434025 that the change to HashJoinExec::with_projection resulting in non obviously resetting the plan state (like dynamic filters). This could potentially lead to bugs in the future so let's be explicit

What changes are included in this PR?

Remove use of HashJoinExecBuilder

Are these changes tested?

Yes, by existing CI

Are there any user-facing changes?

No

@github-actions github-actions bot added the physical-plan Changes to the physical-plan crate label Feb 13, 2026
@alamb alamb changed the title Avoid HashJoinExecBuilder when computing properties Avoid HashJoinExecBuilder in HashJoinExec::with_projection Feb 13, 2026
.with_projection_ref(projection)
.build()

let cache = HashJoinExec::compute_properties(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the point here is to be explcity (and more verbose) rather than resetting the state

@alamb alamb changed the title Avoid HashJoinExecBuilder in HashJoinExec::with_projection Do not reset HashJoinExec state when calling HashJoinExec::with_projection Feb 13, 2026
@alamb alamb marked this pull request as ready for review February 13, 2026 17:59
@alamb alamb requested a review from 2010YOUY01 February 13, 2026 18:00
@jonathanc-n
Copy link
Contributor

cc @alamb #20276

@alamb
Copy link
Contributor Author

alamb commented Feb 13, 2026

I think #20276 is better so let's go with that one

@alamb alamb closed this Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

physical-plan Changes to the physical-plan crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants