Cannot instantiate pl.lit
with a Decimal value
#13341
Labels
A-dtype-decimal
Area: decimal data type
accepted
Ready for implementation
bug
Something isn't working
P-medium
Priority: medium
python
Related to Python Polars
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Polars.
Reproducible example
Log output
Issue description
We cannot instantiate a decimal literal, irrespective of whether
activate_decimals
is True/False.Expected behavior
We can create decimal Series; should also be able to create literals, so we can filter/operate on those Series, eg:
This filter should succeed; instead we get...
Note that if we try and filter with an equivalent float it will fail to match, as the target decimal value cannot be exactly represented (the closest float is given as "1.66666666666666674068...")
Installed versions
The text was updated successfully, but these errors were encountered: