[BUG] lists::detail::sort_lists
returns wrong result for sliced lists column containing structs entries
#9213
Labels
bug
Something isn't working
libcudf
Affects libcudf (C++/CUDA) code.
non-breaking
Non-breaking change
Spark
Functionality that helps Spark RAPIDS
During working on
drop_list_duplicates
for structs entries, a bug shows up indicating that sliced columns of structs are not properly handled inlists::detail::sort_lists
:cudf::test::print(lists_original)
:auto const lists = cudf::slice(lists_original, {1, 3})[0];
:detail::sort_lists(lists_column_view(lists), order::ASCENDING, null_order::AFTER);
:Note that
sort_lists
works just fine with sliced columns of basic types. I quickly look at the implementation ofsort_lists
and see that it callssegmented_sorted_order
andgather
so maybe the bug is related to one of these APIs.The text was updated successfully, but these errors were encountered: