Skip to content
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

copr: fix precision lost in json numeric comparsion (#8068) #8087

Merged
merged 3 commits into from Jun 18, 2020

Conversation

sre-bot
Copy link
Contributor

@sre-bot sre-bot commented Jun 12, 2020

cherry-pick #8068 to release-4.0


Signed-off-by: Iosmanthus Teng myosmanthustree@gmail.com

What problem does this PR solve?

Fix pingcap/tidb#16267 along with pingcap/tidb#17622

while comparing JSON numeric value, tikv/tidb used to convert them into the double type and then do the comparison which facing precision lost if the number is large enough and lead to unexpected comparsion result.

Check List

Tests

  • Unit test

Release note

  • fix precision lost in json numeric comparsion

Signed-off-by: sre-bot <sre-bot@pingcap.com>
@sre-bot
Copy link
Contributor Author

sre-bot commented Jun 12, 2020

/run-all-tests

@sre-bot sre-bot added sig/coprocessor SIG: Coprocessor type/cherry-pick Type: PR - Cherry pick labels Jun 12, 2020
@sre-bot sre-bot added this to the v4.0.1 milestone Jun 12, 2020
@breezewish
Copy link
Member

/run-all-tests

1 similar comment
@iosmanthus
Copy link
Member

/run-all-tests

@iosmanthus
Copy link
Member

/run-all-tests

@breezewish breezewish modified the milestones: v4.0.1, v4.0.2 Jun 15, 2020
@Connor1996 Connor1996 added the status/can-merge Status: Can merge to base branch label Jun 16, 2020
@ti-srebot
Copy link
Contributor

Sorry @Connor1996, you don't have permission to trigger auto merge event on this branch.

@Connor1996
Copy link
Member

/merge

@ti-srebot
Copy link
Contributor

Sorry @Connor1996, you don't have permission to trigger auto merge event on this branch.

@Connor1996
Copy link
Member

/merge

@ti-srebot
Copy link
Contributor

Your auto merge job has been accepted, waiting for:

  • 8101
  • 8050
  • 8050
  • 8029

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot
Copy link
Contributor

@sre-bot merge failed.

@Connor1996
Copy link
Member

/merge

@ti-srebot
Copy link
Contributor

Your auto merge job has been accepted, waiting for:

  • 7942
  • 8032

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot ti-srebot merged commit ddae99c into tikv:release-4.0 Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/coprocessor SIG: Coprocessor status/can-merge Status: Can merge to base branch type/cherry-pick Type: PR - Cherry pick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants