Skip to content

Commit

Permalink
planner: make code more debug friendly (#59216)
Browse files Browse the repository at this point in the history
ref #54401
  • Loading branch information
hawkingrei authored Jan 27, 2025
1 parent 0cede10 commit c329b22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/planner/core/operator/logicalop/logical_join.go
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,10 @@ func (p *LogicalJoin) pushDownConstExpr(expr expression.Expression, leftCond []e
func (p *LogicalJoin) extractOnCondition(conditions []expression.Expression, deriveLeft bool,
deriveRight bool) (eqCond []*expression.ScalarFunction, leftCond []expression.Expression,
rightCond []expression.Expression, otherCond []expression.Expression) {
return p.ExtractOnCondition(conditions, p.Children()[0].Schema(), p.Children()[1].Schema(), deriveLeft, deriveRight)
child := p.Children()
rightSchema := child[1].Schema()
leftSchema := child[0].Schema()
return p.ExtractOnCondition(conditions, leftSchema, rightSchema, deriveLeft, deriveRight)
}

// SetPreferredJoinTypeAndOrder sets the preferred join type and order for the LogicalJoin.
Expand Down

0 comments on commit c329b22

Please sign in to comment.