westonpace commented on issue #15161:
URL: https://github.com/apache/arrow/issues/15161#issuecomment-1371329080

   There is `arrow::Table::RenameColumns` and I would be in favor of a similar 
`arrow::RecordBatch::RenameColumns`.  However, this would still be creating a 
new record batch.
   
   In Arrow-C++ classes such as `Array`, `RecordBatch`, `ChunkedArray`, and 
`Table` are immutable.  Changing this constraint would be pretty significant 
and is unlikely.  However, creating a new `RecordBatch` should be cheap because 
we do not copy the underlying buffers.  The cost should simply be a few 
`shared_ptr` allocations (possibly per column).


-- 
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