-
Notifications
You must be signed in to change notification settings - Fork 285
apply cow to indexes if the primary key and indexed columns are not modified when ALTER TABLE. #22380
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:
|
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 functionality to support index COW optimization
Diagram Walkthrough
File Walkthrough
17 files
Track affected columns and implement COW logic
Add COW index copying functionality
Refactor clone table structure for COW support
Return primary key affected status
Return primary key affected status
Return primary key affected status
Return primary key affected status
Update table clone constructor parameters
Add skip indexes copy option handling
Update table clone compilation flow
Rename dedup option to copy option
Update option method names
Update context key reference
Update context key reference
Update table clone execution flow
Rename context key type
Add CloneTable message and update AlterCopyOpt
1 files
Fix snapshot handling in table clone
2 files
Add comprehensive test cases for COW functionality
Expected test results for COW functionality
5 files