laserninja opened a new pull request, #10494: URL: https://github.com/apache/gravitino/pull/10494
Add support for consuming Gravitino function metadata in the Trino connector by mapping SQL functions with RuntimeType.TRINO to Trino's built-in LanguageFunction API. Changes: - CatalogConnectorMetadata: Add FunctionCatalog support with graceful fallback when catalog does not support functions. Add methods to list and retrieve functions from Gravitino server. - GravitinoMetadata: Implement listLanguageFunctions() and getLanguageFunctions() to convert Gravitino SQL functions with TRINO runtime to Trino LanguageFunction instances. - TestGravitinoMetadataFunction: 8 unit tests covering listing, filtering, multiple definitions, signature tokens, and edge cases. - TestCatalogConnectorMetadataFunction: 7 unit tests covering function catalog support detection, listing, retrieval, and error handling. Fixes #9533 -- 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]
