diff --git a/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java b/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java index 7b602e2e8e62..f5c58cb7e9ad 100644 --- a/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java +++ b/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java @@ -1872,7 +1872,7 @@ public enum ConfVars { "HMS Iceberg Catalog servlet authentication method (simple or jwt)." ), ICEBERG_CATALOG_CACHE_EXPIRY("metastore.iceberg.catalog.cache.expiry", - "hive.metastore.iceberg.catalog.cache.expiry", 60_000L, + "hive.metastore.iceberg.catalog.cache.expiry", -1, "HMS Iceberg Catalog cache expiry." ), HTTPSERVER_THREADPOOL_MIN("hive.metastore.httpserver.threadpool.min", diff --git a/standalone-metastore/metastore-rest-catalog/src/main/java/org/apache/iceberg/rest/HMSCachingCatalog.java b/standalone-metastore/metastore-rest-catalog/src/main/java/org/apache/iceberg/rest/HMSCachingCatalog.java index 6b5d76f818a8..c57e4fb8c19a 100644 --- a/standalone-metastore/metastore-rest-catalog/src/main/java/org/apache/iceberg/rest/HMSCachingCatalog.java +++ b/standalone-metastore/metastore-rest-catalog/src/main/java/org/apache/iceberg/rest/HMSCachingCatalog.java @@ -24,6 +24,7 @@ import java.util.Map; import java.util.Set; import org.apache.iceberg.CachingCatalog; +import org.apache.iceberg.Schema; import org.apache.iceberg.catalog.Catalog; import org.apache.iceberg.catalog.Namespace; import org.apache.iceberg.catalog.SupportsNamespaces; @@ -48,6 +49,11 @@ public CATALOG hmsUnwrap() { return nsCatalog; } + @Override + public Catalog.TableBuilder buildTable(TableIdentifier identifier, Schema schema) { + return nsCatalog.buildTable(identifier, schema); + } + @Override public void createNamespace(Namespace nmspc, Map map) { nsCatalog.createNamespace(nmspc, map);