-
Notifications
You must be signed in to change notification settings - Fork 1k
Patch float with trailing zero for JSON and add useFloatWithTrailingZero flag #1038
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
Open
chenhuiyeh
wants to merge
7
commits into
go-mysql-org:master
Choose a base branch
from
chenhuiyeh:float_with_trailing_zero
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Patch float with trailing zero for JSON and add useFloatWithTrailingZero flag #1038
chenhuiyeh
wants to merge
7
commits into
go-mysql-org:master
from
chenhuiyeh:float_with_trailing_zero
+447
−12
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It would be good to add some tests and a description or an issue link. |
814aa96
to
9d46fb3
Compare
Hi, please fix the CI. And I'll take a look after you remove the draft status of PR. |
Hi, do you need some help? |
I was away, will be picking this up today. I'll reach out if I have any
questions. Thank you
…On Tue, Jun 3, 2025 at 2:57 AM lance6716 ***@***.***> wrote:
*lance6716* left a comment (go-mysql-org/go-mysql#1038)
<#1038 (comment)>
Hi, do you need some help?
—
Reply to this email directly, view it on GitHub
<#1038 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AICWJGSXBSUSUAORVULNSQD3BVBOZAVCNFSM6AAAAAB5SC73WGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSMZTG44DAMRTHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
chenhuiyeh
commented
Jun 5, 2025
@@ -0,0 +1,403 @@ | |||
package replication |
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 decided to pull the unit tests out specifically for this feature/fix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request enables support for MySQL 8+ for retaining trailing zeros in floating-point numbers in JSON format. This is achieved through the addition of the
useFloatWithTrailingZero
setting option within the go-mysql library. Note this only works with MySQL version 8 onwards.A patch addressing this feature was initially applied in ghostferry PR #368. This current PR seeks to integrate these updates into the upstream codebase to extend functionality for users and projects relying on this library.
This change is part of the broader initiative referenced in ghostferry PR #384.