You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/10/25 14:25:00 UTC

[GitHub] [arrow-rs] Ted-Jiang opened a new issue, #2925: Fail at rowSelection `and_then` method

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

   **Describe the bug**
   ```
   let a = RowSelection::from(vec![
               RowSelector::select(3),
               RowSelector::skip(33),
               RowSelector::select(3),
               RowSelector::skip(33),
           ]);
           let b = RowSelection::from(vec![RowSelector::select(36), RowSelector::skip(36)]);
   
           assert_eq!(
               a.and_then(&b).selectors,
               vec![RowSelector::select(3), RowSelector::skip(69)]
           );
   ```
   got 
   ```
   ---- arrow::arrow_reader::selection::tests::test_and_2 stdout ----
   thread 'arrow::arrow_reader::selection::tests::test_and_2' panicked at 'called `Option::unwrap()` on a `None` value', parquet/src/arrow/arrow_reader/selection.rs:233:38
   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
   
   ```
   **To Reproduce**
   <!--
   Steps to reproduce the behavior:
   -->
   
   **Expected behavior**
   <!--
   A clear and concise description of what you expected to happen.
   -->
   
   **Additional context**
   <!--
   Add any other context about the problem 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-unsubscribe@arrow.apache.org.apache.org

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


[GitHub] [arrow-rs] viirya commented on issue #2925: Fail at rowSelection `and_then` method

Posted by GitBox <gi...@apache.org>.
viirya commented on issue #2925:
URL: https://github.com/apache/arrow-rs/issues/2925#issuecomment-1292353211

   Hmm, if `and_then` takes the conjunction from two row selections, why `b` should be only 6 long? It looks like `b` must be in the selection range of `a`.


-- 
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-unsubscribe@arrow.apache.org

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


[GitHub] [arrow-rs] alamb commented on issue #2925: Fail at rowSelection `and_then` method

Posted by GitBox <gi...@apache.org>.
alamb commented on issue #2925:
URL: https://github.com/apache/arrow-rs/issues/2925#issuecomment-1294979645

   `label_issue.py` automatically added labels {'parquet'} from #2924


-- 
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-unsubscribe@arrow.apache.org

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


[GitHub] [arrow-rs] tustvold commented on issue #2925: Fail at rowSelection `and_then` method

Posted by GitBox <gi...@apache.org>.
tustvold commented on issue #2925:
URL: https://github.com/apache/arrow-rs/issues/2925#issuecomment-1291100678

   This appears to be caused by the second row selector being longer than expected, `a` only selects 6 rows and so `b` should only be 6 long, instead of 72.
   
   This is a bug that should be fixed, but shouldn't impact correctness


-- 
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-unsubscribe@arrow.apache.org

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


[GitHub] [arrow-rs] viirya closed issue #2925: Fail at rowSelection `and_then` method

Posted by GitBox <gi...@apache.org>.
viirya closed issue #2925: Fail at rowSelection `and_then` method
URL: https://github.com/apache/arrow-rs/issues/2925


-- 
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-unsubscribe@arrow.apache.org

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