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

[MINOR]: Add a test case for when target partition is 1, no hash repartition is added to the plan. #8757

Merged
merged 1 commit into from
Jan 5, 2024
Merged

[MINOR]: Add a test case for when target partition is 1, no hash repartition is added to the plan. #8757

merged 1 commit into from
Jan 5, 2024

Conversation

mustafasrepo
Copy link
Contributor

Which issue does this PR close?

Closes #.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Yes

Are there any user-facing changes?

@github-actions github-actions bot added core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) labels Jan 5, 2024
// Early return if hash repartition is unnecessary
if n_target == partition_count && n_target == 1 {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think previous check was wrong, partition count equality doesn't mean their hash requirement is satisfied. However, when target is 1 hash requirement is trivially satisfied

Copy link
Contributor

@ozankabak ozankabak left a comment

Choose a reason for hiding this comment

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

LGTM, but I'd appreciate a quick look by @Dandandan or @alamb

@mustafasrepo mustafasrepo merged commit 05e3d45 into apache:main Jan 5, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants