Skip to content

Commit

Permalink
Fixing bad merges and applying rapidsai#8314 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
isVoid committed May 25, 2021
1 parent d8c96ed commit a5fdd98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions cpp/include/cudf/lists/detail/scatter.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ namespace detail {

namespace {

template <typename IndexIterator>
rmm::device_uvector<unbound_list_view> list_vector_from_column(
unbound_list_view::label_type label,
cudf::detail::lists_column_device_view const& lists_column,
Expand Down
8 changes: 2 additions & 6 deletions cpp/src/lists/copying/scatter_helper.cu
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,9 @@ struct list_child_constructor {
auto const num_child_rows{
cudf::detail::get_value<size_type>(list_offsets, list_offsets.size() - 1, stream)};

if (num_child_rows == 0) {
if (num_child_rows == 0)
// make an empty lists column using the input child type
return make_empty_lists_column(
source_lists_column_view.child().child(lists_column_view::child_column_index).type(),
stream,
mr);
}
return empty_like(source_lists_column_view.child());

auto child_list_views = rmm::device_uvector<unbound_list_view>(num_child_rows, stream, mr);

Expand Down

0 comments on commit a5fdd98

Please sign in to comment.