edmondop commented on code in PR #7897: URL: https://github.com/apache/arrow-datafusion/pull/7897#discussion_r1367942183
########## datafusion/physical-expr/src/array_expressions.rs: ########## @@ -1478,6 +1478,28 @@ macro_rules! to_string { }}; } + +/// Array_union SQL function +pub fn array_union(args: &[ArrayRef]) -> Result<ArrayRef> { + let array1 = &args[0]; + let array2= &args[1]; + + check_datatypes("array_union", &[array1, array2])?; + let list1 = as_list_array(array1)?; Review Comment: this is my first attempt to contribute to arrow-datafusion, can you explain why we are converting a generic array to i32? -- 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...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org