Skip to content

Commit f30849b

Browse files
committed
Bug fix for initGroupBy
1 parent 30d68a1 commit f30849b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/planbuilder/scope.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ func (s *scope) initProc() {
224224
// initGroupBy creates a container scope for aggregation
225225
// functions and function inputs.
226226
func (s *scope) initGroupBy() {
227-
if s.groupBy != nil {
227+
if s.groupBy == nil {
228228
s.groupBy = &groupBy{outScope: s.replace()}
229229
}
230230
}

0 commit comments

Comments
 (0)