Skip to content

chore: Refactor planner random and partition expressions#3704

Merged
andygrove merged 3 commits intoapache:mainfrom
coderfender:refactor_planner_random
Mar 17, 2026
Merged

chore: Refactor planner random and partition expressions#3704
andygrove merged 3 commits intoapache:mainfrom
coderfender:refactor_planner_random

Conversation

@coderfender
Copy link
Copy Markdown
Contributor

@coderfender coderfender commented Mar 14, 2026

Which issue does this PR close?

Part of #3705

Rationale for this change

What changes are included in this PR?

How are these changes tested?

@coderfender coderfender changed the title chore : Refactor planner random and partition functions chore : Refactor planner random and partition expressions Mar 14, 2026
@coderfender coderfender changed the title chore : Refactor planner random and partition expressions chore: Refactor planner random and partition expressions Mar 16, 2026
@coderfender
Copy link
Copy Markdown
Contributor Author

Tagging @mbutrovich for review

/// Return partition id of this planner.
pub fn partition(&self) -> i32 {
self.partition
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

had to add a method since partition field is private which was not being accessed outside this file before refactor (SparkPartitionId , MonotonicallyIncreasingId functions leverage this)

Copy link
Copy Markdown
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @coderfender

@andygrove andygrove merged commit f27c4c3 into apache:main Mar 17, 2026
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants