yuqi1129 opened a new pull request, #12961: URL: https://github.com/apache/gravitino/pull/12961
### What changes were proposed in this pull request? Add a protected `toFlinkType(Type)` hook to `BaseCatalog` and use it when building table and view schemas. The default implementation delegates to `TypeUtils.toFlinkType`. ### Why are the changes needed? Catalogs need to map native external types to Flink types without duplicating schema construction. This complements the existing `toGravitinoType` hook. ### Does this PR introduce _any_ user-facing change? No. Existing catalogs retain their default type mappings. ### How was this patch tested? Added unit coverage for default mappings and a catalog override, including column names, nullability, comments, and preservation of source type metadata. Passed Flink 1.18 unit tests and Spotless checks: ```sh ./gradlew :flink-connector:flink-common:spotlessApply :flink-connector:flink-1.18:test -PskipITs --offline ``` -- 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]
