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

[feat]: Right Click on Table - DROP table #543

Open
millerjp opened this issue Nov 3, 2024 · 0 comments
Open

[feat]: Right Click on Table - DROP table #543

millerjp opened this issue Nov 3, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request right click schema schema management issues

Comments

@millerjp
Copy link
Contributor

millerjp commented Nov 3, 2024

This very similar to #542 other than we do the DROP with IF EXISTS in the CQL and also use Consistency ALL;

We want IF EXISTS so it throws an error if the table no longer exists.

The warning will be different also


Warning: Drop Table Operation

This operation is irreversible and will permanently delete the table structure and all associated data.

  • By executing this command, the entire table will be removed immediately, including:
    • All data in the table.
    • All indexes associated with the table.
  • Materialized Views: If this table has any materialized views, they must be dropped first. An error will be thrown if any materialized views still exist.
  • Table Structure: The schema definition of the table will be lost and cannot be recovered.
  • Snapshots: If your Cassandra cluster is configured to take snapshots before dropping tables, a snapshot of the table's current data will be created for recovery purposes. Remember to remove this snapshot if they are not needed.
    • Clean up snapshots: Use nodetool clearsnapshot to remove snapshots if they are no longer needed.
    • Disable automatic snapshots: Modify cassandra.yaml to disable snapshots if you do not want this behavior.

Please confirm that you want to proceed with this operation, understanding its irreversible nature, the need to drop any associated materialized views first, and the necessity to manage snapshots.


eg

CONSISTENCY ALL;
DROP TABLE <keyspace>.<table> IF EXISTS
@millerjp millerjp added enhancement New feature or request Needs Triage bugs which are not yet confirmed labels Nov 3, 2024
@millerjp millerjp assigned millerjp and mhmdkrmabd and unassigned millerjp Nov 3, 2024
@millerjp millerjp added right click schema schema management issues and removed Needs Triage bugs which are not yet confirmed labels Nov 3, 2024
@millerjp millerjp added this to the v1.0.0-release milestone Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request right click schema schema management issues
Projects
None yet
Development

No branches or pull requests

2 participants