Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#8732] fix: Update exception handling for Type CATALOG > MODEL_VERSION (#8740)

Kwon Taeheone64837072b4d
diff --git a/core/src/main/java/org/apache/gravitino/storage/relational/service/ModelVersionMetaService.java b/core/src/main/java/org/apache/gravitino/storage/relational/service/ModelVersionMetaService.java
index 042445b041..a95777c007 100644
--- a/core/src/main/java/org/apache/gravitino/storage/relational/service/ModelVersionMetaService.java
+++ b/core/src/main/java/org/apache/gravitino/storage/relational/service/ModelVersionMetaService.java
@@ -405,7 +405,7 @@ public class ModelVersionMetaService {
} catch (RuntimeException re) {
ExceptionUtils.checkSQLException(
- re, Entity.EntityType.CATALOG, newModelVersionEntity.nameIdentifier().toString());
+ re, Entity.EntityType.MODEL_VERSION, newModelVersionEntity.nameIdentifier().toString());
throw re;
}