lidavidm commented on a change in pull request #10294: URL: https://github.com/apache/arrow/pull/10294#discussion_r630985853
########## File path: cpp/src/arrow/record_batch.h ########## @@ -108,7 +108,7 @@ class ARROW_EXPORT RecordBatch { virtual std::shared_ptr<ArrayData> column_data(int i) const = 0; /// \brief Retrieve all arrays' internal data from the record batch. - virtual ArrayDataVector column_data() const = 0; + virtual const ArrayDataVector& column_data() const = 0; Review comment: I went ahead and converted Table::columns() and RecordBatch::columns(). -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org