felipecrv commented on code in PR #42133: URL: https://github.com/apache/arrow/pull/42133#discussion_r1645224429
########## cpp/src/arrow/array/array_base.h: ########## @@ -232,6 +232,14 @@ class ARROW_EXPORT Array { /// \return DeviceAllocationType DeviceAllocationType device_type() const { return data_->device_type(); } + /// \brief Return the statistics of this Array + /// + /// This just delegates to calling statistics on the underlying ArrayData + /// object which backs this Array. + /// + /// \return const ArrayStatistics& + const ArrayStatistics& statistics() const { return data_->statistics; } Review Comment: > How about attaching the statistics read by a file reader to Array (not ArrayData) directly? Makes more sense. Perhaps even attach it only to the typed array classes and not `Array` itself. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org