pitrou commented on pull request #12579:
URL: https://github.com/apache/arrow/pull/12579#issuecomment-1062867758


   > Yeah. We have an operator building a sample over streaming data using 
reservoir sampling. This requires making updates to the builders.
   
   This is a bit of a slippery slope. Array builders are meant for sequential 
appending, they normally don't support mutating values.
   At a lower level you can use `TypedBufferBuilder` or you can even handle 
buffer allocation yourself.
   


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