Skip to content

Commit

Permalink
Revert "Use make_empty_lists_column"
Browse files Browse the repository at this point in the history
This reverts commit 4a70a37.
  • Loading branch information
ttnghia committed Dec 19, 2024
1 parent 4a70a37 commit cce6e0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/groupby/groupby.cu
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <cudf/detail/utilities/vector_factories.hpp>
#include <cudf/dictionary/dictionary_column_view.hpp>
#include <cudf/groupby.hpp>
#include <cudf/lists/detail/lists_column_factories.hpp>
#include <cudf/reduction/detail/histogram.hpp>
#include <cudf/table/table.hpp>
#include <cudf/table/table_view.hpp>
Expand Down Expand Up @@ -110,7 +109,8 @@ struct empty_column_constructor {
using namespace cudf::detail;

if constexpr (k == aggregation::Kind::COLLECT_LIST || k == aggregation::Kind::COLLECT_SET) {
return cudf::lists::detail::make_empty_lists_column(values.type(), stream, mr);
return make_lists_column(
0, make_empty_column(type_to_id<size_type>()), empty_like(values), 0, {}, stream, mr);
}

if constexpr (k == aggregation::Kind::HISTOGRAM) {
Expand Down

0 comments on commit cce6e0a

Please sign in to comment.