Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
Add state of clickhouse max_table_size_to_drop config option
Browse files Browse the repository at this point in the history
  • Loading branch information
Khatskevich committed Nov 17, 2023
1 parent cbfe36b commit 69a2f7c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docs/products/clickhouse/howto/manage-databases-tables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,33 @@ Select a table engine
Part of the table definition includes a targeted table engine. The full list of supported table engines in Aiven for ClickHouse can be found :doc:`in this article <../reference/supported-table-engines>`. Aiven for ClickHouse uses ``replicated`` variants of table engines to ensure high availability. Even if you select ``MergeTree`` engine, we will automatically use the replicated variant on our side.

With this knowledge, try out an example dataset described :doc:`over here </docs/products/clickhouse/howto/load-dataset>`.

Remove a table
--------------

A table can be removed using either CLI or `Aiven Console <https://console.aiven.io/>`_.

.. note::

You can remove a table of any size if you have the ``DROP`` permission since parameters
``max_table_size_to_drop`` and ``max_partition_size_to_drop`` are disabled for Aiven
services. Consider :doc:`granting
</docs/products/clickhouse/howto/manage-users-roles>` only necessary permissions to your database users.

Check failure on line 62 in docs/products/clickhouse/howto/manage-databases-tables.rst

View workflow job for this annotation

GitHub Actions / prose

[vale] reported by reviewdog 🐶 [Aiven.common_replacements] Use 'ClickHouse' instead of 'clickhouse'. Raw Output: {"message": "[Aiven.common_replacements] Use 'ClickHouse' instead of 'clickhouse'.", "location": {"path": "docs/products/clickhouse/howto/manage-databases-tables.rst", "range": {"start": {"line": 62, "column": 20}}}, "severity": "ERROR"}

Remove a table with CLI
^^^^^^^^^^^^^^^^^^^^^^^

Run the following SQL command to remove your table:

.. code-block:: bash
DROP TABLE NAME_OF_YOUR_DATABASE.NAME_OF_YOUR_TABLE;
Remove a table in the console
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

To remove your table in `Aiven Console <https://console.aiven.io/>`_, take the following steps:

1. Log in to the `Aiven Console <https://console.aiven.io/>`_.
2. Navigate to the table you want to remove: organization > project > service > **Databases and tables**.
3. In the **Databases and tables** view, navigate to the table and select **Actions** menu (**...**) > **Remove** > **Delete table**.

0 comments on commit 69a2f7c

Please sign in to comment.