-
Notifications
You must be signed in to change notification settings - Fork 784
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
Fix data corruption in json decoder f64-to-i64 cast #652
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was going to cc you when I saw the PR, but then I noticed you actually wrote it :D
@xianwill there is rustfmt error that needs to be addressed. |
Codecov Report
@@ Coverage Diff @@
## master #652 +/- ##
=======================================
Coverage 82.50% 82.50%
=======================================
Files 168 168
Lines 47237 47243 +6
=======================================
+ Hits 38971 38977 +6
Misses 8266 8266
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Add failing test for JSON writer i64 bug * Add special handling for i64/u64 to json decoder array builder * Fix linter error - linter wants .flatten on a new line
* Add failing test for JSON writer i64 bug * Add special handling for i64/u64 to json decoder array builder * Fix linter error - linter wants .flatten on a new line Co-authored-by: Christian Williams <[email protected]>
Which issue does this PR close?
Closes #653
Rationale for this change
Described in issue #653
What changes are included in this PR?
Add special handling for
i64
andu64
to the build_primitive_array method inDecoder
. By avoiding the cast tof64
we avoid the data corruption.Are there any user-facing changes?
No