From 7b9cf143527bd588ffb6474068bdbf31c05c5a46 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Thu, 31 Oct 2024 10:38:12 +0900 Subject: [PATCH] GH-44590: [C++] Add `const` and `&` to `arrow::Array::statistics()` return type --- cpp/src/arrow/array/array_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/src/arrow/array/array_base.h b/cpp/src/arrow/array/array_base.h index e4af67d7e5f0b..21faa3f4279ea 100644 --- a/cpp/src/arrow/array/array_base.h +++ b/cpp/src/arrow/array/array_base.h @@ -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 statistics() const { return data_->statistics; } + /// \return const std::shared_ptr& + const std::shared_ptr& statistics() const { return data_->statistics; } protected: Array() = default;