Skip to content

Commit

Permalink
fix code review
Browse files Browse the repository at this point in the history
  • Loading branch information
csynineyang committed Jul 18, 2024
1 parent 95fd098 commit 904ce32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/dataset/sort_merge_join.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ func NewSortMergeJoin(joinType ast.JoinType, joinColumn *JoinColumn, outer proto
return nil, errors.WithStack(err)
}

fields := make([]proto.Field, 0, len(outerFields)+len(innerFields))
copy(fields, innerFields)
copy(fields[len(innerFields):], outerFields)
var fields []proto.Field
fields = append(fields, innerFields...)
fields = append(fields, outerFields...)

if joinType == ast.RightJoin {
outer, inner = inner, outer
Expand Down

0 comments on commit 904ce32

Please sign in to comment.