df.explode() + df.unnest() causes PanicException: called Result::unwrap()
on an Err
value
#6060
Closed
2 tasks done
Result::unwrap()
on an Err
value
#6060
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
I'm running into an unexpected error when I have a dataframe with a column of a list of structs that I first explode, and then unnest. Whenever I try to select any of the unnested fields, I get the following exception:
pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: NotFound(Owned("users"))
Reproducible example
Expected behavior
I expect to be able to select the
email
column from theusers
list of structs, after it has been exploded and unnested.I found that there are two workarounds, but I'm not sure about the implications on performance. Hopefully this helps in finding the root cause:
projection_pushdown
optimizationInstalled versions
The text was updated successfully, but these errors were encountered: