mchades opened a new pull request, #10879: URL: https://github.com/apache/gravitino/pull/10879
### What changes were proposed in this pull request? Adds the relational storage layer for the Logical View Management feature, building on the schema scripts merged in #10860 and the view API merged in #10830. - New `ViewEntity` (implements `View`, `HasIdentifier`) with `defaultCatalog` / `defaultSchema` aligned with main's view API. - New `ViewVersionInfoPO` + `ViewVersionInfoMapper` with base + PostgreSQL SQL providers. - `ViewPO` / `ViewMetaMapper` providers extended to read/write `audit_info`, `default_catalog`, `default_schema` and join the current `view_version_info` row. - `ViewMetaService` rewritten for full CRUD with version management and JSON serialization of columns/properties/representations; soft-delete support. - `JDBCBackend` routes `ViewEntity` inserts through `ViewMetaService`; bumps `CURRENT_SCRIPT_VERSION` to `1.3.0`. - `ViewOperationDispatcher` updated with a `createView` stub matching main's `ViewCatalog#createView(..., String defaultCatalog, String defaultSchema, Map)` signature; full CRUD dispatchers will land in a follow-up PR. ### Why are the changes needed? This is the storage portion of the Logical View Management EPIC (#604). The API and DDL are already on main; this PR wires the persistence layer so views can be stored in Gravitino's metadata store with versioned snapshots. Fix: #10878 ### Does this PR introduce _any_ user-facing change? No new user-facing APIs in this PR. `CURRENT_SCRIPT_VERSION` is bumped from `1.2.0` to `1.3.0` to match the schema files already present on main; deployments will need to apply the `upgrade-1.2.0-to-1.3.0-*.sql` script (already in the repo). ### How was this patch tested? - New unit tests in `TestViewMetaService` covering insert / load / update (with new version row) / soft delete / list-by-namespace / multi-representation round-trip. - Existing `TestViewOperationDispatcher` extended for the updated `createView` signature. - Verified locally: `./gradlew :core:test --tests "*TestViewMetaService*" --tests "*TestViewOperationDispatcher*" -PskipITs` — all 16 tests pass. -- 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]
