Skip to content

[Refactor](nereids) Abstract interface of statistics framework for new optimizer reuse - #10235

Closed
Kikyou1997 wants to merge 24 commits into
apache:masterfrom
Kikyou1997:statistics
Closed

[Refactor](nereids) Abstract interface of statistics framework for new optimizer reuse#10235
Kikyou1997 wants to merge 24 commits into
apache:masterfrom
Kikyou1997:statistics

Conversation

@Kikyou1997

Copy link
Copy Markdown
Contributor

Proposed changes

As the statistics framework could not reuse by new optmizer before, so I abstract some interface to make it reusable.

  1. Make Slot extends the Id
  2. Add new interface:ExprStats,PlanStats
  3. Move definition of PlanNode.NodeType to statistics sub-directory
  4. Rename nereids.operators.NodeType to PlanType to avoid unnecessary name confusing

Checklist(Required)

  1. Does it affect the original behavior: (No)
  2. Has unit tests been added: (No Need)
  3. Has document been added or modified: (No)
  4. Does it need to update dependencies: (No)
  5. Are there any changes that cannot be rolled back: (No)

Kikyou1997 added 24 commits May 26, 2022 13:23
2. remove the Analyzer from PlanContext.java
3. implement PlanTranslator::visitPhysicalFilter
2. modify the parameter of base visit method
3. rename the visitxxxNode parameter name to concrete plan
4. implement the accept method in the concrete physical node
5. modify the plan type of the parameter of Operator to base Plan
1. rename the org.apache.doris.nereids.trees.NodeType to org.apache.doris.nereids.trees.Operator
2. Move PlanNode.NodeType to org.apache.doris.statistics.NodeType
3. Abstract the code of statistics
@Kikyou1997 Kikyou1997 closed this Jun 17, 2022
@github-actions github-actions Bot added area/nereids area/planner Issues or PRs related to the query planner labels Jun 17, 2022
@Kikyou1997 Kikyou1997 reopened this Jun 17, 2022
@Kikyou1997 Kikyou1997 closed this Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/nereids area/planner Issues or PRs related to the query planner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant