Repository navigation
Conversation
…yaml The storage service's Iceberg REST catalog has no route for updating namespace properties, so supabase/sdk is removing the capability from the registry. Dropping the entry here first keeps this file valid against both the current pin and the release that removes the ID. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Summary
Change: Bug fix Merge Risk:
|
The storage service's Iceberg REST catalog has no route for updating namespace properties, and its /v1/config advertises no endpoints. pyiceberg then assumes its default endpoint set, sends the request, and reports the 404 as NoSuchNamespaceError for a namespace that exists. catalog() returns a RestCatalog subclass whose update_namespace_properties raises NotImplementedError without sending a request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Coverage Report for CI Build 45783269510Coverage increased (+0.001%) to 98.526%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
The storage service's Iceberg REST catalog has no route for renaming a
table (POST /v1/{prefix}/tables/rename) or registering one
(POST /v1/{prefix}/namespaces/{namespace}/register), so supabase/sdk#388
removes both capabilities from the registry.
pyiceberg would send both requests because Storage's /v1/config advertises
no endpoints, and turn the 404 into a misleading error. The catalog that
catalog() returns now raises NotImplementedError for both without sending
a request.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What
catalog()now returns aRestCatalogsubclass. On it, three methods raiseNotImplementedErrorand send no request:update_namespace_propertiesrename_tableregister_tablesdk-compliance.yaml:storage.analytics.update_namespace_properties,rename_tableandregister_table.Why
supabase/sdk#388 removes these three capabilities from the registry, because the storage service's Iceberg REST catalog has no route for any of them. At storage
17fa0927, each request gets a 404:POST /v1/{prefix}/namespaces/{namespace}/propertiesPOST /v1/{prefix}/tables/renamePOST /v1/{prefix}/namespaces/{namespace}/registerToday these calls fail in misleading ways:
/v1/configadvertises noendpoints(tenant-catalog.ts).update_namespace_propertiesraisesNoSuchNamespaceError, even though the namespace exists.rename_tableraisesNoSuchTableError, even though the table exists.This is a patch fix: none of these calls ever succeeded against Supabase, and only the error they raise changes.
Trade-off
This puts a fact about the service into the client, which Logic belongs in the service argues against. If Storage adds these routes later, released versions keep refusing the calls until users upgrade.
The service-side fix is for Storage's
/v1/configto advertise the endpoints it serves. pyiceberg then refuses unsupported calls itself (NotImplementedError: Server does not support endpoint …), for every client. Once that ships, this override can be removed.Merge order
This PR can merge before supabase/sdk#388. The current workflow pin (
capability-matrix/v2.4.0) only reports the missing IDs as not declared, and the release that removes them treats the file as valid. If the weekly compliance sync proposes re-adding the IDs asnot_implementedbefore the pin bump, close that PR.Testing
test_analytics_catalog_refuses_calls_storage_does_not_servecovers all three calls. It checks that each raisesNotImplementedErrorand never callsSession.post. Against the catalog without these overrides, the cases fail.test_analytics.pyandtest_optional_iceberg.pypass on Python 3.12. storage3 still imports without pyiceberg, because the subclass lives in the private modulestorage3._iceberg, whichcatalog()imports lazily.check_docstrings.pyand pydoclint pass.validate-compliancepasses against the current pin and against feat(storage)!: remove iceberg capabilities storage does not serve sdk#388.🤖 Generated with Claude Code