mchades commented on code in PR #13571:
URL: https://github.com/apache/gravitino/pull/13571#discussion_r4228255370


##########
core/src/main/java/org/apache/gravitino/catalog/SemanticModelDispatcher.java:
##########
@@ -18,7 +18,42 @@
  */
 package org.apache.gravitino.catalog;
 
+import org.apache.gravitino.NameIdentifier;
+import org.apache.gravitino.Namespace;
+import org.apache.gravitino.dto.requests.SemanticModelCreateRequest;
+import org.apache.gravitino.semantic.OssieDocument;
+import org.apache.gravitino.semantic.OssieFormat;
+import org.apache.gravitino.semantic.OssieSemanticModelDocumentConverter;
+import org.apache.gravitino.semantic.SemanticModel;
 import org.apache.gravitino.semantic.SemanticModelCatalog;
 
 /** A dispatcher specialization for schema-scoped Semantic Model operations. */
-public interface SemanticModelDispatcher extends SemanticModelCatalog {}
+public interface SemanticModelDispatcher extends SemanticModelCatalog {
+
+  /**
+   * {@inheritDoc}
+   *
+   * <p>Delegates to this dispatcher's native create operation so that the 
document follows the same
+   * normalization and validation chain as a structured create request.
+   */
+  @Override
+  default SemanticModel importOssieSemanticModel(Namespace namespace, 
OssieDocument document) {
+    SemanticModelCreateRequest request =

Review Comment:
   Removed both `SemanticModelCreateRequest` and `SemanticModelDefinitionDTO` 
from the Ossie conversion path. Import/export now map directly to/from native 
Semantic Model types, while the Core entry points remain in place for the 
follow-up hooks and events. Existing persistence serialization is unchanged.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to