-
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
add hint nth_plan
for plan test.
#893
Conversation
Codecov Report
@@ Coverage Diff @@
## master #893 +/- ##
==========================================
+ Coverage 78.30% 78.31% +0.01%
==========================================
Files 40 40
Lines 14716 14723 +7
==========================================
+ Hits 11524 11531 +7
Misses 2507 2507
Partials 685 685 |
/rebuild |
$$ = &ast.TableOptimizerHint{ | ||
HintName: model.NewCIStr($1), | ||
QBName: model.NewCIStr($3), | ||
HintData: int64($4), |
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.
what happens with NTH_PLAN(18446744073709551615)
?
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.
@kennytm The planner in TiDB will check the number x
given by the hint. An error will be given if x<-1
or x>100
.
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?
to pingcap/tidb#17580
What is changed and how it works?
Check List
Tests
Code changes
Side effects
Related changes