Zoltan Borok-Nagy has uploaded this change for review. (
https://gerrit.cloudera.org/25561
Change subject: IMPALA-15508: Support table ownership for Iceberg REST catalogs
......................................................................
IMPALA-15508: Support table ownership for Iceberg REST catalogs
Tables of Iceberg REST catalogs had no owner, so Ranger's {OWNER}
policies never matched on them, and the creator of a table had no
owner privileges on it.
The REST protocol has no owner field. The owner is now the 'owner'
table property, which Spark and other engines set to the creating
user. It is read with the table, so a change in the REST catalog takes
effect at the next statement. SHOW CREATE TABLE omits the property for
REST tables, because the owner of a new table is its creator.
Testing:
- unit tests for IcebergMetaProvider.loadTable() and for the SHOW
CREATE TABLE property filter
- REST catalog tests, standalone and with HMS
- Ranger tests of the owner's privileges, standalone and with HMS
Change-Id: I9ae5bf77acb90010d14012dac03218c600691fb0
Assisted-by: Claude Opus 5.5 (Claude Code)
---
M docs/topics/impala_iceberg_rest_catalog.xml
M fe/src/main/java/org/apache/impala/analysis/ToSqlUtils.java
A fe/src/main/java/org/apache/impala/catalog/iceberg/IcebergRestOwnership.java
M fe/src/main/java/org/apache/impala/catalog/local/IcebergMetaProvider.java
M fe/src/test/java/org/apache/impala/analysis/ToSqlUtilsTest.java
M fe/src/test/java/org/apache/impala/catalog/local/IcebergMetaProviderTest.java
M
testdata/workloads/functional-query/queries/QueryTest/iceberg-multicatalog.test
M
testdata/workloads/functional-query/queries/QueryTest/iceberg-rest-catalog.test
M tests/authorization/test_ranger.py
M tests/common/iceberg_rest_test_tables.py
M tests/custom_cluster/test_iceberg_rest_catalog.py
11 files changed, 411 insertions(+), 4 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/61/25561/1
--
To view, visit https://gerrit.cloudera.org/25561
To unsubscribe, visit https://gerrit.cloudera.org/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9ae5bf77acb90010d14012dac03218c600691fb0
Gerrit-Change-Number: 25561
Gerrit-PatchSet: 1
Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>