Open aersam opened 5 months ago
It does not fail with limit=1, interestingly
Seems like it may be a general issue with scan_ipc
pl.DataFrame({"A": [1]}).write_ipc("1.arrow")
pl.scan_ipc("1.arrow").head(0).collect()
# thread '<unnamed>' panicked at ./polars/crates/polars-core/src/utils/mod.rs:740:34:
# called `Option::unwrap()` on a `None` value
Indeed; not SQL related - I'll update the issue title 👌
pl.sql("""
SELECT * FROM (VALUES(1,2),(3,4)) tbl(a,b)
LIMIT 0
""").collect()
# shape: (0, 2)
# ┌─────┬─────┐
# │ a ┆ b │
# │ --- ┆ --- │
# │ i32 ┆ i32 │
# ╞═════╪═════╡
# └─────┴─────┘
Error originates from accumulate_dataframes_vertical
inside "crates/polars-core/src/utils/mod.rs".
Checks
Reproducible example
Here's the file I use: fake.zip
Log output
Issue description
Polars SQL raises when using Limit query
Expected behavior
well, should not raise :)
Installed versions