Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-40816: [C++] Security checks and relaxing hashjoin batch rows size. #40817

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Light-City
Copy link
Contributor

@Light-City Light-City commented Mar 27, 2024

Rationale for this change

swiss_join and partition has been changed.

add an assertion to ensure that batch_prtn_ranges is incremented and relax the rows check of partition eval.

What changes are included in this PR?

swiss_join.cc
partition_util.h

Are these changes tested?

yes

Are there any user-facing changes?

yes

add an assertion to ensure that batch_prtn_ranges is incremented and relax the rows check of partition eval.
@Light-City Light-City requested a review from westonpace as a code owner March 27, 2024 08:27
Copy link

⚠️ GitHub issue #40816 has been automatically assigned in GitHub to PR creator.

cpp/src/arrow/acero/partition_util.h Outdated Show resolved Hide resolved
cpp/src/arrow/acero/partition_util.h Outdated Show resolved Hide resolved
@pitrou
Copy link
Member

pitrou commented Mar 27, 2024

Is there any situation where these checks might fail or is this purely checking internal invariants?

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Mar 27, 2024
@Light-City
Copy link
Contributor Author

Light-City commented Mar 28, 2024

Is there any situation where these checks might fail or is this purely checking internal invariants?

I'm not sure if it exists. At least in our scenario, setting rows to a number between 1<<15 and 1<<16-1 is no problem.

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting committer review Awaiting committer review labels Apr 2, 2024
@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Apr 10, 2024
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.

3 participants