-
-
Notifications
You must be signed in to change notification settings - Fork 748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes to make Decimal serialization more deterministic with decimal places #1940
Changes to make Decimal serialization more deterministic with decimal places #1940
Conversation
Hi @michaelstaib / @PascalSenn , this was a little more complex than i originally thought:
So I think this will result in no breaking changes, but fix the issue as reported. |
Not sure if we than should use |
Thanks Michael. |
Hey @michaelstaib , anything further you want me to do on this one? |
Sorry for the wait will look at this later |
@michaelstaib Is this going to be merged into the 10.5 preview? |
Yes, but I have to rework it first |
But we will fix the issue |
Thanks for the quick reply. Is there anything I can do to help? This bug is causing an issue in a project I'm working on. |
Hi @bfink87, @michaelstaib it's disappointing you didnt ask for help seeing as I wrote this patch with guidance from yourself and Pascal, and even sought feedback with no response. |
@barticus we are at the moment focused on version 11, but we will merge this one probably this week. We will change it to G as discussed with you. |
@barticus I have removed NumberDecimalDigits since serialization/deserialization, in my opinion, should essentially lead to the same value. That was also my main hold up on this one. I will merge this one now and integrate it into preview-8. Sorry for the wait on this one but at the moment we are really focused on version 11 which really takes a lot of my attention right now. We try to get 10.5 out this week. |
@barticus G does not contain only two digits; it will contain all |
SonarCloud Quality Gate failed. 0 Bugs 79.6% Coverage The version of Java (1.8.0_252) you have used to run this analysis is deprecated and we will stop accepting it from October 2020. Please update to at least Java 11. |
Hi @michaelstaib, Will v11 allow users to specify the precision they want on certain types? |
@barticus not sure about this. What is the benefit of having zeros at the end? |
@michaelstaib it's not about zeroes at the end, it's about matching the precision of your data types, especially DB types. If you only want to accept currency values up to 2 decimal places, it would be nice to be able to handle this at the type layer. |
Summary of the changes (Less than 80 chars)
Addresses #1929