-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
expression: fix Invalid JSONs #10510
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10510 +/- ##
===========================================
Coverage ? 79.5716%
===========================================
Files ? 415
Lines ? 88103
Branches ? 0
===========================================
Hits ? 70105
Misses ? 12805
Partials ? 5193 |
Thanks for contributing! |
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
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.
Is it possible to make the error message be more similar to MySQL?
ok, Let me try |
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
/run-all-tests |
Hi @b41sh Unfortunately a corner case is triggered in some TiDB internal tests: MySQL 5.7:
TiDB in this PR:
TiDB before this PR:
As is shown, there is another compatibility issue about JSON(possibly related to #9996) in TiDB. But it was hidden in previous tests because although the result was WRONG, no error was raised. I think we may: comment related test cases to make this PR merged firstly, or wait until the binary(or say, base64) related issue is solved. |
I marked 'DNM' temporarily before we make the decision. |
/run-all-tests |
Thanks for contributing! @b41sh |
What problem does this PR solve?
fix Invalid JSONs #10468
What is changed and how it works?
check json is valid before UnmarshalJSON
Check List
Tests