Hi everyone, I'd like to propose adding support for recursively listing namespaces in the REST catalog.
Trino doesn't support multi-level namespaces, so the Iceberg connector currently issues requests per namespace and flattens the results. This can become time-consuming when there are many namespaces or deeply nested structures. I believe this is not specific to Trino. A similar request was raised last year by the DuckDB community (https://github.com/apache/iceberg/issues/13453), although it was closed due to inactivity. I've opened a draft PR that introduces an optional 'recursive' parameter to the GET /v1/{prefix}/namespaces endpoint: https://github.com/apache/iceberg/pull/16199 I'd appreciate any feedback or suggestions. Thanks, Yuya Ebihara
