mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
Merge pull request #300 from seebs/groupby
GroupBy should terminate even if the last result is empty
This commit is contained in:
commit
f8f924e972
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue