Skip to content
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

Support drop partition for label rules #26794

Closed
Tracked by #3839
rleungx opened this issue Aug 2, 2021 · 0 comments · Fixed by #26795
Closed
Tracked by #3839

Support drop partition for label rules #26794

rleungx opened this issue Aug 2, 2021 · 0 comments · Fixed by #26795

Comments

@rleungx
Copy link
Member

rleungx commented Aug 2, 2021

Development task

We should support deleting the corresponding attributes from a partition immediately once the partition is dropped. e.g., we execute the following SQL:

create table t1 (c int) PARTITION BY RANGE (c)
    (PARTITION p0 VALUES LESS THAN (6),
     PARTITION p1 VALUES LESS THAN (11));
alter table t1 partition p0 attributes="attr";

We can get the corresponding attributes for p0 from PD.
Once we drop this partition,

alter table t1 drop partition p0;

We should not get any attributes of p0 from PD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant