You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let file = File::open("./test.parquet")?;let reader = SerializedFileReader::new(file)?;let iter = reader.get_row_iter(None)?;for record in iter {println!("{:?}", record);}
and the program paniced:
thread 'main' panicked at D:\env\rust\.cargo\registry\src\rsproxy.cn-8f6827c7555bfaf8\parquet-50.0.0\src\schema\types.rs:1088:78:
called `Option::unwrap()` on a `None` value
stack backtrace:
0: std::panicking::begin_panic_handler
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library\std\src\panicking.rs:645
1: core::panicking::panic_fmt
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library\core\src\panicking.rs:72
2: core::panicking::panic
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library\core\src\panicking.rs:127
3: enum2$<core::option::Option<parquet::format::Type> >::unwrap<parquet::format::Type>
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112\library\core\src\option.rs:931
4: parquet::schema::types::from_thrift_helper
at D:\env\rust\.cargo\registry\src\rsproxy.cn-8f6827c7555bfaf8\parquet-50.0.0\src\schema\types.rs:1088
5: parquet::schema::types::from_thrift
at D:\env\rust\.cargo\registry\src\rsproxy.cn-8f6827c7555bfaf8\parquet-50.0.0\src\schema\types.rs:1035
6: parquet::file::footer::decode_metadata
at D:\env\rust\.cargo\registry\src\rsproxy.cn-8f6827c7555bfaf8\parquet-50.0.0\src\file\footer.rs:74
7: parquet::file::footer::parse_metadata<std::fs::File>
at D:\env\rust\.cargo\registry\src\rsproxy.cn-8f6827c7555bfaf8\parquet-50.0.0\src\file\footer.rs:65
8: parquet::file::serialized_reader::SerializedFileReader<std::fs::File>::new<std::fs::File>
at D:\env\rust\.cargo\registry\src\rsproxy.cn-8f6827c7555bfaf8\parquet-50.0.0\src\file\serialized_reader.rs:182
9: parquet_test::read_parquet_file<ref$<str$> >
at .\src\main.rs:9
10: parquet_test::main
at .\src\main.rs:29
11: core::ops::function::FnOnce::call_once<void (*)(),tuple$<> >
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112\library\core\src\ops\function.rs:250
12: core::hint::black_box
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112\library\core\src\hint.rs:286
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: process didn't exit successfully: `target\debug\parquet_test.exe` (exit code: 101)
Expected behavior
Additional context
The text was updated successfully, but these errors were encountered:
The issue appears to be that the logic currently assumes that a type with no children is a primitive type, when it should probably also check that it contains a set type_ field.
Describe the bug
To Reproduce
first, create an empty parquet file using pandas
then, read this parquet using rust:
and the program paniced:
Expected behavior
Additional context
The text was updated successfully, but these errors were encountered: