yuqi1129 opened a new pull request, #14992: URL: https://github.com/apache/gravitino/pull/14992
### What changes were proposed in this pull request? Implement design task T2: persist glossary definitions and synonyms, with normalized name keys, optional unique source references, revisions, transactional updates, soft deletion, metalake cleanup and garbage collection. Wire the entity into the relational backend and keep glossary reads uncached. Add H2, MySQL and PostgreSQL schema and 1.3.0-to-2.0.0 upgrade scripts. H2 columns accommodate UTF-16 storage while Java enforces 128 Unicode code points. MySQL uses a nullable generated binary source-reference key to preserve exact comparison, including trailing spaces, on both 5.7 and 8.0. ### Why are the changes needed? Provide the storage foundation for the Glossary API already merged into glossary-term-dev. Fixes #14986 ### Does this PR introduce _any_ user-facing change? No new REST endpoints. This adds storage only; relation storage (#14988), manager validation/semantic no-op handling, authorization, bindings and API projections remain separate tasks. Batch-get currently performs a protected read per identifier; full-metalake listing batches synonym loading. ### How was this patch tested? Targeted entity/cache unit tests and glossary storage/SQL script tests on H2, MySQL and PostgreSQL; no full core suite. An isolated mutation removing normalization makes the duplicate-name regression test fail. A MySQL 5.7.44 probe verifies repeatable glossary DDL, shared-lock syntax, nullable/exact source-reference uniqueness and duplicate rejection. 17 targeted entity/store unit tests, 9 glossary storage tests on each of H2/MySQL/PostgreSQL, and 13 SQL-script tests on each backend passed across the validation runs (83 cases). Javadoc generation passed with existing project warnings. The full core suite was not run. Independent review of 92c2c9d114 found no remaining Blocker/Important findings. -- 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]
