-
Notifications
You must be signed in to change notification settings - Fork 756
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
[Tracking] Refactor SQL layer #1217
Comments
Maybe we will follow it: |
Yes, it's exactly what I mean. Most of the RDBMS basicly follows the architecture. The benefits are:
And the most important reason is, I'm familiar with this 🤣 . |
|
I've followed Andy's coureses for years. 15721 is a nice course which presents the latest academic results and industrial development every year. |
https://github.com/datafuselabs/databend/blob/main/website/databend/docs/dev/rfcs/query/0005-new-sql-planner-framework.md is 404 , @PsiACE could you update the latest rfc doc? |
Sure, please forward to https://databend.rs/doc/contributing/rfcs/new-sql-planner-framework |
Regarding determining the rules used by Operator, GPORCA's solution is to use bitmaps to manage Rules, and define a RuleFactory to manage all Rules in a unified manner. And classify Rule into Exploration and Implementation. Operator holds a bitmap of the rules that can be applied. When applying a rule, take the bitmap in Expression and all the bitmaps in RuleFactory and to determine the final applied rule, then traverse and apply the rule. After the Exploration stage is completed, all equivalent expressions are generated, and a new tree is generated with Pattern. Is this more efficient? I Translated GPORCA from C++ to Go,And IT works fine。
|
To build a robust SQL processing system, it's necessary to divide the components clearly. It is helpful to understand the code.
RFC: https://databend.rs/doc/contributing/rfcs/new-sql-planner-framework
Tracking issue for RFC: #1853
Tasks:
PlanBuilder
#1219The text was updated successfully, but these errors were encountered: