-
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
*: ignore unknown hint and return warning instead of return a parser error #8685
Conversation
/run-all-tests |
/run-unit-test |
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 |
/run-all-tests |
/run-unit-test |
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.
Do we need to add an integration test here?
/run-all-tests |
/run-unit-test |
@XuHuaiyu commet addressed PTAL if free thx~ |
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 |
/run-unit-test |
2 similar comments
/run-unit-test |
/run-unit-test |
What problem does this PR solve?
using pingcap/parser#80 parser
Current, when we meet unknow hint token whole sql will be failure.
This PR will ignore whole hint when meet unknow token and run without hint, so we can compatible to SQL that generate by tool and target to other database.
What is changed and how it works?
use new parser that ignore hint parser error
Check List
Tests
Code changes
Side effects
Related changes
This change is