Hi All,

During my review of [4816] I realized [1] that Polaris returns some non-IRC
endpoints in the IRC config responses.

For example:

GET 'http://localhost:8181/api/catalog/v1/config?warehouse=polaris'

Result:
[...]
  "endpoints": [
    "GET /v1/{prefix}/namespaces",
    "GET /v1/{prefix}/namespaces/{namespace}",
    "HEAD /v1/{prefix}/namespaces/{namespace}",
[...]
   "DELETE
polaris/v1/{prefix}/namespaces/{namespace}/generic-tables/{generic-table}",
    "GET
polaris/v1/{prefix}/namespaces/{namespace}/generic-tables/{generic-table}",
    "GET /polaris/v1/{prefix}/namespaces/{namespace}/policies",
    "POST /polaris/v1/{prefix}/namespaces/{namespace}/policies",

The latter group of endpoints is not related to the Iceberg REST Catalog
API.

I wonder what the rationale might be for returning them in the IRC config
response.

>From my POV, returning them in the IRC config response is incorrect because
these endpoints form APIs that follow a different specification and clients
using the IRC API do not need that information to properly use the IRC API.

WDYT?

[1] https://github.com/apache/polaris/pull/4816#discussion_r3438945230

[4816] https://github.com/apache/polaris/pull/4816

Thanks,
Dmitri.

Reply via email to