Skip to content

Commit

Permalink
optimizeFromBuiler, strings.Contains(ele.join.join, 'LEFT_JOIN')) (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
sim-wangyan committed Dec 13, 2023
1 parent af4c461 commit b9a90b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion from_builder_optimization.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (x *BuilderX) optimizeFromBuilder() {
if i == 0 {
return false
}
if ele.sub != nil && (ele.join != nil && !strings.Contains(ele.join.join, "LEFT")) {
if ele.sub != nil || (ele.join != nil && strings.Contains(ele.join.join, "LEFT")) {
return false
}
for _, u := range *useds {
Expand Down

0 comments on commit b9a90b7

Please sign in to comment.