Closed djouallah closed 1 week ago
@ritchie46 with 1.6 i have a different bug
2032 # Only for testing purposes
2033 callback = _kwargs.get("post_opt_callback", callback)
-> 2034 return wrap_df(ldf.collect(callback))
2035
2036 @overload
PanicException: index out of bounds: the len is 52 but the index is 52
@djouallah Can you provide a backtrace (set RUST_BACKTRACE=1
in the environment before importing polars)?
@nameexhaustion i did provide a reproduced notebook in colab, just run it there ?
I'm not able to get the backtrace from the colab environment - could you try and make a small script that reproduces locally?
sorry for that, even locally, I could not get a backtrace working
@nameexhaustion it is related to include_file_paths
.
I also see that include_file_paths
doesn't respect the projection pushdown:
import polars as pl
q = pl.scan_csv("a,b,c\na1,b1,c1".encode(), include_file_paths="path_name").select(["a", "b"])
print(q.collect())
shape: (1, 3)
┌─────┬─────┬───────────┐
│ a ┆ b ┆ path_name │
│ --- ┆ --- ┆ --- │
│ str ┆ str ┆ str │
╞═════╪═════╪═══════════╡
│ a1 ┆ b1 ┆ in-mem │
└─────┴─────┴───────────┘
The 2nd panic issue will be tracked at https://github.com/pola-rs/polars/issues/19397
wonderful, it is fixed now !!!
Checks
Reproducible example
public notebook https://colab.research.google.com/drive/1XpcKetkpN86XXx-rEhPzdL9cEAHevtEH?usp=sharing
Log output
Issue description
it should work
Expected behavior
it should work
Installed versions
1.5.0