Hello Mihaly Szjatinya, Impala Public Jenkins,

I'd like you to reexamine a change. Please visit

    https://gerrit.cloudera.org/25561

to look at the new patch set (#2).

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, in any letter case, because the owner of a new table is
its creator.

As a backstop for the DDL statements that write table properties
through REST catalogs, the coordinator rejects every such request that
sets or unsets 'owner', compared case-insensitively.

Testing:
- unit tests for IcebergMetaProvider.loadTable(), the SHOW CREATE
  TABLE property filter and the DDL backstop
- 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/main/java/org/apache/impala/service/IcebergDdlExecutor.java
M fe/src/main/java/org/apache/impala/util/IcebergUtil.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 fe/src/test/java/org/apache/impala/service/IcebergDdlExecutorTest.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
14 files changed, 538 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/61/25561/2
--
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: newpatchset
Gerrit-Change-Id: I9ae5bf77acb90010d14012dac03218c600691fb0
Gerrit-Change-Number: 25561
Gerrit-PatchSet: 2
Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Mihaly Szjatinya <[email protected]>

Reply via email to