Skip to content

Iceberg REST catalog does not serve registerTable #1850

Open

Description

@moomindani

Describe the bug

POST /v1/{prefix}/namespaces/{namespace}/register is not served, so a table whose Iceberg metadata
already exists cannot be brought into this catalog through the REST API. The request is answered before
any service is reached, with a 404 for a path this server does not have, and the endpoint is not in the
endpoints list from GET /v1/config either.

That is the path an engine takes to adopt a table written elsewhere -- Spark's
CALL system.register_table, or any client calling Catalog.registerTable -- and the path a migration
of existing Iceberg tables onto Unity Catalog goes through. Without it the only way in is to create the
table again and rewrite its data, or to insert rows into Unity Catalog by some other route and hope the
metadata pointer matches.

To Reproduce

Steps to reproduce the behavior:

  1. Start the server with server.iceberg-table.enabled=true and create a catalog unity with a schema
    default.
  2. Write, or take, an Iceberg table's metadata file somewhere the server can read.
  3. POST /api/2.1/unity-catalog/iceberg/v1/catalogs/unity/namespaces/default/register with
    {"name": "adopted", "metadata-location": "<that file>"} answers 404 Not Found.

Expected behavior

200 with the LoadTableResponse for the table the metadata file describes, and the table registered in
Unity Catalog from that point on: listed by listTables, loadable by loadTable. A name that is
already taken is 409 unless the request asks to overwrite; a namespace that does not exist is 404. The
metadata file itself is not modified. The endpoint is 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 rest of the write surface -- create, update,
drop -- landed in #1696; this is the one write the spec defines that is still missing, apart from
transactions and the view endpoints.

Related: #1846 covers three other operations the spec defines that this catalog does not serve
(dropNamespace, updateProperties, renameTable). This one is filed separately because those three
are already implemented inside Unity Catalog and only need wiring, while registering a table needs a
read of metadata for a table the catalog does not have yet.

Activity

  1. moomindani commented on Sep 8, 2026

    @moomindani
    ContributorAuthor

    Parking this: /register does not fit UC's location model as it stands -- discussion in #1851. Feel free to close if you would rather not track it.

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