-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
5.0 RC4 - Scalar mappings are storing Decimal as double #2463
Comments
related elastic/elasticsearch#17006 |
Bump AsciiDoctNet to support additional asciidoc syntax Closes #2463
We discussed earlier this week about what we can or should do regarding this. We decided that we would document the usage of Hope that makes sense. |
Yeah, I'm not sure, but I can tell you I would't read the xml docs for to see the conversion warning and I don't use auto mapping. I'd just expect it to work. I totally understand why it doesn't, but will other developers. |
…es (elastic#2495) Bump AsciiDoctNet to support additional asciidoc syntax Closes elastic#2463 Conflicts: src/Tests/ClientConcepts/HighLevel/Mapping/AutoMap.doc.cs
I noticed an issue where you can't round trip
Decimal.MaxValue
as the mapping type is double. This occurs due to an overflow (Value was either too large or too small for a Decimal.
). It might be good to have unit tests for all the c# numeric types and do max value of each type and then call AutoMap / Scalar and then attempt to round trip them. As precision will be lost or gained and it should be handled :).The following snippet shows off what's happening in the simplest of terms (http://stackoverflow.com/questions/21337241/convert-from-decimal-to-single-and-back-why-does-it-throw-an-overflow-exception).
I think this has to due with two things that should be noted. The types supported by elastic don't always match up to .NET Types and serialization.
The text was updated successfully, but these errors were encountered: