lidavidm edited a comment on pull request #10470:
URL: https://github.com/apache/arrow/pull/10470#issuecomment-863618250


   Hmm, I'm not sure if ExtendAsMuchAsPossible should replace Extend 
everywhere. For one, if you use Extend, you'll then have to check that the 
number of items added is equal to the number of items you gave it, and in that 
case, you'll also lose the actual error (or we'll have to declare `Status 
ExtendAsMuchAsPossible(..., int64_t* appended)`). 
   
   Maybe what we could do instead is expose a `int64_t 
Converter::MaxItemsPerChunk(int64_t)` so that the chunked converter can handle 
all the logic internally, and the converters themselves could assume everything 
fits in a chunk. Though that's much less flexible, it's basically the current 
situation.


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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to