Skip to content

Iceberg REST catalog is missing dropNamespace, updateNamespaceProperties and renameTable #1846

Closed

Description

@moomindani

Describe the bug

Three operations the Iceberg REST spec defines are not served by this catalog, even though Unity
Catalog already implements each of them internally. An engine pointed at the Iceberg REST endpoint can
read and write tables but cannot run the matching DDL:

Spec operation Request Answered today Unity Catalog already has
dropNamespace DELETE /v1/{prefix}/namespaces/{namespace} 405, no route SchemaRepository.deleteSchema
updateProperties POST /v1/{prefix}/namespaces/{namespace}/properties 405, no route schema properties, updated via SchemaService
renameTable POST /v1/{prefix}/tables/rename 404, no route TableRepository.renameTable

So DROP NAMESPACE, ALTER NAMESPACE ... SET PROPERTIES and ALTER TABLE ... RENAME TO all fail from
Spark, Trino or any other Iceberg client, with a status that says the path or method does not exist
rather than that the catalog cannot do it. None of the three is advertised in the endpoints list from
GET /v1/config either, so a client that reads that list is at least not misled -- it simply has no
way to perform these operations.

To Reproduce

Steps to reproduce the behavior:

  1. Start the server with server.iceberg-table.enabled=true, create a catalog unity and a schema
    default.
  2. DELETE /api/2.1/unity-catalog/iceberg/v1/catalogs/unity/namespaces/default answers
    405 Method Not Allowed.
  3. POST /api/2.1/unity-catalog/iceberg/v1/catalogs/unity/namespaces/default/properties with
    {"removals": [], "updates": {"a": "b"}} answers 405 Method Not Allowed.
  4. POST /api/2.1/unity-catalog/iceberg/v1/catalogs/unity/tables/rename with a source and
    destination answers 404 Not Found.

Expected behavior

  • dropNamespace: 204, 404 for a namespace that is not there, 409 for one that is not empty.
  • updateProperties: 200 reporting which keys were updated, removed and missing, 404 for a
    namespace that is not there, 422 for a key named in both updates and removals.
  • renameTable: 204, 404 for a table that is not there, 409 for a destination name that is taken.
  • All three advertised in the config endpoints list.

System [please complete the following information]:

  • OS: macOS 15, server built from main at 58d5c7b

Additional context

Verified on main at 58d5c7b against a running server. The three are independent, so I am sending a
pull request per operation; this issue stays open until all three land.

Activity

  1. moomindani commented on Sep 15, 2026

    @moomindani
    ContributorAuthor

    All three are served on main now, each with tests:

    All three are also advertised in GET /v1/config. One follow-up fell out of the pair: #1836's assertion that DELETE /namespaces/{namespace} was unrouted became wrong once #1847 routed it, and yili-db fixed that in #1860. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions