mchades opened a new pull request, #14953: URL: https://github.com/apache/gravitino/pull/14953
### What changes were proposed in this pull request? - `SemanticModelValidator` resolves `primaryKey`, `uniqueKeys`, `fromColumns`, and `toColumns` against fields declared in the referenced datasets' `fields` (case-insensitive), per the Ossie Name Resolution rules. Undeclared references are rejected with path-specific errors; a dataset with no fields exposes no names. - `SemanticModelSourceValidator` no longer reads physical column metadata; it still resolves source existence, supported entity type, caller authorization, and registered source identity for persistence. - API javadocs (`Dataset`, `Relationship`), user docs, OpenAPI descriptions/examples, the design doc, and the Web UI validator are updated to field-name semantics. ### Why are the changes needed? The latest Apache Ossie spec (0.3.0.dev0, apache/ossie#486) explicitly defines these references as dataset field names — a breaking clarification. Gravitino's previous physical-column interpretation contradicts the spec: a field may rename or compute over source columns (e.g. field `order_id` over column `o_orderkey`), and keys and joins should reference the semantic interface rather than bypass it. Fixes #14952 ### Does this PR introduce _any_ user-facing change? Yes — validation behavior change: - Definitions whose keys or join columns name undeclared fields are now rejected (they were previously checked against physical source columns). - Definitions referencing field names that are not physical columns (e.g. aliased fields) are now accepted. - Field expressions remain uninterpreted; source existence and authorization checks are unchanged. ### How was this patch tested? - `./gradlew :core:test --tests 'TestSemanticModel*'` — new cases cover declared/undeclared/case-insensitive field references and fieldless datasets. - `./gradlew :server:test --tests 'TestSemanticModel*'` — source validator tests assert physical column metadata is never consulted; REST operation tests updated. - `./gradlew :api:test :common:test` semantic/Ossie converter tests. - `./gradlew :docs:build` — OpenAPI validation. - `npx vitest run src/lib/utils/semanticModel.test.js` — 78 tests. - `SemanticModelIT` fixtures updated (IT profile). - `./gradlew spotlessApply` clean. Generated with [Devin](https://devin.ai) -- 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]
