You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, a binary operation between two decimal types can result in a downcast if the resulting precision can be accommodated by a smaller decimal type:
In [20]: s=cudf.Series([0, 1, 2], dtype=cudf.Decimal64Dtype(scale=2, precision=5))
In [21]: sOut[21]:
00.0011.0022.00dtype: decimal64In [22]: s+sOut[22]:
00.0012.0024.00dtype: decimal32
This downcast may be inefficient, or at worst, dangerous, depending on downstream operations.
We should never downcast, but upcast if necessary, according to the rules summarized here.
The text was updated successfully, but these errors were encountered:
Currently, a binary operation between two decimal types can result in a downcast if the resulting
precision
can be accommodated by a smaller decimal type:This downcast may be inefficient, or at worst, dangerous, depending on downstream operations.
We should never downcast, but upcast if necessary, according to the rules summarized here.
The text was updated successfully, but these errors were encountered: