pl.read_csv_batched()
fails if dtypes
is provided and not all columns are used
#9654
Open
2 tasks done
Labels
A-io
Area: reading and writing data
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
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
There appears to be a bug in the code handling setting dtypes in
pl.read_csv_batched()
. When I usecolumns
to select a subset of columns and set their dtypes withdtypes
, it errors out because it tries to set the dtype of an unselected column. Runningpl.read_csv()
on the same file with the same arguments works just fine.Reproducible example
Expected behavior
Expected behaviour is parsing the CSV just like
pl.read_csv()
. Instead I getInstalled versions
The text was updated successfully, but these errors were encountered: