Skip to content

Commit

Permalink
Increment calc field index when it doesn't have value
Browse files Browse the repository at this point in the history
  • Loading branch information
xichen2020 committed Feb 1, 2019
1 parent 12d1911 commit bd2549d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storage/segment_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ func collectMultiFieldGroupByResults(
calcResults[i].Add(emptyValueUnion)
} else if !hasVals[calcFieldIdx] {
// The calculation field does not have value for this iteration.
calcFieldIdx++
continue
}
cv := toCalcValueFns[i](&calcVals[calcFieldIdx])
Expand Down

0 comments on commit bd2549d

Please sign in to comment.