mapleFU opened a new issue, #8197:
URL: https://github.com/apache/arrow-rs/issues/8197

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   <!--
   A clear and concise description of what the problem is. Ex. I'm always 
frustrated when [...] 
   (This section helps Arrow developers understand the context and *why* for 
this feature, in addition to  the *what*)
   -->
   
   Currently, a ParquetRecordBatchReader would has a plan for read. It's 
maximum read row count is a fixed-sized number, can we try to expose this?
   
   **Describe the solution you'd like**
   
   Add a `row_count` interface for it, would be like ( the impl is incomplete )
   
   ```rust
       pub(crate) fn remaining_row_count(&self) -> usize {
           match &self.selection {
               None => 0,
               Some(s) => {
                   let mut value = 0;
                   for v in s {
                       if !v.skip {
                           value += v.row_count;
                       }
                   }
                   value
               }
           }
       }
   ```
   
   **Describe alternatives you've considered**
   
   Any row-count like interface is ok
   
   **Additional context**
   
   No here
   


-- 
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: github-unsubscr...@arrow.apache.org.apache.org

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

Reply via email to