Zoltán Borók-Nagy created IMPALA-15844:
------------------------------------------
Summary: Support database ownership for Iceberg REST catalogs
Key: IMPALA-15844
URL: https://issues.apache.org/jira/browse/IMPALA-15844
Project: IMPALA
Issue Type: Sub-task
Components: Frontend, Catalog
Reporter: Zoltán Borók-Nagy
Assignee: Zoltán Borók-Nagy
Databases loaded from an Iceberg REST catalog have no owner:
{{IcebergMetaProvider.loadDb()}} sets only the name. So Ranger's owner policies
never match on a namespace: its owner does not see it in SHOW DATABASES and
cannot create tables in it, and DESCRIBE DATABASE shows no owner. IMPALA-15508
covers tables.
Proposal:
* Load the namespace properties in {{loadDb()}} and take the owner from
{{owner}}, the key that Spark and other engines write. {{ownerType}} is
honoured when present, and only USER gives an owner. The properties show up as
database parameters.
* If the properties cannot be loaded, the database has no owner, as today.
* With several REST catalogs the namespace names are merged, so owners are not
read there.
* With CatalogD, an HMS database wins over a REST namespace of the same name.
That must also hold when CatalogD fails to answer:
{{MultiMetaProvider.loadDb()}} must not return the REST namespace's owner then.
* CREATE DATABASE (IMPALA-15503) records the creating user in {{owner}}.
* SHOW DATABASES needs one request per namespace, so it loads them in parallel.
ALTER DATABASE SET OWNER on a REST namespace is tracked in a separate ticket.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)