From 9fae8537b8203b1fb08904203050949ceed42a01 Mon Sep 17 00:00:00 2001 From: Dmitri Bourlatchkov Date: Mon, 29 Sep 2025 20:55:42 -0400 Subject: [PATCH] Fix `delegationModes` parameter propagation in `createTableStaged()` This is follow-up bugfix for #2589 The bugfix part #2711 is extracted here since #2711 proved to be non-trivial and may require extra time. * Use the `delegationModes` method parameter as intended (as opposed to a local constant). --- .../polaris/service/catalog/iceberg/IcebergCatalogHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/service/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergCatalogHandler.java b/runtime/service/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergCatalogHandler.java index d1daf8fa56..67e3c75ea0 100644 --- a/runtime/service/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergCatalogHandler.java +++ b/runtime/service/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergCatalogHandler.java @@ -553,7 +553,7 @@ public LoadTableResponse createTableStaged( return buildLoadTableResponseWithDelegationCredentials( ident, metadata, - EnumSet.of(VENDED_CREDENTIALS), + delegationModes, Set.of(PolarisStorageActions.ALL), refreshCredentialsEndpoint) .build();