Merge pull request #2111 from kuba--/fix-groupby-iter

GroupBy should terminate even if the last result is empty
This commit is contained in:
Kuba Podgórski 2020-04-29 16:07:39 +02:00 • committed by GitHub
commit 9426b9ee60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)