-
Notifications
You must be signed in to change notification settings - Fork 285
create database/table with shallow copy and replace the insert into select
in the restore statement.
#22041
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
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
cf1fa4d
to
1ab3969
Compare
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue ##21977 #21979 #21978
What this PR does / why we need it:
Create a database/table with a shallow copy and replace the
insert into select
in the restore statement.only copy the metadata.
PR Type
Enhancement
Description
• Implement table clone functionality for optimized restore operations
• Replace insert-select with shallow copy for metadata-only operations
• Add new SQL syntax "CREATE TABLE ... CLONE ..."
• Integrate clone operations with snapshot restore workflows
Changes walkthrough 📝
17 files
Add table metadata reader for clone operations
Implement core table clone operator logic
Update restore logic to use clone syntax
Add query plan builder for clone operations
Add compilation support for table clone
Optimize transaction write ordering logic
Add restore detection for clone statements
Extract object stats expansion utility function
Support snapshot context in create table
Add table clone operator constructor
Define AST node for clone syntax
Define table clone operator types
Update PITR to support clone operations
Add clone statement transaction handling
Update timestamp restore with clone support
Add privilege checks for clone operations
Include table clone in column reference mapping
2 files
Rename function for better clarity
Add debug helper for database validation
1 files
Fix SQL parsing parameter count
16 files