GroupBy should terminate even if the last result is empty

This commit is contained in:
Kuba Podgórski 2020-04-27 12:43:15 +02:00
parent 72d5081a44
commit 06675c2f9c

View file

@ -3178,6 +3178,9 @@ func (gbi *groupByIterator) nextAtIdx(i int) {
}
if wrapped && i != 0 {
gbi.nextAtIdx(i - 1)
if gbi.done {
return
}
}
if i == 0 && gbi.filter != nil {
gbi.rows[i].row = nr.Intersect(gbi.filter)