You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by et...@apache.org on 2025/03/20 06:49:06 UTC

(iceberg) branch main updated: OpenAPI: Handle NamespaceNotEmptyException when dropping a namespace (#12518)

This is an automated email from the ASF dual-hosted git repository.

etudenhoefner pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/main by this push:
     new 8ed1c21650 OpenAPI: Handle NamespaceNotEmptyException when dropping a namespace (#12518)
8ed1c21650 is described below

commit 8ed1c216503b7193924ca57bd2694025660ac02c
Author: Eduard Tudenhoefner <et...@gmail.com>
AuthorDate: Thu Mar 20 07:49:01 2025 +0100

    OpenAPI: Handle NamespaceNotEmptyException when dropping a namespace (#12518)
---
 open-api/rest-catalog-open-api.yaml | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/open-api/rest-catalog-open-api.yaml b/open-api/rest-catalog-open-api.yaml
index 03a42fa272..fd94d3e3b7 100644
--- a/open-api/rest-catalog-open-api.yaml
+++ b/open-api/rest-catalog-open-api.yaml
@@ -424,6 +424,15 @@ paths:
               examples:
                 NoSuchNamespaceExample:
                   $ref: '#/components/examples/NoSuchNamespaceError'
+        409:
+          description: Not Empty - Namespace to delete is not empty.
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/IcebergErrorResponse'
+              examples:
+                NamespaceNotEmptyExample:
+                  $ref: '#/components/examples/NamespaceNotEmptyError'
         419:
           $ref: '#/components/responses/AuthenticationTimeoutResponse'
         503:
@@ -4794,6 +4803,16 @@ components:
           }
         }
 
+    NamespaceNotEmptyError:
+      summary: The requested namespace is not empty
+      value: {
+        "error": {
+          "message": "The given namespace is not empty",
+          "type": "NamespaceNotEmptyException",
+          "code": 409
+        }
+      }
+
     RenameTableSameNamespace:
       summary: Rename a table in the same namespace
       value: {