Skip to content

Commit 8973831

Browse files
author
James Cor
committed
last attempt
1 parent e5f0ed0 commit 8973831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/analyzer/replace_sort.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func replaceIdxSortHelper(ctx *sql.Context, scope *plan.Scope, node sql.Node, so
162162
case *plan.JoinNode:
163163
// TODO: is this applicable to other types of joins?
164164
// as long as left child is already sorted and SortFields are a prefix, then it's ok?
165-
if !c.JoinType().IsMerge() {
165+
if c.JoinType() != plan.JoinTypeMerge {
166166
continue
167167
}
168168
// It's (probably) not possible to have Sort as child of Join without Subquery/SubqueryAlias,

0 commit comments

Comments
 (0)