pitrou commented on code in PR #51270:
URL: https://github.com/apache/arrow/pull/51270#discussion_r3977420828


##########
cpp/src/arrow/adapters/orc/adapter.cc:
##########
@@ -135,7 +135,7 @@ constexpr int64_t kReadRowsBatch = 1000;
 class OrcStripeReader : public RecordBatchReader {
  public:
   OrcStripeReader(std::unique_ptr<liborc::RowReader> row_reader,
-                  std::shared_ptr<Schema> schema, int64_t batch_size, 
MemoryPool* pool)
+                  const std::shared_ptr<Schema>& schema, int64_t batch_size, 
MemoryPool* pool)
       : row_reader_(std::move(row_reader)),
         schema_(schema),

Review Comment:
   Same here: should move the `schema` constructor argument into the `schema_` 
attribute instead.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to