Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SerializedFileReader panicked on next of RowIter #3745

Closed
WaterKnight1998 opened this issue Feb 22, 2023 · 2 comments
Closed

SerializedFileReader panicked on next of RowIter #3745

WaterKnight1998 opened this issue Feb 22, 2023 · 2 comments
Labels
bug development-process Related to development process of arrow-rs

Comments

@WaterKnight1998
Copy link

Describe the bug

I am iterating the RowIter of a SerializedFileReader, when I call iter.next() I get the following error:

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value',

To Reproduce

    let mut file = File::open("test.parquet").unwrap();
    let reader = SerializedFileReader::new(file).unwrap();
    println!("Number of rows: {}", reader.metadata().num_row_groups());

    let mut iter = reader.get_row_iter(None).unwrap();
    let element = iter.next();

Expected behavior
It should return the row

Additional context
Parquet package version 33.0

@Dandandan
Copy link
Contributor

Looking at your panic, it doesn't error on .next() but on unwrap

@tustvold
Copy link
Contributor

I suspect this is a duplicate of #2394 but without a reproducer I cannot debug this

@tustvold tustvold closed this as not planned Won't fix, can't repro, duplicate, stale Jun 1, 2023
@tustvold tustvold added the development-process Related to development process of arrow-rs label Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug development-process Related to development process of arrow-rs
Projects
None yet
Development

No branches or pull requests

3 participants