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
@Blizzara I'll take a look, as part of the previous PR, I added validation after creation like it was for float, wondering if validation message would add that extra 1?
@Blizzara it make sense, when input scale = output scale it always goes to convert_to_smaller_scale_decimal instead it should go to convert_to_bigger_or_equal_scale_decimal , I think, tests added as part of the #6833 needs change . Let me know if you are going to make this change, I'll create a PR otherwise to fix this now.
Describe the bug
See practical examples in apache/datafusion#14450.
Somehow a regression caused by #6833.
To Reproduce
Adding this into
arrow-cast/src/cast/mod.rs
:passes on 84dba34, but fails on eb7ab83 with
Somehow something in the code adds an extra
1
to the value?Expected behavior
Test passes
Additional context
Fyi @himadripal @andygrove @findepi @viirya @tustvold as you were involved in that earlier change. I tried to look at it but don't understand how it'd go wrong myself, maybe you know?
The text was updated successfully, but these errors were encountered: