-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Incorrect deserialization for BigDecimal
numbers
#1770
Comments
Thank you for reporting this, does sound like a bug. |
Hmmh. This may be tricky to handle... problem being that detection of Will add failing test, see if I can figure out a way to handle this as expected. |
@GedMarc maybe this comment is for different issue... ? |
Oh Geez! This is for the double deserialization as float into big decimal! |
For context, looks like fix for #1028 possibly caused this. So code that should coerce value results in parser trying to determine if it got a This is tricky to solve, |
BigDecimal
numbers
@pjfanning This issue is something where I was hoping lazy parsing might work. I do not remember all the details on exact failure but seems like this could maybe be revisited to see it was now solvable in 2.16. |
### What changes were proposed in this pull request? The pr aims to upgrade FasterXML jackson from 2.15.2 to 2.16.0. ### Why are the changes needed? New version that fix some bugs, release notes as follows: - 2.1.6.0 https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.16, eg: [Databind](https://github.com/FasterXML/jackson-databind) [#1770](FasterXML/jackson-databind#1770): Incorrect deserialization for BigDecimal numbers - 2.15.3 https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.15.3, eg: [Databind](https://github.com/FasterXML/jackson-databind) [#3968](FasterXML/jackson-databind#3968): Records with additional constructors failed to deserialize The last upgrade occurred 6 months ago, #41414 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass GA. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #43859 from panbingkun/SPARK-45967. Authored-by: panbingkun <pbk1982@gmail.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
The pr aims to upgrade FasterXML jackson from 2.15.2 to 2.16.0. New version that fix some bugs, release notes as follows: - 2.1.6.0 https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.16, eg: [Databind](https://github.com/FasterXML/jackson-databind) [apache#1770](FasterXML/jackson-databind#1770): Incorrect deserialization for BigDecimal numbers - 2.15.3 https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.15.3, eg: [Databind](https://github.com/FasterXML/jackson-databind) [apache#3968](FasterXML/jackson-databind#3968): Records with additional constructors failed to deserialize The last upgrade occurred 6 months ago, apache#41414 No. Pass GA. No. Closes apache#43859 from panbingkun/SPARK-45967. Authored-by: panbingkun <pbk1982@gmail.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
If the number in JSON cannot be represented as Double and
DeserializationFeature.USE_BIG_DECIMAL_FOR_FLOATS
is enabled, big numbers are returned as Infinity.The test below should pass:
The problem is reproducible in the latest released version, 2.9.1.
The text was updated successfully, but these errors were encountered: