Skip to content

Commit

Permalink
Simplified the conversion in to_tdigest_scalar.
Browse files Browse the repository at this point in the history
  • Loading branch information
nvdbaranec committed Mar 15, 2022
1 parent 0fdd74e commit 98e76ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cpp/src/quantiles/tdigest/tdigest_aggregation.cu
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,7 @@ std::unique_ptr<scalar> to_tdigest_scalar(std::unique_ptr<column>&& tdigest,
CUDF_EXPECTS(tdigest->size() == 1,
"Encountered invalid tdigest column when converting to scalar");
auto contents = tdigest->release();
return std::make_unique<struct_scalar>(
std::move(*std::make_unique<table>(std::move(contents.children))), true, stream, mr);
return std::make_unique<struct_scalar>(table(std::move(contents.children)), true, stream, mr);
}

/**
Expand Down

0 comments on commit 98e76ef

Please sign in to comment.