-
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: support builtin function json_contains #7443
Conversation
Thanks for your contribution, @mccxj ! |
pingcap/tipb#99 is merged, you can update the vendor now. @mccxj |
@jackysp PTAL |
/run-all-tests |
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
LGTM |
/run-unit-test |
return res, isNull, errors.Trace(err) | ||
} | ||
var pathExpr json.PathExpression | ||
if len(b.args) == 3 { |
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.
It better to write another function signature to handle the scenario that the third argument is provided.
What problem does this PR solve?
#7299
What is changed and how it works?
add builtin function json_contains according to https://dev.mysql.com/doc/refman/5.7/en/json-search-functions.html#function_json-contains
Check List
Tests
Code changes
add exported method PathExpression#ContainsAnyAsterisk()
Related changes
waiting for pingcap/tipb#99