jayzhan211 commented on code in PR #8516: URL: https://github.com/apache/arrow-datafusion/pull/8516#discussion_r1428977010
########## datafusion/sqllogictest/test_files/array.slt: ########## @@ -3037,6 +3043,16 @@ select array_intersect([], []); ---- [] +query ? +select array_intersect([1, 1, 2, 2, 3, 3], null); +---- +[1, 2, 3] + +query ? +select array_intersect(null, [1, 1, 2, 2, 3, 3]); +---- +[1, 2, 3] Review Comment: You can try `make_array(&[])` for empty array. Also, you need to fix the `return_type` in `datafusion/expr/src/built_in_function.rs` too. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
