jayzhan211 commented on code in PR #13756: URL: https://github.com/apache/datafusion/pull/13756#discussion_r1883994992
########## datafusion/expr/src/type_coercion/functions.rs: ########## @@ -414,7 +415,18 @@ fn get_valid_types( _ => Ok(vec![vec![]]), } } + fn array(array_type: &DataType) -> Option<DataType> { + match array_type { + DataType::List(_) => Some(array_type.clone()), + DataType::LargeList(field) | DataType::FixedSizeList(field, _) => { + Some(DataType::List(Arc::clone(field))) + } + _ => None, + } + } + + fn recursive_array(array_type: &DataType) -> Option<DataType> { Review Comment: Can we extend the existing array function for nested array instead of creating another signature for nested array -- 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