alamb commented on code in PR #13756: URL: https://github.com/apache/datafusion/pull/13756#discussion_r1888917988
########## datafusion/expr/src/type_coercion/functions.rs: ########## @@ -414,7 +415,16 @@ fn get_valid_types( _ => Ok(vec![vec![]]), } } + fn array(array_type: &DataType) -> Option<DataType> { + match array_type { + DataType::List(_) | DataType::LargeList(_) => Some(array_type.clone()), + DataType::FixedSizeList(field, _) => Some(DataType::List(Arc::clone(field))), Review Comment: ```suggestion // Note array functions can often change the number of elements // so convert from FixedSize --> variable DataType::FixedSizeList(field, _) => Some(DataType::List(Arc::clone(field))), ``` -- 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