izveigor commented on code in PR #7239:
URL: https://github.com/apache/arrow-datafusion/pull/7239#discussion_r1288076529


##########
datafusion/core/tests/sqllogictests/test_files/array.slt:
##########
@@ -2319,6 +2314,31 @@ select array_concat(column1, [7]) from arrays_values_v2;
 [11, 12, 7]
 [7]
 
+# array_flatten
+query ????
+select array_flatten(make_array(1, 2, 1, 3, 2)),
+       list_flatten(make_list(1, 10, 11)),
+       array_flatten(make_array([1], [2, 3], [null], make_array(4, null, 5))),
+       array_flatten(make_array([[1.1]], [[2.2]], [[3.3], [4.4]]));
+----
+[1, 2, 1, 3, 2] [1, 10, 11] [1, 2, 3, , 4, , 5] [1.1, 2.2, 3.3, 4.4]
+
+query ????
+select column1, column2, column3, column4 from arrays_flatten_table;
+----
+[[1], [2], [3]] [[[1, 2, 3]], [[4, 5]], [[6]]] [[[[1]]], [[[2, 3]]]] [[1.0], 
[2.1, 2.2], [3.2, 3.3, 3.4]]
+[[1, 2], [3, 4], [5, 6]] [[[8]]] [[[[1, 2]]], [[[3]]]] [[1.0, 2.0], [3.0, 
4.0], [5.0, 6.0]]
+
+query ????
+select array_flatten(column1),

Review Comment:
   All databases use `flatten` instead of `array_flatten` (see the links: 
https://github.com/apache/arrow-datafusion/issues/6995).



-- 
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

Reply via email to