mchades opened a new pull request, #14139: URL: https://github.com/apache/gravitino/pull/14139
### What changes were proposed in this pull request? Store the five definition fields in separate JSON columns within each Semantic Model version snapshot. Update serialization, reconstruction, SQL mappings, overwrite handling, and the H2/MySQL/PostgreSQL schema and upgrade scripts. ### Why are the changes needed? Prepare schema-level metric discovery to read metrics without loading unrelated definition fields. This implements the first storage step of #14038, under #14036. Fixes #14138. ### Does this PR introduce _any_ user-facing change? No public API changes. The pre-2.0.0 schema is updated in place; development databases using the previous layout require recreation or separate migration. ### How was this patch tested? 113 tests passed: 11 PO unit tests and 34 tests on each of H2, MySQL, and PostgreSQL, covering definition round-trips, absent/empty fields, malformed JSON, snapshots, overwrite, rollback, lifecycle behavior, and SQL upgrades. Ran coreUnitTest and the three core database test tasks with focused Semantic Model and TestSQLScripts filters, using -PskipITs -PskipDockerTests=false. Spotless and git diff --check passed. -- 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]
