Skip to content

Commit

Permalink
address reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
isVoid committed Jun 5, 2021
1 parent f27c670 commit bf666c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/lists/copying/scatter_helper.cu
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ std::pair<rmm::device_buffer, size_type> construct_child_nullmask(
* The caller may construct this with an `inclusive_scan()` on `list_vector`
* element sizes.
*/

struct list_child_constructor {
private:
/**
Expand Down Expand Up @@ -319,9 +318,10 @@ 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 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 bf666c5

Please sign in to comment.