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
thread '<unnamed>' panicked at crates/polars-arrow/src/array/struct_/mod.rs:117:52:
called `Result::unwrap()` on an `Err` value: ComputeError(ErrString("a StructArray must contain at least one field"))note: run with `RUST_BACKTRACE=1` environment variable to display a backtraceTraceback (most recent call last): File "/home/stijn/code/polars/py-polars/repro.py", line 4, in<module> result = s.str.json_decode() ^^^^^^^^^^^^^^^^^^^ File "/home/stijn/code/polars/py-polars/polars/series/utils.py", line 107, in wrapperreturns.to_frame().select_seq(f(*args, **kwargs)).to_series() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/stijn/code/polars/py-polars/polars/dataframe/frame.py", line 7709, in select_seqreturnself.lazy().select_seq(*exprs, **named_exprs).collect(_eager=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/stijn/code/polars/py-polars/polars/lazyframe/frame.py", line 1683, in collectreturnwrap_df(ldf.collect()) ^^^^^^^^^^^^^pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: ComputeError(ErrString("a StructArray must contain at least one field"))
Checks
Reproducible example
Log output
Issue description
Brought up in #9216
Empty structs do not exist, so this will error.
Expected behavior
This should raise a proper error.
Installed versions
main
The text was updated successfully, but these errors were encountered: