AndreaBozzo opened a new issue, #20090: URL: https://github.com/apache/datafusion/issues/20090
### Context In #20079, the `information_schema` was updated to use `return_field_from_args` / `return_field` / `WindowUDFFieldArgs::field` instead of the older `return_type` API for UDFs, UDAFs, and UDWFs. As noted in [this review comment](https://github.com/apache/datafusion/pull/20079#discussion_r2749229459), it would be good to add sqllogictest coverage to verify that `information_schema.routines` correctly reports return types for window UDFs (the `get_udwf_args_and_return_types` path). ### What needs to be done Add a sqllogictest (in `test_files/information_schema.slt` or a new file) that: 1. Registers a window UDF (or uses a built-in one) 2. Queries `information_schema.routines` filtering for that window function 3. Asserts the return type column is populated correctly (previously it was always `NULL`) The relevant code is in [`datafusion/catalog/src/information_schema.rs`](https://github.com/apache/datafusion/blob/main/datafusion/catalog/src/information_schema.rs) around the `get_udwf_args_and_return_types` function. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
