Zoltán Borók-Nagy created IMPALA-15846:
------------------------------------------

             Summary: Support ALTER DATABASE SET OWNER on Iceberg REST catalogs
                 Key: IMPALA-15846
                 URL: https://issues.apache.org/jira/browse/IMPALA-15846
             Project: IMPALA
          Issue Type: Sub-task
          Components: Frontend, Catalog
            Reporter: Zoltán Borók-Nagy


ALTER DATABASE SET OWNER is not routed to Iceberg REST catalogs, so it cannot 
be used on a REST namespace. Once the owner is read from the {{owner}} 
namespace property (IMPALA-15844), this is the only Impala statement that may 
change it.

Proposal:
* Route it on the coordinator, as CREATE/DROP DATABASE (IMPALA-15503). An HMS 
database still goes to CatalogD, and a name that both catalogs list is rejected.
* Update {{owner}} in one request, and set {{ownerType}} to USER if the 
namespace has one. Only USER owners are supported, and SET OWNER ROLE is 
rejected.
* Reject it where namespace owners are not read, which is the case with several 
REST catalogs.
* Fail with a clear error if the server cannot update namespace properties.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to