-
Notifications
You must be signed in to change notification settings - Fork 284
to 3.0: apply cow to indexes if the primary key and indexed columns are not modified when ALTER TABLE #22385
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
Conversation
You are nearing your monthly Qodo Merge usage quota. For more information, please visit here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
You are nearing your monthly Qodo Merge usage quota. For more information, please visit here. PR Code Suggestions ✨Explore these optional code suggestions:
|
c6ebcb0
to
5b72d43
Compare
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue ##19207 #22174
What this PR does / why we need it:
During ALTER TABLE, apply a Copy-On-Write to indexes if the primary key and indexed columns are not modified.
PR Type
Enhancement
Description
Implement Copy-On-Write for indexes during ALTER TABLE operations
Skip copying unaffected indexes when primary key and indexed columns unchanged
Add tracking of affected columns in ALTER TABLE operations
Refactor table clone operations to support index copying optimization
Diagram Walkthrough
File Walkthrough
17 files
Track affected columns and implement COW logic
Add index copy-on-write execution logic
Return primary key affected status
Refactor clone table structure and privilege checks
Return primary key affected status
Update table clone constructor parameters
Return primary key affected status
Add index copy skipping logic
Simplify table clone compilation
Rename dedup option to copy option
Update option reference naming
Rename dedup option methods
Update column modification return handling
Update context key for copy options
Handle clone table plan execution
Rename context key for copy options
Add CloneTable message and update AlterCopyOpt
2 files
Fix snapshot handling in table clone
Fix error variable assignment
1 files
Minor formatting improvements
2 files
Add test results for COW functionality
Add comprehensive COW test cases
2 files