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
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Polars.
Issue description
Exploding a series of List[struct] containing a list field fails in some situations, in an order-dependent fashion. It is also unclear why a list[struct] would explode to a null-struct (see below)
Reproducible example
importpolarsasprpr.Series(
[[], [{"b": []}, {"b": ["foo"]}]],
dtype=pr.List(pr.Struct({"b": pr.List(pr.Utf8)})),
).explode()
thread'<unnamed>'panickedat'called `Result::unwrap()` on an `Err` value: OutOfSpec("validity mask length must match the number of values")', /root/.cargo/git/checkouts/arrow2-8a2ad61d97265680/368aacc/src/array/list/mod.rs:202:71
Thanks, will take a look. BTW could you use pl instead of pr? That's how we use it in every example and it really saves me a lot of muscle memory rewiring.
Polars version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Polars.
Issue description
Exploding a series of
List[struct]
containing a list field fails in some situations, in an order-dependent fashion. It is also unclear why a list[struct] would explode to a null-struct (see below)Reproducible example
Why does the
[]
row explode to{null}
?Expected behavior
I would expect the explode() to work, and for
[]
to explode to no rowsInstalled versions
The text was updated successfully, but these errors were encountered: