andygrove commented on code in PR #2389:
URL: https://github.com/apache/arrow-datafusion/pull/2389#discussion_r862485635
##########
datafusion/expr/src/function.rs:
##########
@@ -222,6 +222,14 @@ pub fn return_type(
_ => Ok(DataType::Float64),
},
+ BuiltinScalarFunction::Struct => {
+ let fields = input_expr_types
+ .iter()
+ .map(|x| Field::new("item", x.clone(), true))
Review Comment:
This looks like it is generating a struct where all of the fields have the
same name. I would expect that to cause an error.
--
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]