-
Notifications
You must be signed in to change notification settings - Fork 18
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
Bug Fix: Failed to deserialize the date field from a number using the @JsonFormat annotation #927
Bug Fix: Failed to deserialize the date field from a number using the @JsonFormat annotation #927
Conversation
Can you please add the test to |
@dstepanov test has been added into |
You can delete the other test |
@dstepanov test case removed from other module. Only added to |
Sorry, my suggestion was a bit incorrect. It looks like I tried your test with Jackson, and it returned different results. Can you please align it as much as possible with Jackson Databind? |
Some tests looks like need to add startsWith because of extra zeros |
Hi @dstepanov , sorry about the late reply. |
@dstepanov The last build failed and now I merged the latest main into my branch. Do you mind to trigger another build? |
I will review next week. Thanks! |
Thanks. Found few test failures regarding the timezone. Will fix them on weekend. |
@dstepanov Fixed few test cases. Do you mind to approve the build once more? |
0853d53
to
1b18959
Compare
Thanks @jjhz ! |
Fixing the inconsistent behavior when deserializing date field annotated with Jackson @jsonformat annotation.
To reproduce the issue
Pojo:
Deserialize from Json string
Error received:
Inconsistent Behavior
The same Json string input will be deserialized properly if the
@JsonFormat(pattern = "yyyy-MM-dd@HH:mm:ss.SSSZ")
removed since theFormattedTemporalSerde.deserialize()
is missing the error handling when processing the annotated date field compared toDefaultFormattedTemporalSerde.deserialize()
method.