jayzhan211 commented on code in PR #8279:
URL: https://github.com/apache/arrow-datafusion/pull/8279#discussion_r1401348544


##########
datafusion/sqllogictest/test_files/array.slt:
##########
@@ -1044,6 +1044,25 @@ select make_array(['a','b'], null);
 ----
 [[a, b], ]
 
+## array_sort (aliases: `list_sort`)
+query ???
+select array_sort(make_array(1, 3, null, 5, NULL, -5)), 
array_sort(make_array(1, 3, null, 2), 'ASC'), array_sort(make_array(1, 3, null, 
2), 'desc', 'NULLS FIRST');
+----
+[, , -5, 1, 3, 5] [, 1, 2, 3] [, 3, 2, 1]
+
+query ?
+select array_sort(make_array(a,d,e), 'DESC', 'NULLS LAST') from values;

Review Comment:
   If you intend to test on table. You can do `select array_sort(column1, 
'DESC', 'NULLS LAST') from values;`



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