This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new 33b05559549 [docs](iceberg) Document REST drop purge option (#4725)
33b05559549 is described below
commit 33b055595492dad0acb54fbe3f7b57023d62d771
Author: Gabriel <[email protected]>
AuthorDate: Tue Dec 1 11:09:15 2026 +0800
[docs](iceberg) Document REST drop purge option (#4725)
Document `iceberg.rest.drop-with-purge-enabled`, introduced by
[apache/doris#70967](https://github.com/apache/doris/pull/70967), with
planned support from 4.1.6 in the 4.1 series and from 4.2.0.
Explain the optional Boolean property's default `true`, unregister-only
behavior with `false`, retained data/metadata files, `DROP DATABASE ...
FORCE`, permissions and an `ALTER CATALOG` example. Update the English
and Chinese current/4.x REST reference and the Iceberg catalog drop
description. The 3.x docs are unchanged because this option is
unsupported there.
Validation: full English/Chinese production build and checks of all
eight generated pages and their links passed. The final
permission-prerequisite wording was additionally checked by rendering
all four updated sections with MDX. Final documentation governance,
whitespace/privacy checks and full local self-review passed; existing
site warnings remain.
## Versions
- [x] dev
- [x] 4.x
- [ ] 3.x
- [ ] 2.1 or older (not covered by version/language sync gate)
## Languages
- [x] Chinese
- [x] English
## Docs Checklist
- [x] Checked by AI
- [ ] Test Cases Built (documentation change; site build and
rendered-section checks performed)
- [x] Updated required version and language counterparts, or explained
why not
- [x] If only one language changed, confirmed whether source/translation
counterparts need sync (both updated)
---
docs/lakehouse/catalogs/iceberg-catalog.mdx | 2 +-
docs/lakehouse/metastores/iceberg-rest.md | 23 ++++++++++++++++++++++
.../current/lakehouse/catalogs/iceberg-catalog.mdx | 2 +-
.../current/lakehouse/metastores/iceberg-rest.md | 23 ++++++++++++++++++++++
.../lakehouse/catalogs/iceberg-catalog.mdx | 2 +-
.../lakehouse/metastores/iceberg-rest.md | 23 ++++++++++++++++++++++
.../lakehouse/catalogs/iceberg-catalog.mdx | 2 +-
.../lakehouse/metastores/iceberg-rest.md | 23 ++++++++++++++++++++++
8 files changed, 96 insertions(+), 4 deletions(-)
diff --git a/docs/lakehouse/catalogs/iceberg-catalog.mdx
b/docs/lakehouse/catalogs/iceberg-catalog.mdx
index 14a980d14a7..febb84add30 100644
--- a/docs/lakehouse/catalogs/iceberg-catalog.mdx
+++ b/docs/lakehouse/catalogs/iceberg-catalog.mdx
@@ -2416,7 +2416,7 @@ For an Iceberg Database, you must first drop all tables
under the database befor
* **Dropping Tables**
- You can drop an Iceberg table using the `DROP TABLE` statement. Dropping a
table will also remove its data, including partition data.
+ You can drop an Iceberg table using the `DROP TABLE` statement. By default,
dropping a table also requests deletion of its data, including partition data.
For Iceberg REST catalogs, starting with 4.1.6 in the 4.1 series and with
4.2.0, set `iceberg.rest.drop-with-purge-enabled` to `false` to unregister the
table while retaining its data and metadata files. See the [Iceberg REST
catalog parameters](../metastores/iceberg-rest.md).
For example:
diff --git a/docs/lakehouse/metastores/iceberg-rest.md
b/docs/lakehouse/metastores/iceberg-rest.md
index 36d8968413d..03175ce21fd 100644
--- a/docs/lakehouse/metastores/iceberg-rest.md
+++ b/docs/lakehouse/metastores/iceberg-rest.md
@@ -20,6 +20,7 @@ This document describes the supported parameters when
connecting to and accessin
| iceberg.rest.oauth2.credential | | `oauth2` credentials used to access
`server-uri` to obtain token | - | No |
| iceberg.rest.oauth2.server-uri | | URI address for obtaining `oauth2` token,
used in conjunction with `iceberg.rest.oauth2.credential` | - | No |
| iceberg.rest.vended-credentials-enabled | | Whether to enable
`vended-credentials` functionality. When enabled, it will obtain storage system
access credentials such as `access-key` and `secret-key` from the rest server,
eliminating the need for manual specification. Requires rest server support for
this capability. | `false` | No |
+| iceberg.rest.drop-with-purge-enabled | | Boolean. Whether dropping a table
also requests deletion of its data and metadata files. Set to `false` to
unregister the table while retaining its files. Supported from 4.1.6 in the 4.1
series and from 4.2.0. | `true` | No |
| iceberg.rest.nested-namespace-enabled | | (Supported since version 3.1.2+)
Whether to enable support for Nested Namespace. Default is `false`. If `true`,
Nested Namespace will be flattened and displayed as Database names, such as
`parent_ns.child_ns`. Some Rest Catalog services do not support Nested
Namespace, such as AWS Glue, so this parameter should be set to `false` | No |
> Note:
@@ -30,6 +31,28 @@ This document describes the supported parameters when
connecting to and accessin
>
> 3. For AWS Glue Rest Catalog, please refer to the [AWS Glue
> documentation](./aws-glue.md)
+## Retaining Files When Dropping Tables
+
+Supported from 4.1.6 in the 4.1 series and from 4.2.0.
+
+For Iceberg REST catalogs, `iceberg.rest.drop-with-purge-enabled` is an
optional Boolean property with a default value of `true`:
+
+- `true`: dropping a table requests deletion of its data and metadata files.
+- `false`: dropping a table unregisters it from the REST catalog while
retaining its data and metadata files.
+
+The following example assumes an existing REST catalog and table, and a user
with `ALTER_PRIV` on the catalog and `DROP_PRIV` on the table:
+
+```sql
+ALTER CATALOG iceberg_rest SET PROPERTIES (
+ "iceberg.rest.drop-with-purge-enabled" = "false"
+);
+DROP TABLE iceberg_rest.example_db.example_table;
+```
+
+After the drop succeeds, the table is no longer registered in the catalog, but
its files remain in storage. You must manage the lifecycle of retained files
separately.
+
+This property also controls the per-table drops performed by `DROP DATABASE
... FORCE`. It applies only to Iceberg REST catalogs and does not grant
additional Doris or REST service permissions.
+
## Nested Namespace
Since 3.1.2, to fully access Nested Namespace, in addition to setting
`iceberg.rest.nested-namespace-enabled` to `true` in the Catalog properties,
you also need to enable the following global parameter:
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/lakehouse/catalogs/iceberg-catalog.mdx
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/lakehouse/catalogs/iceberg-catalog.mdx
index dab8b4e3c24..a0b5d9b9fad 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/lakehouse/catalogs/iceberg-catalog.mdx
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/lakehouse/catalogs/iceberg-catalog.mdx
@@ -2430,7 +2430,7 @@ DROP DATABASE [IF EXISTS] iceberg.iceberg_db;
* **删除**
- 可以通过 `DROP TABLE` 语句删除一个 Iceberg 表。当前删除表后,会同时删除数据,包括分区数据。
+ 可以通过 `DROP TABLE` 语句删除一个 Iceberg 表。默认情况下,删除表时会同时请求删除数据,包括分区数据。对于 Iceberg
REST Catalog,从 4.1 系列的 4.1.6 版本和 4.2.0 版本起,可将
`iceberg.rest.drop-with-purge-enabled` 设置为 `false`,仅移除表而保留数据和元数据文件。详见 [Iceberg
REST Catalog 参数说明](../metastores/iceberg-rest.md)。
例如:
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/lakehouse/metastores/iceberg-rest.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/lakehouse/metastores/iceberg-rest.md
index 5d32fd9225b..57d372bf994 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/lakehouse/metastores/iceberg-rest.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/lakehouse/metastores/iceberg-rest.md
@@ -20,6 +20,7 @@
| iceberg.rest.oauth2.credential | | `oauth2` 凭证,用于访问 `server-uri` 获取 token |
- | 否 |
| iceberg.rest.oauth2.server-uri | | 用于获取 `oauth2` token 的 uri 地址,配合
`iceberg.rest.oauth2.credential` 使用 | - | 否 |
| iceberg.rest.vended-credentials-enabled | | 是否启用 `vended-credentials`
功能。启用后,会同 rest 服务端获取访问存储系统的凭证信息,如 `access-key` 和 `secret-key`,不再需要手动指定。需要 rest
服务端本身支持该能力。| `false` | 否 |
+| iceberg.rest.drop-with-purge-enabled | | 布尔类型。删除表时是否同时请求删除数据和元数据文件。设置为
`false` 时,仅从 Catalog 中移除表,保留文件。从 4.1 系列的 4.1.6 版本和 4.2.0 版本起支持。 | `true` | 否 |
| iceberg.rest.nested-namespace-enabled | | (自 3.1.2+ 版本支持)是否启用对 Nested
Namespace 的支持。默认为 `false`。如果为 `true`,则 Nested Namespace 会被打平作为 Database 名称显示,如
`parent_ns.child_ns`。某些 Rest Catalog 服务不支持 Nested Namespace,如 AWS Glue,责改参数需设置为
`false` | 否 |
> 注:
@@ -30,6 +31,28 @@
>
> 3. AWS Glue Rest Catalog 请参阅 [AWS Glue 文档](./aws-glue.md)
+## 删除表时保留文件
+
+从 4.1 系列的 4.1.6 版本和 4.2.0 版本起支持。
+
+对于 Iceberg REST Catalog,`iceberg.rest.drop-with-purge-enabled` 是可选的布尔类型属性,默认值为
`true`:
+
+- `true`:删除表时,请求同时删除数据和元数据文件。
+- `false`:删除表时,仅从 REST Catalog 中移除表,保留数据和元数据文件。
+
+以下示例假定 REST Catalog 和表已存在,且执行用户具有 Catalog 的 `ALTER_PRIV` 权限和表的 `DROP_PRIV` 权限:
+
+```sql
+ALTER CATALOG iceberg_rest SET PROPERTIES (
+ "iceberg.rest.drop-with-purge-enabled" = "false"
+);
+DROP TABLE iceberg_rest.example_db.example_table;
+```
+
+删除成功后,Catalog 中不再注册该表,但存储中的文件仍然保留。保留文件的生命周期需要另行管理。
+
+该属性也控制 `DROP DATABASE ... FORCE` 执行的逐表删除操作。它仅适用于 Iceberg REST Catalog,不会授予额外的
Doris 或 REST 服务权限。
+
## Nested Namespace
在 3.1.2 及后续版本中,如需完整访问 Nested Namespace,除了在 Catalog 属性中将
`iceberg.rest.nested-namespace-enabled` 设置为 `true` 外,还需开启如下全局参数:
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/lakehouse/catalogs/iceberg-catalog.mdx
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/lakehouse/catalogs/iceberg-catalog.mdx
index fe541348f68..174a9b8500f 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/lakehouse/catalogs/iceberg-catalog.mdx
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/lakehouse/catalogs/iceberg-catalog.mdx
@@ -2328,7 +2328,7 @@ DROP DATABASE [IF EXISTS] iceberg.iceberg_db;
* **删除**
- 可以通过 `DROP TABLE` 语句删除一个 Iceberg 表。当前删除表后,会同时删除数据,包括分区数据。
+ 可以通过 `DROP TABLE` 语句删除一个 Iceberg 表。默认情况下,删除表时会同时请求删除数据,包括分区数据。对于 Iceberg
REST Catalog,从 4.1 系列的 4.1.6 版本和 4.2.0 版本起,可将
`iceberg.rest.drop-with-purge-enabled` 设置为 `false`,仅移除表而保留数据和元数据文件。详见 [Iceberg
REST Catalog 参数说明](../metastores/iceberg-rest.md)。
例如:
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/lakehouse/metastores/iceberg-rest.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/lakehouse/metastores/iceberg-rest.md
index 5d32fd9225b..57d372bf994 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/lakehouse/metastores/iceberg-rest.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/lakehouse/metastores/iceberg-rest.md
@@ -20,6 +20,7 @@
| iceberg.rest.oauth2.credential | | `oauth2` 凭证,用于访问 `server-uri` 获取 token |
- | 否 |
| iceberg.rest.oauth2.server-uri | | 用于获取 `oauth2` token 的 uri 地址,配合
`iceberg.rest.oauth2.credential` 使用 | - | 否 |
| iceberg.rest.vended-credentials-enabled | | 是否启用 `vended-credentials`
功能。启用后,会同 rest 服务端获取访问存储系统的凭证信息,如 `access-key` 和 `secret-key`,不再需要手动指定。需要 rest
服务端本身支持该能力。| `false` | 否 |
+| iceberg.rest.drop-with-purge-enabled | | 布尔类型。删除表时是否同时请求删除数据和元数据文件。设置为
`false` 时,仅从 Catalog 中移除表,保留文件。从 4.1 系列的 4.1.6 版本和 4.2.0 版本起支持。 | `true` | 否 |
| iceberg.rest.nested-namespace-enabled | | (自 3.1.2+ 版本支持)是否启用对 Nested
Namespace 的支持。默认为 `false`。如果为 `true`,则 Nested Namespace 会被打平作为 Database 名称显示,如
`parent_ns.child_ns`。某些 Rest Catalog 服务不支持 Nested Namespace,如 AWS Glue,责改参数需设置为
`false` | 否 |
> 注:
@@ -30,6 +31,28 @@
>
> 3. AWS Glue Rest Catalog 请参阅 [AWS Glue 文档](./aws-glue.md)
+## 删除表时保留文件
+
+从 4.1 系列的 4.1.6 版本和 4.2.0 版本起支持。
+
+对于 Iceberg REST Catalog,`iceberg.rest.drop-with-purge-enabled` 是可选的布尔类型属性,默认值为
`true`:
+
+- `true`:删除表时,请求同时删除数据和元数据文件。
+- `false`:删除表时,仅从 REST Catalog 中移除表,保留数据和元数据文件。
+
+以下示例假定 REST Catalog 和表已存在,且执行用户具有 Catalog 的 `ALTER_PRIV` 权限和表的 `DROP_PRIV` 权限:
+
+```sql
+ALTER CATALOG iceberg_rest SET PROPERTIES (
+ "iceberg.rest.drop-with-purge-enabled" = "false"
+);
+DROP TABLE iceberg_rest.example_db.example_table;
+```
+
+删除成功后,Catalog 中不再注册该表,但存储中的文件仍然保留。保留文件的生命周期需要另行管理。
+
+该属性也控制 `DROP DATABASE ... FORCE` 执行的逐表删除操作。它仅适用于 Iceberg REST Catalog,不会授予额外的
Doris 或 REST 服务权限。
+
## Nested Namespace
在 3.1.2 及后续版本中,如需完整访问 Nested Namespace,除了在 Catalog 属性中将
`iceberg.rest.nested-namespace-enabled` 设置为 `true` 外,还需开启如下全局参数:
diff --git a/versioned_docs/version-4.x/lakehouse/catalogs/iceberg-catalog.mdx
b/versioned_docs/version-4.x/lakehouse/catalogs/iceberg-catalog.mdx
index b23921599d6..9f51b56ddb7 100644
--- a/versioned_docs/version-4.x/lakehouse/catalogs/iceberg-catalog.mdx
+++ b/versioned_docs/version-4.x/lakehouse/catalogs/iceberg-catalog.mdx
@@ -2310,7 +2310,7 @@ For an Iceberg Database, you must first drop all tables
under the database befor
* **Dropping Tables**
- You can drop an Iceberg table using the `DROP TABLE` statement. Dropping a
table will also remove its data, including partition data.
+ You can drop an Iceberg table using the `DROP TABLE` statement. By default,
dropping a table also requests deletion of its data, including partition data.
For Iceberg REST catalogs, starting with 4.1.6 in the 4.1 series and with
4.2.0, set `iceberg.rest.drop-with-purge-enabled` to `false` to unregister the
table while retaining its data and metadata files. See the [Iceberg REST
catalog parameters](../metastores/iceberg-rest.md).
For example:
diff --git a/versioned_docs/version-4.x/lakehouse/metastores/iceberg-rest.md
b/versioned_docs/version-4.x/lakehouse/metastores/iceberg-rest.md
index 36d8968413d..03175ce21fd 100644
--- a/versioned_docs/version-4.x/lakehouse/metastores/iceberg-rest.md
+++ b/versioned_docs/version-4.x/lakehouse/metastores/iceberg-rest.md
@@ -20,6 +20,7 @@ This document describes the supported parameters when
connecting to and accessin
| iceberg.rest.oauth2.credential | | `oauth2` credentials used to access
`server-uri` to obtain token | - | No |
| iceberg.rest.oauth2.server-uri | | URI address for obtaining `oauth2` token,
used in conjunction with `iceberg.rest.oauth2.credential` | - | No |
| iceberg.rest.vended-credentials-enabled | | Whether to enable
`vended-credentials` functionality. When enabled, it will obtain storage system
access credentials such as `access-key` and `secret-key` from the rest server,
eliminating the need for manual specification. Requires rest server support for
this capability. | `false` | No |
+| iceberg.rest.drop-with-purge-enabled | | Boolean. Whether dropping a table
also requests deletion of its data and metadata files. Set to `false` to
unregister the table while retaining its files. Supported from 4.1.6 in the 4.1
series and from 4.2.0. | `true` | No |
| iceberg.rest.nested-namespace-enabled | | (Supported since version 3.1.2+)
Whether to enable support for Nested Namespace. Default is `false`. If `true`,
Nested Namespace will be flattened and displayed as Database names, such as
`parent_ns.child_ns`. Some Rest Catalog services do not support Nested
Namespace, such as AWS Glue, so this parameter should be set to `false` | No |
> Note:
@@ -30,6 +31,28 @@ This document describes the supported parameters when
connecting to and accessin
>
> 3. For AWS Glue Rest Catalog, please refer to the [AWS Glue
> documentation](./aws-glue.md)
+## Retaining Files When Dropping Tables
+
+Supported from 4.1.6 in the 4.1 series and from 4.2.0.
+
+For Iceberg REST catalogs, `iceberg.rest.drop-with-purge-enabled` is an
optional Boolean property with a default value of `true`:
+
+- `true`: dropping a table requests deletion of its data and metadata files.
+- `false`: dropping a table unregisters it from the REST catalog while
retaining its data and metadata files.
+
+The following example assumes an existing REST catalog and table, and a user
with `ALTER_PRIV` on the catalog and `DROP_PRIV` on the table:
+
+```sql
+ALTER CATALOG iceberg_rest SET PROPERTIES (
+ "iceberg.rest.drop-with-purge-enabled" = "false"
+);
+DROP TABLE iceberg_rest.example_db.example_table;
+```
+
+After the drop succeeds, the table is no longer registered in the catalog, but
its files remain in storage. You must manage the lifecycle of retained files
separately.
+
+This property also controls the per-table drops performed by `DROP DATABASE
... FORCE`. It applies only to Iceberg REST catalogs and does not grant
additional Doris or REST service permissions.
+
## Nested Namespace
Since 3.1.2, to fully access Nested Namespace, in addition to setting
`iceberg.rest.nested-namespace-enabled` to `true` in the Catalog properties,
you also need to enable the following global parameter:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]