chegoryu opened a new pull request, #48322:
URL: https://github.com/apache/arrow/pull/48322

   ### Rationale for this change
   
   Fixing: https://github.com/apache/arrow/issues/48311
   
   ### What changes are included in this PR?
   
   Applied fix from https://github.com/apache/arrow/issues/48311 and added test
   
   ### Are these changes tested?
   
   Yes, added test, without my patch tests fails with debug checks:
   ```cpp
   Note: Google Test filter = TestBufferedInputStream.PeekAfterExhaustingBuffer
   [==========] Running 1 test from 1 test suite.
   [----------] Global test environment set-up.
   [----------] 1 test from TestBufferedInputStream
   [ RUN      ] TestBufferedInputStream.PeekAfterExhaustingBuffer
   /Users/chegoryu/Junk/git/arrow/cpp/src/arrow/io/buffered.cc:337:  Check 
failed: buffer_->size() - buffer_pos_ >= nbytes
   ```
   
   ### Are there any user-facing changes?
   
   No, this PR fixes a bug
   


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