lidavidm commented on pull request #11023: URL: https://github.com/apache/arrow/pull/11023#issuecomment-907624892
You may instead be interested in two things I added recently: [ArrayBuilder::AppendScalar(const Scalar&, int64_t)](https://github.com/apache/arrow/blob/master/cpp/src/arrow/array/builder_base.h#L123) and [ArrayBuilder::AppendArraySlice](https://github.com/apache/arrow/blob/master/cpp/src/arrow/array/builder_base.h#L129). This would let you implement a generalized repeat without allocating and concatenating lots of intermediate arrays, and would let you preallocate the final array as well. -- 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]
