Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
ghx-label-5
Description
Repro:
> impala-shell.sh -u johndoe impala-shell> create table ice_t (i int) stored as iceberg; impala-shell> describe formatted ice_t; ... | Owner: | impala | ...
The owner should be the user executing the query.
Unfortunately Iceberg doesn't allow us setting the owner of the table. It uses the system-wide property "user.name" to set the owner:
https://github.com/apache/iceberg/blob/51a9702367e22aff635ae05f2a313a19c3ba2fb8/hive-metastore/src/main/java/org/apache/iceberg/hive/HiveTableOperations.java#L347
We might need Iceberg-side modifications as well to specify the owner. Alternatively we could add an exter alter_table() RPC to change the owner.