-
Notifications
You must be signed in to change notification settings - Fork 285
Remove weird dop logic. #23227
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
base: main
Are you sure you want to change the base?
Remove weird dop logic. #23227
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #23226
What this PR does / why we need it:
Code cleanup, remove some strange code.
PR Type
Enhancement
Description
Remove unused
getShuffleDopfunction and its testsSimplify shuffle DOP calculation to use ncpu directly
Remove unnecessary stringzilla dependency from go.mod
Diagram Walkthrough
File Walkthrough
shuffle.go
Delete unused getShuffleDop functionpkg/sql/plan/shuffle.go
getShuffleDopfunction (37 lines) that contained complex andunclear DOP calculation logic
shuffle_test.go
Remove getShuffleDop test casespkg/sql/plan/shuffle_test.go
TestGetShuffleDoptest function (63 lines) that tested thedeleted getShuffleDop function
stats.go
Simplify shuffle DOP to use ncpupkg/sql/plan/stats.go
getShuffleDopcall with directncpuassignmentlogic"
go.mod
Remove stringzilla dependencygo.mod
github.com/ashvardanian/stringzilla/golangdependencygo.sum
Update checksums for removed dependencygo.sum
github.com/ashvardanian/stringzilla/golangpackage