diqiu50 opened a new pull request, #11926: URL: https://github.com/apache/gravitino/pull/11926
### What changes were proposed in this pull request? Add view support to the Gravitino Trino connector: - `HiveViewCatalogOperations`: accept the `trino` SQL dialect in view creation and loading. - `CatalogConnectorMetadata`: delegate view CRUD to Gravitino's `ViewCatalog` API, only exposing views with a `trino` SQL representation. - `GravitinoMetadata` (+ per-Trino-version modules): implement `listViews`, `getView`, `createView`, `dropView`, `renameView`, `isView`. ### Why are the changes needed? Fix: #11925 ### Does this PR introduce _any_ user-facing change? Yes — users can now `CREATE VIEW` / `CREATE OR REPLACE VIEW` / `SHOW CREATE VIEW` / `DROP VIEW` / `ALTER VIEW ... RENAME TO` via Trino SQL on Hive/Iceberg/Paimon-backed catalogs, and views appear in `SHOW TABLES`. ### How was this patch tested? - Unit tests: `TestCatalogConnectorMetadataView`, `TestGravitinoMetadataView`, Hive dialect tests in `TestHiveCatalogOperations`. - Integration testsets: new view test cases for Hive and Iceberg catalogs. -- 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]
