Skip to content

Commit

Permalink
Use make_empty_lists_column
Browse files Browse the repository at this point in the history
Signed-off-by: Nghia Truong <[email protected]>
  • Loading branch information
ttnghia committed Dec 19, 2024
1 parent 757d3eb commit 4a70a37
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,6 +29,7 @@
#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 @@ -109,8 +110,7 @@ struct empty_column_constructor {
using namespace cudf::detail;

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

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

0 comments on commit 4a70a37

Please sign in to comment.