-
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
Rearrange logical optimizing rule #55231
Comments
Could you assign the |
welcome and thanks for participating, the checkbox is acked and it's assigned to you. basically from the workflow, you should add your idea first in the comment then file your pull request after we acked. "idea: after migrating the file, the function validCompareConstantPredicate is not valid anymore, it is refed by logical selection in the core pkg. I moved it into constant_propagation.go as in ruleutil for usage." anyway, for this one these changes look good to me. thx again. |
Regarding the my suggestion is as follows: After migrating, keep the functions Finally, rename the original file to |
We appreciate @qingfeng777's active contributions to TiDB, but we intend to reserve this issue for newcomers making their first contributions to TiDB, you are already admitted to TiDB contributors. Therefore, how about sparing some chances for the other enthusiasts? |
The last one is too easy, so I tried another one. Anyway, it's OK. |
Could you assign the |
Yes, Welcome. |
Thank you. |
I hope this message finds you well. I would like to take ownership of the task related to the My plan is to create a new file rule_topn_push_down.go in the planner/rule directory and move the PushDownTopNOptimizer along with the related functions (Optimize, pushDownTopNForBaseLogicalPlan, and Name) from planner/core to this new file. I would appreciate any suggestions or guidance you may have, as I want to ensure I follow the project's conventions correctly. Thank you for your support. |
@AilinKid @hawkingrei I'm sorry if this disturbed you. I'm writing to follow up on my previous comment regarding the rule_topn_push_down.go task, as it has been ten days since I expressed my interest. I'm commenting again,not as a complaint but as unsure whether the previous comment was seen. Thank you for your attention, and looking forward to your response. |
Enhancement
This is a special topic campaign about first-time contributions that are friendly for academic open-source credits, with no hard-core database logic inside. Still, it is a great window for stepping deep into the charm of TiDB optimizer. Here is an example, #55226, this pull request contain the interface refactoring, you should focus on the change of rule_build_key_info.go about moving and classifying current logical rules.
currently, tidb optimizing logical rules are put in the planner/core pkg with the prefix
rule_
, inside these files it may rely on logical operator pkg to do the type check and rule asserting. Some of it may have little coupling withplanner/core
pkg itselves. When we try to move and classify these rules intoplanner/rule
pkg, we should think twice about how to solve these back awards dependencies. The healthy pkg reference graph should be like below:some special cases'(complex rule file migrating) scope will become even bigger than the pictures show, you can contact me @AilinKid and @hawkingrei to talk about it.
You are appreciated for making a detailed description of what your pull request has done. Of course,
First Time Contributor
first time contributor with tag in your pull request like below
After it merged, you can reach @billmay for your souvenir
The text was updated successfully, but these errors were encountered: