gstvg opened a new pull request, #23071: URL: https://github.com/apache/datafusion/pull/23071
## Which issue does this PR close? - Closes #23068 . ## Rationale for this change Unresolved lambda variables and unspecified placeholders report a `DataType::Null` data type, which causes an error when used as argument of a function that doesn't handle nulls during type coercion ## What changes are included in this PR? Handle null in `coerce_single_list_arg` for higher-order functions, `map_extract` and in spark `repeat`. All other functions (scalar, window, agg and higher-order) that uses user defined type coercion have been checked to currently handle null args. ## Are these changes tested? Test passing `array_filter` with an unresolved lambda variable to `Dataframe::with_column` (which indirectly calls `value_fields_with_higher_order_udf_and_lambdas` coercion via `Projection::try_new`, `projection_schema`, `exprlist_to_fields`, `Expr::to_field` ) ## Are there any user-facing changes? No -- 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]
