Ted-Jiang opened a new issue, #2858:
URL: https://github.com/apache/arrow-rs/issues/2858

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   
   
   When i implementing 
https://github.com/apache/arrow-datafusion/pull/3780/files#r992227669
   find out if we create 
   ```
   let mut selection = RowSelection::from(vec![
               RowSelector::skip(10),
               RowSelector::select(10),
               RowSelector::skip(5),
               RowSelector::skip(5),
           ]);
   ```
   we have tree pages each have 10 rows.
   
   After introduced #2473, when skipping two  `RowSelector::skip(5)`:
   the first one is not enough to skip the whole page, so we need read the page 
bytes to skip 5 values decoding.
   But after #2473,  parquet reader not fetch the third page's bytes according 
to the `selection` 
   
   **Describe the solution you'd like**
   <!--
   A clear and concise description of what you want to happen.
   -->
   
   Add annotation at 
   
https://github.com/apache/arrow-rs/blob/7c8080c6752a55256630f6f6e6c82bf8a540d20b/parquet/src/arrow/arrow_reader/selection.rs#L298-L301
   and add one API call `from_and_combine` merge it into
   ```
               RowSelector::skip(10),
               RowSelector::select(10),
               RowSelector::skip(10),
   ```
   
   **Describe alternatives you've considered**
   <!--
   A clear and concise description of any alternative solutions or features 
you've considered.
   -->
   
   **Additional context**
   <!--
   Add any other context or screenshots about the feature request 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to