Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non uniform behavior of AUTHORIZATION options in Iceberg REST catalog #24886

Open
drnta opened this issue Feb 3, 2025 · 0 comments
Open

Non uniform behavior of AUTHORIZATION options in Iceberg REST catalog #24886

drnta opened this issue Feb 3, 2025 · 0 comments
Labels
iceberg Iceberg connector

Comments

@drnta
Copy link

drnta commented Feb 3, 2025

We are using Trino with Iceberg catalog and iceberg.catalog.type=rest.

When the user executes any ALTER <something> SET AUTHORIZATION <something>; the query fails with

(someMethod) is not supported for Iceberg REST catalog

as expected since TrinoRestCatalog implementation does not support corresponding methods for now.

However when the similar option is used in CREATE NAMESPACE statement like CREATE NAMESPACE AUTHORIZATION <something>; the query executes successfully and TrinoRestCatalog#createNamespace just silently ignores the TrinoPrincipal owner.
This can be misleading a bit since the query executes successfully but the passed option makes no effect in fact.

It can be more uniform and clear if TrinoRestCatalog would also throw the NOT_SUPPORTED exception in case when AUTHORIZATION option was explicitly passed to the CREATE NAMESPACE statement since as for now AUTHORIZATION management is not supported by Iceberg REST catalog implementation.

Thanks.

@ebyhr ebyhr added the iceberg Iceberg connector label Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iceberg Iceberg connector
Development

No branches or pull requests

2 participants