comphead commented on code in PR #9110:
URL: https://github.com/apache/arrow-datafusion/pull/9110#discussion_r1476363976


##########
datafusion/sqllogictest/test_files/array.slt:
##########
@@ -5345,19 +5356,38 @@ select array_concat(column1, [7]) from arrays_values_v2;
 [7]
 
 # flatten
+# follow DuckDB
+query ?
+select flatten(NULL);
+----
+NULL
+
 query ???
 select flatten(make_array(1, 2, 1, 3, 2)),
        flatten(make_array([1], [2, 3], [null], make_array(4, null, 5))),
        flatten(make_array([[1.1]], [[2.2]], [[3.3], [4.4]]));
 ----
 [1, 2, 1, 3, 2] [1, 2, 3, , 4, , 5] [1.1, 2.2, 3.3, 4.4]
 
+query ???

Review Comment:
   please add test description



##########
datafusion/sqllogictest/test_files/array.slt:
##########
@@ -5345,19 +5356,38 @@ select array_concat(column1, [7]) from arrays_values_v2;
 [7]
 
 # flatten
+# follow DuckDB
+query ?
+select flatten(NULL);
+----
+NULL
+
 query ???
 select flatten(make_array(1, 2, 1, 3, 2)),
        flatten(make_array([1], [2, 3], [null], make_array(4, null, 5))),
        flatten(make_array([[1.1]], [[2.2]], [[3.3], [4.4]]));
 ----
 [1, 2, 1, 3, 2] [1, 2, 3, , 4, , 5] [1.1, 2.2, 3.3, 4.4]
 
+query ???
+select flatten(arrow_cast(make_array(1, 2, 1, 3, 2), 'LargeList(Int64)')),
+       flatten(arrow_cast(make_array([1], [2, 3], [null], make_array(4, null, 
5)), 'LargeList(LargeList(Int64))')),
+       flatten(arrow_cast(make_array([[1.1]], [[2.2]], [[3.3], [4.4]]), 
'LargeList(LargeList(LargeList(Float64)))'));
+----
+[1, 2, 1, 3, 2] [1, 2, 3, , 4, , 5] [1.1, 2.2, 3.3, 4.4]
+
 query ????
 select column1, column2, column3, column4 from 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 ????

Review Comment:
   please add test description



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

Reply via email to