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


##########
core/src/main/java/org/apache/gravitino/catalog/SemanticModelValidator.java:
##########
@@ -86,11 +97,16 @@ private static void validateRootCustomExtensions(@Nullable 
CustomExtension[] ext
   }
 
   private static void validateDataset(
-      Dataset dataset, String path, Map<String, String> datasetNames) {
+      Dataset dataset,
+      String path,
+      Map<String, String> datasetNames,
+      Map<String, Set<String>> datasetFields) {
     String namePath = path + ".name";
     validateUniqueName(dataset.name(), namePath, "dataset", datasetNames);
     validateSource(dataset.source(), path + ".source");
-    validateFields(dataset.fields(), path + ".fields");
+    Set<String> fieldNames = validateFields(dataset.fields(), path + 
".fields");
+    validateKeys(dataset, path, fieldNames);

Review Comment:
   Confirmed — this break is intended. A migration or compatibility path is not 
applicable here: Semantic Model support first ships in 2.0.0 (the API, storage, 
and REST layers exist in no release tag or release branch; latest release is 
1.3.1), so no released deployment can hold stored models, and no released 
client can emit definitions, that use source-column names. Only builds cut from 
unreleased main snapshots could contain such definitions, and snapshots carry 
no upgrade guarantee. A source-column fallback for fieldless datasets would 
also conflict with the current Ossie rule that a fieldless dataset exposes no 
names to keys or relationships, and would reintroduce the ambiguity this change 
removes.



-- 
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