Repository navigation
Description
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:
- Start the server with
server.iceberg-table.enabled=trueand create a catalogunitywith a schema
default. - Write, or take, an Iceberg table's metadata file somewhere the server can read.
POST /api/2.1/unity-catalog/iceberg/v1/catalogs/unity/namespaces/default/registerwith
{"name": "adopted", "metadata-location": "<that file>"}answers404 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
mainat 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
moomindani commentedon Sep 8, 2026
Parking this:
/registerdoes not fit UC's location model as it stands -- discussion in #1851. Feel free to close if you would rather not track it.