-
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: add builtin function json_valid #12596
Conversation
json_valid
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.
Could you add some integration test and mysql-test?
Codecov Report
@@ Coverage Diff @@
## master #12596 +/- ##
================================================
- Coverage 79.8579% 79.8577% -0.0002%
================================================
Files 462 462
Lines 104865 104884 +19
================================================
+ Hits 83743 83758 +15
- Misses 14920 14930 +10
+ Partials 6202 6196 -6 |
@SunRunAway @zz-jason @qw4990 PTAL |
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.
after offline discussion with @Reminiscent, we decided to use 3 signatures to implement this function:
- json_valid for json input parameters
- json_valid for string input parameters
- json_valid for other type input parameters
/run-all-tests |
cherry pick to release-2.1 failed |
cherry pick to release-3.1 failed |
cherry pick to release-3.0 failed |
It seems that, not for sure, we failed to cherry-pick this commit to release-2.1 release-3.0. Please comment '/run-cherry-picker' to try to trigger the cherry-picker if we did fail to cherry-pick this commit before. @Reminiscent PTAL. |
/run-cherry-picker |
Signed-off-by: sre-bot <[email protected]>
What problem does this PR solve?
Add
json_valid
builtin function described #7546.What is changed and how it works?
See here for details.
Check List
Tests