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
The following raises an error:
importpolarsaspldf1=pl.LazyFrame({"A": [1]})
pl.DataFrame({"B": [1]}).write_csv("test.csv")
# This fails with PanicException: called `Option::unwrap()` on a `None` valuedf1.with_context(pl.scan_csv("test.csv")).collect()
# This succeedsdf1.with_context(pl.scan_csv("test.csv").collect().lazy()).collect()
# Reversing the order also succeeds pl.scan_csv("test.csv").with_context(df1).collect()
The same error arises for scan_parquet and scan_ipc.
Reproducible example
importpolarsaspldf1=pl.LazyFrame({"A": [1]})
pl.DataFrame({"B": [1]}).write_csv("test.csv")
# This fails with PanicException: called `Option::unwrap()` on a `None` valuedf1.with_context(pl.scan_csv("test.csv")).collect()
Expected behavior
Code should run regardless of the source of the lazyframe.
I have this as well, interestingly only for polars > 0.19.6. Since this issue is older I'm not sure if it's really the same issue, or if #12416 also came up in newer versions.
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
The following raises an error:
The same error arises for
scan_parquet
andscan_ipc
.Reproducible example
Expected behavior
Code should run regardless of the source of the lazyframe.
Installed versions
The text was updated successfully, but these errors were encountered: