Multipling a Decimal by Int returns Int type #16035
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
regression
Issue introduced by a new release
Checks
Reproducible example
Log output
Issue description
In previous versions of polars (<0.20.23), multiplying a Decimal type column with an integer resulted in a Decimal column. Since polars 0.20.23, polars converts the column to int type.
Expected behavior
shape: (1, 1)
┌────────────────┐
│ column_0 │
│ --- │
│ decimal[*,12] │
╞════════════════╡
│ 0.123456000000 │
└────────────────┘
Installed versions
The text was updated successfully, but these errors were encountered: