This is an automated email from the ASF dual-hosted git repository.

snazy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git


The following commit(s) were added to refs/heads/main by this push:
     new 00df18418 Iceberg-Catalog: also set catalog-id for location overlap 
checks (#3136)
00df18418 is described below

commit 00df184181386d00e789b2e8879ada51fe1c3b39
Author: Robert Stupp <[email protected]>
AuthorDate: Wed Nov 26 16:57:31 2025 +0100

    Iceberg-Catalog: also set catalog-id for location overlap checks (#3136)
---
 .../org/apache/polaris/service/catalog/iceberg/IcebergCatalog.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/runtime/service/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergCatalog.java
 
b/runtime/service/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergCatalog.java
index e8f5402b1..422b8e025 100644
--- 
a/runtime/service/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergCatalog.java
+++ 
b/runtime/service/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergCatalog.java
@@ -984,12 +984,14 @@ public class IcebergCatalog extends 
BaseMetastoreViewCatalog
 
       // Create a fake IcebergTableLikeEntity to check for overlap, since no 
real entity
       // has been created yet.
+      var lastNamespace = resolvedNamespace.getLast();
       IcebergTableLikeEntity virtualEntity =
           IcebergTableLikeEntity.of(
               new PolarisEntity.Builder()
                   .setType(PolarisEntityType.TABLE_LIKE)
                   .setSubType(PolarisEntitySubType.ICEBERG_TABLE)
-                  .setParentId(resolvedNamespace.getLast().getId())
+                  .setParentId(lastNamespace.getId())
+                  .setCatalogId(lastNamespace.getCatalogId())
                   
.setProperties(Map.of(PolarisEntityConstants.ENTITY_BASE_LOCATION, location))
                   .build());
 

Reply via email to