alamb commented on code in PR #15527:
URL: https://github.com/apache/datafusion/pull/15527#discussion_r2023199085
##########
datafusion/functions-nested/src/sort.rs:
##########
@@ -207,9 +208,21 @@ pub fn array_sort_inner(args: &[ArrayRef]) ->
Result<ArrayRef> {
valid.append_null();
} else {
let arr_ref = list_array.value(i);
- let arr_ref = arr_ref.as_ref();
- let sorted_array = compute::sort(arr_ref, sort_option)?;
+ let sorted_array = match arr_ref.data_type() {
Review Comment:
```suggestion
// arrow sort kernel does not support Structs, so use
// lexsort_to_indices instead:
//
https://github.com/apache/arrow-rs/issues/6911#issuecomment-2562928843
let sorted_array = match arr_ref.data_type() {
```
--
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]