Skip to content

Commit

Permalink
rewrite comments
Browse files Browse the repository at this point in the history
  • Loading branch information
foreyes committed Jul 17, 2019
1 parent 943444a commit 41c1828
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions planner/core/logical_plan_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@ func (p *LogicalJoin) extractOnCondition(conditions []expression.Expression, der
return
}

// This function will return the table alias of a given logical plan.
// If there're multiple tables, it will return nil.
// This function will be further developed in the future.
// The table alias is only used to check if the logicalPlan match some
// optimizer hints. It will return nil when there are multiple table alias,
// because hints are not expected to take effect in this case.
func extractTableAlias(p LogicalPlan) *model.CIStr {
if p.Schema().Len() > 0 && p.Schema().Columns[0].TblName.L != "" {
tblName := p.Schema().Columns[0].TblName.L
Expand Down

0 comments on commit 41c1828

Please sign in to comment.