Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".venv/lib/python3.11/site-packages/polars/_utils/deprecation.py", line 92, in wrapper
return function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv/lib/python3.11/site-packages/polars/_utils/deprecation.py", line 92, in wrapper
return function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv/lib/python3.11/site-packages/polars/_utils/deprecation.py", line 92, in wrapper
return function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv/lib/python3.11/site-packages/polars/io/csv/functions.py", line 506, in read_csv
df = _read_csv_impl(
^^^^^^^^^^^^^^^
File ".venv/lib/python3.11/site-packages/polars/io/csv/functions.py", line 651, in _read_csv_impl
pydf = PyDataFrame.read_csv(
^^^^^^^^^^^^^^^^^^^^^
polars.exceptions.InvalidOperationError: conversion from `str` to `decimal[*,2]` failed in column 'f' for 1 out of 1 values: ["6.4E2"]
### Issue description
Note that setting scale to 0 or 1 successfully parses the number, but the result is wrong:
```python
pl.read_csv(io.StringIO("f\n6.4E2"), schema_overrides={"f": pl.Decimal(scale=0)})
Checks
Reproducible example
Log output
Expected behavior
The number should be parsed as
640
as apl.Decimal
Installed versions