alan910127 commented on code in PR #14737: URL: https://github.com/apache/datafusion/pull/14737#discussion_r1969777660
########## datafusion/expr/src/type_coercion/functions.rs: ########## @@ -435,6 +436,10 @@ fn get_valid_types( match array_type { DataType::List(_) | DataType::LargeList(_) => Some(array_type.clone()), DataType::FixedSizeList(field, _) => Some(DataType::List(Arc::clone(field))), + DataType::Null => Some(DataType::List(Arc::new(Field::new_list_field( + DataType::Null, Review Comment: I was trying something like `array_append(null, [1])`, since only NULL is possible to be coerced to those types, I use List(Null) 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