-
Notifications
You must be signed in to change notification settings - Fork 490
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
parser: fix hint parsing in select /*+ max_execution_time */ 1
#366
Conversation
Codecov Report
@@ Coverage Diff @@
## master #366 +/- ##
=======================================
Coverage 50.51% 50.51%
=======================================
Files 31 31
Lines 6909 6909
=======================================
Hits 3490 3490
Misses 3060 3060
Partials 359 359
Continue to review full report at Codecov.
|
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.
LGTM
What problem does this PR solve?
In this query,
SELECT /*+ MAX_EXECUTION_TIME(1000) */ 1
, theMAX_EXECUTION_TIME
hint is not saved tost.TableHints
pingcap/tidb#10955 is caused by this bug.
What is changed and how it works?
Move this line
to
SelectStmtBasic
will address the problem.Check List
Tests
Related changes