schema_overrides in pl.read_csv_batched requires full schema instead of partial overrides #19685
Closed
2 tasks done
Labels
accepted
Ready for implementation
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
Issue description
The schema_overrides parameter in pl.read_csv_batched currently requires the complete schema definition. If only a partial schema is provided (as intended for overrides), it raises an error identical to the one raised by pl.read_csv when its schema parameter is not fully specified.
Expected behavior
According to the documentation, schema_overrides should accept any number of columns, allowing users to specify only the columns they wish to override. This matches the behavior of schema_overrides in pl.read_csv, which does not require the entire schema to function.
Installed versions
The text was updated successfully, but these errors were encountered: