mustafasrepo commented on code in PR #10651: URL: https://github.com/apache/datafusion/pull/10651#discussion_r1621862150
########## datafusion/expr/src/expr_schema.rs: ########## @@ -170,7 +194,18 @@ impl ExprSchemable for Expr { fun.return_type(&data_types) } AggregateFunctionDefinition::UDF(fun) => { - Ok(fun.return_type(&data_types)?) + let new_types = data_types_with_aggregate_udf(&data_types, fun).map_err(|err| { + plan_datafusion_err!( + "{} and {}", + err, + utils::generate_signature_error_msg( + fun.name(), + fun.signature().clone(), + &data_types + ) + ) + })?; Review Comment: Similar comment above applies here -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org