jayzhan211 commented on code in PR #14737:
URL: https://github.com/apache/datafusion/pull/14737#discussion_r1981277730
##########
datafusion/functions-nested/src/sort.rs:
##########
@@ -175,6 +204,7 @@ pub fn array_sort_inner(args: &[ArrayRef]) ->
Result<ArrayRef> {
for i in 0..row_count {
if list_array.is_null(i) {
array_lengths.push(0);
+ arrays.push(new_null_array(list_array.value(i).data_type(), 1));
Review Comment:
Remove this line fix the issue below.
for null case, you just need to make sure the offset append a single 0 and
the null buffer append a null, that is why we `array_lengths.push(0) and append
null`
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]