edponce edited a comment on issue #11648:
URL: https://github.com/apache/arrow/issues/11648#issuecomment-964886695


   I think there are multiple different questions being asked. The SO question 
is about how to append to an `Array` while @wujinghe  is asking about how to 
append data to a `Table`. Then, there is also the question on how to combine 
multiple `ChunkedArrays` and `Tables`.
   First of all, as @westonpace mentioned, Arrow containers are considered by 
design as immutable so `Append` methods are not available for all of them. 
Nevertheless, there are utilities to join these containers with very low 
overhead.
   
   **CombineArrays**
   Use [`auto new_array = 
Concatenate(arrays)`](https://github.com/apache/arrow/blob/master/cpp/src/arrow/array/concatenate.h#L34)
   
   **Combine ChunkedArrays**
   AFAIK, currently there is no utility function for this operation, but it is 
basically what `ConcatenateTables()` does internally 
[here](https://github.com/apache/arrow/blob/master/cpp/src/arrow/table.cc#L428-L437).
   
   **Combine Tables**
   Use 
[`Table->ConcatenateTables(tables)`](https://github.com/apache/arrow/blob/master/cpp/src/arrow/table.h#L270).
 
[`ConcatenateTableOptions`](https://github.com/apache/arrow/blob/master/cpp/src/arrow/table.h#L255)
 are use to control the behavior of the concatenate operation.


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


Reply via email to