findepi commented on code in PR #13756: URL: https://github.com/apache/datafusion/pull/13756#discussion_r1884102861
########## 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: I don't know how to do this, please advise! But this function should go away with https://github.com/apache/datafusion/issues/13757. -- 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