Merge pull request #300 from seebs/groupby

GroupBy should terminate even if the last result is empty
This commit is contained in:
seebs 2020-04-17 15:13:49 -05:00 committed by GitHub
commit f8f924e972
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4665,6 +4665,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)