jayzhan211 commented on code in PR #8279: URL: https://github.com/apache/arrow-datafusion/pull/8279#discussion_r1402819689
########## datafusion/sqllogictest/test_files/array.slt: ########## @@ -1051,9 +1051,14 @@ select array_sort(make_array(1, 3, null, 5, NULL, -5)), array_sort(make_array(1, [, , -5, 1, 3, 5] [, 1, 2, 3] [, 3, 2, 1] query ? -select array_sort(make_array(a,d,e), 'DESC', 'NULLS LAST') from values; +select array_sort(column1, 'DESC', 'NULLS LAST') from arrays_values; ---- -[sit, ipsum, dolor, consectetur, amet, adipiscing, Lorem, 8.8, 8, 7.7, 7, 6.6, 6, 5.5, 5, 4.4, 4, 3.3, 3, 2.2, 2, 1.1, 1, ,, , , ] +[70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 23, 22, 21, 20, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, , , , , ] Review Comment: You should iter the list and sort for each array inside it. -- 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