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 df = LazyFrame::scan_parquet(
"nested_dataset_1row_fewcols.snappy.parquet".into(),
ScanArgsParquet::default(),
)?
.select([all()])
.collect()?;
does panic and exits.
What is the actual behavior?
It does panic with:
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: OutOfSpec("The validity length of a StructArray must match
its number of elements")', /.../.cargo/git/checkouts/arrow2-8a2ad61d97265680/f5f6b7e/src/array/struct_/mod.rs:118:52
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: OutOfSpec("The validity length of a StructArray must match
its number of elements")', /.../.cargo/git/checkouts/arrow2-8a2ad61d97265680/f5f6b7e/src/array/struct_/mod.rs:118:52
stack backtrace:
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: OutOfSpec("The validity length of a StructArray must match
its number of elements")', /.../.cargo/git/checkouts/arrow2-8a2ad61d97265680/f5f6b7e/src/array/struct_/mod.rs:118:52
0: rust_begin_unwind
at /rustc/495b216696ccbc27c73d6bdc486bf4621d610f4b/library/std/src/panicking.rs:584:5
1: core::panicking::panic_fmt
at /rustc/495b216696ccbc27c73d6bdc486bf4621d610f4b/library/core/src/panicking.rs:142:14
2: core::result::unwrap_failed
at /rustc/495b216696ccbc27c73d6bdc486bf4621d610f4b/library/core/src/result.rs:1805:5
3: core::result::Result<T,E>::unwrap
at /rustc/495b216696ccbc27c73d6bdc486bf4621d610f4b/library/core/src/result.rs:1098:23
4: arrow2::array::struct_::StructArray::new
at /Users/aionescu/.cargo/git/checkouts/arrow2-8a2ad61d97265680/f5f6b7e/src/array/struct_/mod.rs:118:9
5: arrow2::array::struct_::StructArray::from_data
at /Users/aionescu/.cargo/git/checkouts/arrow2-8a2ad61d97265680/f5f6b7e/src/array/struct_/mod.rs:127:9
6: <arrow2::io::parquet::read::deserialize::struct_::StructIterator as core::iter::traits::iterator::Iterator>::next
at /Users/aionescu/.cargo/git/checkouts/arrow2-8a2ad61d97265680/f5f6b7e/src/io/parquet/read/deserialize/struct_.rs:50:22
7: <alloc::boxed::Box<I,A> as core::iter::traits::iterator::Iterator>::next
at /rustc/495b216696ccbc27c73d6bdc486bf4621d610f4b/library/alloc/src/boxed.rs:1868:9
8: <arrow2::io::parquet::read::deserialize::struct_::StructIterator as core::iter::traits::iterator::Iterator>::next::{{closure}}
at /Users/aionescu/.cargo/git/checkouts/arrow2-8a2ad61d97265680/f5f6b7e/src/io/parquet/read/deserialize/struct_.rs:26:25
9: core::iter::adapters::map::map_fold::{{closure}}
at /rustc/495b216696ccbc27c73d6bdc486bf4621d610f4b/library/core/src/iter/adapters/map.rs:84:28
10: core::iter::traits::iterator::Iterator::fold
at /rustc/495b216696ccbc27c73d6bdc486bf4621d610f4b/library/core/src/iter/traits/iterator.rs:2414:21
...
What is the expected behavior?
Properly load the parquet file.
The text was updated successfully, but these errors were encountered:
What language are you using?
Rust
Which feature gates did you use?
"polars-io", "parquet", "lazy", "dtype-struct"
Have you tried latest version of polars?
What version of polars are you using?
0.22.8
What operating system are you using polars on?
macOS Monterey 12.3.1
What language version are you using
Describe your bug.
Tried to load a wide nested schema parquet file and it is panicking.
What are the steps to reproduce the behavior?
Given the attached parquet file: nested_dataset_1row_fewcols.snappy.parquet.zip
The following code:
does panic and exits.
What is the actual behavior?
It does panic with:
What is the expected behavior?
Properly load the parquet file.
The text was updated successfully, but these errors were encountered: