From 84d46dd7882b3cb4e14ebd540ee9ae2c4eb7e4a9 Mon Sep 17 00:00:00 2001 From: Aliaksei Khatskevich Date: Thu, 2 Nov 2023 00:30:51 +0100 Subject: [PATCH 1/4] Fix broken links --- docs/products/clickhouse/howto/manage-users-roles.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/products/clickhouse/howto/manage-users-roles.rst b/docs/products/clickhouse/howto/manage-users-roles.rst index 7d7985b1b1..14b9313112 100644 --- a/docs/products/clickhouse/howto/manage-users-roles.rst +++ b/docs/products/clickhouse/howto/manage-users-roles.rst @@ -145,4 +145,4 @@ You can also see the users, their roles, and permissions in the `Aiven web cons Manage using Terraform ------------------------ -You can also manage user roles and access using the `Aiven Provider for Terraform `. Try the Aiven Terraform Provider Cookbook recipe, Manage user privileges for Aiven for ClickHouse® services using Terraform`. \ No newline at end of file +You can also manage user roles and access using the :doc:`Aiven Provider for Terraform `. Try Aiven Terraform Provider Cookbook recipe `Manage user privileges for Aiven for ClickHouse® services using Terraform `_. From 7c9cd8077045ed7f6fc3c0c127c21e22932ecd76 Mon Sep 17 00:00:00 2001 From: Aliaksei Khatskevich Date: Thu, 2 Nov 2023 00:32:17 +0100 Subject: [PATCH 2/4] Add state of clickhouse max_table_size_to_drop config option --- .../howto/manage-databases-tables.rst | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/docs/products/clickhouse/howto/manage-databases-tables.rst b/docs/products/clickhouse/howto/manage-databases-tables.rst index 660b475c1a..81c197775a 100644 --- a/docs/products/clickhouse/howto/manage-databases-tables.rst +++ b/docs/products/clickhouse/howto/manage-databases-tables.rst @@ -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 `. + +Remove a table +-------------- + +A table can be removed using either CLI or `Aiven Console `_. + +.. 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 + ` only necessary permissions to your database users. + +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 `_, take the following steps: + +1. Log in to the `Aiven Console `_. +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**. From 009cccd76f193839b390fb35eac181c161647411 Mon Sep 17 00:00:00 2001 From: dorota <114921900+wojcik-dorota@users.noreply.github.com> Date: Fri, 17 Nov 2023 07:06:00 +0100 Subject: [PATCH 3/4] Remove a redundant space --- docs/products/clickhouse/howto/manage-users-roles.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/products/clickhouse/howto/manage-users-roles.rst b/docs/products/clickhouse/howto/manage-users-roles.rst index 14b9313112..84b818ccd7 100644 --- a/docs/products/clickhouse/howto/manage-users-roles.rst +++ b/docs/products/clickhouse/howto/manage-users-roles.rst @@ -145,4 +145,4 @@ You can also see the users, their roles, and permissions in the `Aiven web cons Manage using Terraform ------------------------ -You can also manage user roles and access using the :doc:`Aiven Provider for Terraform `. Try Aiven Terraform Provider Cookbook recipe `Manage user privileges for Aiven for ClickHouse® services using Terraform `_. +You can also manage user roles and access using the :doc:`Aiven Provider for Terraform `. Try Aiven Terraform Provider Cookbook recipe `Manage user privileges for Aiven for ClickHouse® services using Terraform `_. From 1640aa16c68123e52ef3056ee3c05c3e039c0ed9 Mon Sep 17 00:00:00 2001 From: dorota <114921900+wojcik-dorota@users.noreply.github.com> Date: Fri, 17 Nov 2023 07:08:09 +0100 Subject: [PATCH 4/4] Fix indent for a code-block --- docs/products/clickhouse/howto/manage-databases-tables.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/products/clickhouse/howto/manage-databases-tables.rst b/docs/products/clickhouse/howto/manage-databases-tables.rst index 81c197775a..250c270963 100644 --- a/docs/products/clickhouse/howto/manage-databases-tables.rst +++ b/docs/products/clickhouse/howto/manage-databases-tables.rst @@ -68,7 +68,7 @@ Run the following SQL command to remove your table: .. code-block:: bash - DROP TABLE NAME_OF_YOUR_DATABASE.NAME_OF_YOUR_TABLE; + DROP TABLE NAME_OF_YOUR_DATABASE.NAME_OF_YOUR_TABLE; Remove a table in the console ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^