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 removing all placement rules from a {table,partition,database} #18203

Closed
Tracked by #18030
djshow832 opened this issue Jun 24, 2020 · 1 comment · Fixed by #28982
Closed
Tracked by #18030

Support removing all placement rules from a {table,partition,database} #18203

djshow832 opened this issue Jun 24, 2020 · 1 comment · Fixed by #28982
Assignees
Labels
sig/sql-infra SIG: SQL Infra type/enhancement The issue or PR belongs to an enhancement. type/usability

Comments

@djshow832
Copy link
Contributor

djshow832 commented Jun 24, 2020

Development Task

Background

It's a part of project "Placement rules in SQL". It should accomplished after adding placement rules (#18200).

Removing placement rules for a table is implemented with:

ALTER DATABASE test [DEFAULT] PLACEMENT POLICY SET DEFAULT; -- standard syntax for ALTER DATABASE
ALTER DATABASE test [DEFAULT] PLACEMENT POLICY=default; -- alternative
ALTER TABLE t1 PLACEMENT POLICY=default;
ALTER TABLE t1 PARTITION partition_name PLACEMENT POLICY=default;

All placement rules defined on the table will be removed.

Tasks

  • Support syntax in the parser
  • Validate the SQL
  • Notify PD to drop the placement rules
@djshow832 djshow832 added type/enhancement The issue or PR belongs to an enhancement. type/usability difficulty/medium sig/sql-infra SIG: SQL Infra labels Jun 24, 2020
@morgo morgo changed the title Dropping placement rules for a table through DDL Support removing all placement rules from a {table,partition,database} Jul 26, 2021
@sylzd
Copy link
Contributor

sylzd commented Oct 9, 2021

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/sql-infra SIG: SQL Infra type/enhancement The issue or PR belongs to an enhancement. type/usability
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants