-
Notifications
You must be signed in to change notification settings - Fork 752
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
Feat : undrop table & show history #5562
Feat : undrop table & show history #5562
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Thanks for the contribution! Please review the labels and make any necessary changes. |
49e2227
to
ec1db2c
Compare
let catalog_name = self.plan.catalog.as_str(); | ||
let db_name = self.plan.db.as_str(); | ||
|
||
// shall we add UserPrivilege::Type::UnDrop ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @flaneur2020
tests/suites/0_stateless/20+_others/20_0006_system_tables_with_dropped.sql
Outdated
Show resolved
Hide resolved
Added |
Hi @dantengsky and @BohuTANG , Could you pls confirm if the commands UNDROP and SHOW TABLES HISTORY work with a policy like Data Retention Period? That means only dropped tables still within the retention period can be restored or displayed. If so, please provide more information about the retention policy. Thanks. |
Hi, @soyeric128 I think we don't have the retention policy yet. We only have the Let's ignore this PR to document for now. |
Sorry, missed your question totally...
|
I have updated the cc @soyeric128 |
Thanks for the reply, @dantengsky. Please let me know when the retention policy is ready, then we can start the document updating. Thank you. |
Thanks for the updates. Can we update the description a little bit to be more precise? Restores the recent version of a dropped table. -> Restore the most recent version of a dropped table. |
I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/
Summary
undrop table ..
andshow tables history ..
(legacy parser only)NOTE:
max_tables_per_database
, historical dropped tables are NOT countedundrop
operation,UserPrivilegeType::Drop
is useddropped_on
is added tosystem.tables
drop_time
is added toinformation_schema.tables
test case
test_statements_in_legacy_suites
ofcommon/ast/tests/it/parser.rs
been tweaked accordinglydrop table
no longer delete data @wubx @BohuTANGplease use
truncate table & optimize table purge
insteadChangelog
Related Issues
Fixes #5561