Skip to content

[AURON #1809] Rename SemiJoin JoinerParams probe_is_join_side - #2751

Open
dragonknightk wants to merge 1 commit into
apache:masterfrom
dragonknightk:rename-probe-is-join-side-1809
Open

dragonknightk wants to merge 1 commit into
apache:masterfrom
dragonknightk:rename-probe-is-join-side-1809

Conversation

@dragonknightk

Copy link
Copy Markdown

Which issue does this PR close?

Closes #1809

Rationale for this change

The broadcast hash SemiJoin flag JoinerParams.probe_is_join_side is easy to misread. In this codebase join_side is a noun (LEFT or RIGHT), not an adjective, so the old name does not say what the flag actually means. The flag is true when the probe side is also the outer side of the semi, anti, or existence join: left for a left join, right for a right join.

What changes are included in this PR?

Rename the field to is_probe_on_outer_side on the broadcast hash SemiJoin JoinerParams only, and add a short comment on the field. The sort-merge SemiJoin and the broadcast full join keep their own JoinerParams unchanged. Runtime behavior is unchanged.

Are there any user-facing changes?

No

How was this patch tested?

Existing broadcast hash join unit tests cover left and right semi, anti, and existence joins, including both probe-on-outer-side and probe-on-inner-side cases, plus residual filter and spill paths.

Was this patch authored or co-authored using generative AI tooling?

  • Yes
  • No

If yes, include: Generated-by: Grok Bot

ASF guidance: https://www.apache.org/legal/generative-tooling.html

# Which issue does this PR close?

Closes issue 1809

# Rationale for this change

The broadcast hash SemiJoin flag `JoinerParams.probe_is_join_side` is easy to misread. In this codebase `join_side` is a noun (LEFT or RIGHT), not an adjective, so the old name does not say what the flag actually means. The flag is true when the probe side is also the outer side of the semi, anti, or existence join: left for a left join, right for a right join.

# What changes are included in this PR?

Rename the field to `is_probe_on_outer_side` on the broadcast hash SemiJoin `JoinerParams` only, and add a short comment on the field. The sort-merge SemiJoin and the broadcast full join keep their own `JoinerParams` unchanged. Runtime behavior is unchanged.

# Are there any user-facing changes?

No

# How was this patch tested?

Existing broadcast hash join unit tests cover left and right semi, anti, and existence joins, including both probe-on-outer-side and probe-on-inner-side cases, plus residual filter and spill paths.

Signed-off-by: dragonknightk <37928252+dragonknightk@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename SemiJoin's JoinerParams.probe_is_join_side to is_probe_on_outer_side

1 participant