Skip to content

Commit

Permalink
concatenate.cc: Fix docstring about the out parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecrv committed Jul 15, 2024
1 parent 6a4236c commit 66fdfed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions cpp/src/arrow/array/concatenate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,8 @@ namespace internal {
Result<std::shared_ptr<Array>> Concatenate(
const ArrayVector& arrays, MemoryPool* pool,
std::shared_ptr<DataType>* out_suggested_cast) {
DCHECK(out_suggested_cast);
*out_suggested_cast = nullptr;
if (arrays.size() == 0) {
return Status::Invalid("Must pass at least one array");
}
Expand Down
7 changes: 3 additions & 4 deletions cpp/src/arrow/array/concatenate.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ namespace internal {
///
/// \param[in] arrays a vector of arrays to be concatenated
/// \param[in] pool memory to store the result will be allocated from this memory pool
/// \param[out] out_suggested_cast if non-NULL, the function might set it to a cast
/// suggestion that would allow concatenating the arrays
/// without overflow of offsets (e.g. string to
/// large_string)
/// \param[out] out_suggested_cast if a non-OK Result is returned, the function might set
/// out_suggested_cast to a cast suggestion that would allow concatenating the arrays
/// without overflow of offsets (e.g. string to large_string)
///
/// \return the concatenated array
ARROW_EXPORT
Expand Down

0 comments on commit 66fdfed

Please sign in to comment.