YoungRX opened a new issue, #34494:
URL: https://github.com/apache/arrow/issues/34494

   ### Describe the usage question you have. Please include as many useful 
details as  possible.
   
   
   I use `AsyncScanner::ToRecordBatchReader()` and 
`ScannerRecordBatchReader::ReadNext(std::shared_ptr<RecordBatch>* batch)` to 
read the data from the Parquet file. And I set the size of a batch to 1000.
   
   When I use the following SQL statement:
   
   > `select * from parquet_1 limit 10;`
   
   My code scans to get a batch and completes the task. Then, reset the shared 
pointers such as scanner and recordBatchReader. 
   In this case, the read operation inside the `ReadNext `does not stop. 
   
   Abort occurred when calling PoolBuffer::Reserve in 
`arrow/cpp/src/arrow/memory_pool.cc`.
   Specifically, abort occurs at `RETURN_NOT_OK(pool_->Allocate(new_capacity, 
&ptr));`.
   
   So could you help me to solve this problem with the limit clause? 
   Maybe I could add some filter expressions or use a function to stop 
`ReadNext`.
   
   ### Component(s)
   
   C++


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