Skip to content
/ cudf Public
forked from rapidsai/cudf

Commit

Permalink
Allow zero-sized output in compute_column
Browse files Browse the repository at this point in the history
  • Loading branch information
wence- committed Apr 28, 2023
1 parent 7193f7c commit eb79b08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/src/transform/compute_column.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020-2022, NVIDIA CORPORATION.
* Copyright (c) 2020-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -97,6 +97,7 @@ std::unique_ptr<column> compute_column(table_view const& table,

auto output_column = cudf::make_fixed_width_column(
parser.output_type(), table.num_rows(), output_column_mask_state, stream, mr);
if (table.num_rows() == 0) { return output_column; }
auto mutable_output_device =
cudf::mutable_column_device_view::create(output_column->mutable_view(), stream);

Expand Down

0 comments on commit eb79b08

Please sign in to comment.