Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: yisaer <disxiaofei@163.com>
  • Loading branch information
Yisaer committed Dec 6, 2021
1 parent 9eb395f commit c432307
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion planner/core/rule_join_reorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,13 @@ func extractJoinAndDataSource(t *tracing.LogicalPlanTrace) *tracing.LogicalPlanT
return root
}

// simplify only keeps Proj and DataSource operators, and discard other operators.
func simplify(node *tracing.LogicalPlanTrace) {
if len(node.Children) < 1 {
return
}
for valid := true; !valid; valid = true {
for valid := true; !valid; {
valid = true
newChildren := make([]*tracing.LogicalPlanTrace, 0)
for _, child := range node.Children {
if child.TP != plancodec.TypeDataSource && child.TP != plancodec.TypeJoin {
Expand Down

0 comments on commit c432307

Please sign in to comment.