Skip to content

Commit

Permalink
apacheGH-44590: [C++] Add const and & to `arrow::Array::statistic…
Browse files Browse the repository at this point in the history
…s()` return type
  • Loading branch information
kou committed Oct 31, 2024
1 parent 5b68eca commit 7b9cf14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/arrow/array/array_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ class ARROW_EXPORT Array {
/// This just delegates to calling statistics on the underlying ArrayData
/// object which backs this Array.
///
/// \return const ArrayStatistics&
std::shared_ptr<ArrayStatistics> statistics() const { return data_->statistics; }
/// \return const std::shared_ptr<ArrayStatistics>&
const std::shared_ptr<ArrayStatistics>& statistics() const { return data_->statistics; }

protected:
Array() = default;
Expand Down

0 comments on commit 7b9cf14

Please sign in to comment.