daniel-adam-tfs opened a new pull request, #1345:
URL: https://github.com/apache/arrow-go/pull/1345

   ### Rationale for this change
   Enables the use of custom allocators when reading column data with both 
buffered and unbuffered readers.
   
   ### What changes are included in this PR?
   
   Custom Allocator Support:
   
   - Modified utils.NewBufferedReader to accept memory.Allocator parameter
   - Added BufferedReaderV2 interface which extends BufferedReader with Free() 
and Buffered() methods
   - Added NewBytesBufferReader for allocator-backed byte buffers
   - ReaderProperties.GetStreamV2() uses the configured allocator for all 
buffer allocations, ReaderProperties.GetStream uses the wrapper around the 
default Go allocator to maintain original behavior
   
   ### Are these changes tested?
   
   - All existing unit tests pass with refactored implementation
   - Memory leak tests in TestReaderPropsGetStreamWithAllocator and 
TestReaderPropsGetStreamBufferedWithAllocator verify proper cleanup
   
   ### Are there any user-facing changes?
   
   New Features:
   
   - Users can now provide custom allocators via ReaderProperties to control 
memory allocation during page reading
   
   Breaking Changes:
   
   - utils.NewBufferedReader now requires a memory.Allocator parameter (pass 
nil for default)
   - new BufferedReaderV2 interface
   
   Closes #540


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