Skip to content

Conversation

@gene-bordegaray
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

Eliminates dead code that was not used in the enforce distribution rule.

In the branch where a parent requires hash repartitioning, there was a condition that would "add" a round robin if hash was not necessary (already hashed correctly) and the add round-robin flag was marked as true. This condition would never evaluate to true because anytime a parent requires hash repartitioning, we cannot round-robin because it would break the hash partitioning.

What changes are included in this PR?

A condition is deleted. No tests or plans were changed since this was dead code.

Are these changes tested?

Yes, all tests (unit and sqllogictests) still pass.

There is no new tests to add.

Are there any user-facing changes?

No.

@github-actions github-actions bot added the optimizer Optimizer rules label Dec 6, 2025
@gene-bordegaray gene-bordegaray marked this pull request as ready for review December 6, 2025 14:07
@gene-bordegaray gene-bordegaray changed the title Eliminate dead round-robin insertion in enforce distribution bug: Eliminate dead round-robin insertion in enforce distribution Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

optimizer Optimizer rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Delete Unneecessary Round-Robin Condition in Repartitioning

1 participant