-
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
planner: rename optimizer hints #11673
Conversation
b832063
to
d668790
Compare
Codecov Report
@@ Coverage Diff @@
## master #11673 +/- ##
================================================
- Coverage 81.4841% 81.4003% -0.0838%
================================================
Files 433 433
Lines 93525 93190 -335
================================================
- Hits 76208 75857 -351
- Misses 11881 11890 +9
- Partials 5436 5443 +7 |
Idc fails because use |
PTAL. @lzmhhh123 @lamxTyler @XuHuaiyu |
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 |
e08391d
to
720d9d3
Compare
/run-all-tests |
27d96ce
to
f69753e
Compare
/run-all-tests |
The solution of |
Ready for review, PTAL. @lzmhhh123 |
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 also need to check the ineffective hints like use_index_merge
and append a warning for it?
I think so, I will file an issue for it, like #11632 @lzmhhh123 Extract common warning message. |
PTAL again. Just change some warning messages. @lamxTyler |
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-test |
/run-all-tests |
/run-ci-test |
/run-all-tests |
@foreyes merge failed. |
/run-unit-test |
1 similar comment
/run-unit-test |
What problem does this PR solve?
Support optimizer hint alias
HASH_JOIN: TIDB_HJ
,SM_JOIN: TIDB_SMJ
,INL_JOIN: TIDB_INLJ
.Rename optimizer hints
TIDB_HASHAGG() -> HASH_AGG
,TIDB_STREAMAGG() -> STREAM_AGG
, and remove brackets.What is changed and how it works?
Add
HintHJ
,HintSMJ
,HintINLJ
have the same effect asTIDB
hints.We still keep TIDB style hints, for example,
TIDB_HJ
will have the same HintName asHASH_JOIN
now.Rename aggregation hints in parser and TiDB.
Check List
Tests
Code changes
Related changes