Skip to content

Commit

Permalink
fix error check
Browse files Browse the repository at this point in the history
  • Loading branch information
alivxxx committed Jan 3, 2019
1 parent 9736ba3 commit 3eca104
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion executor/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ func (e *WindowExec) Next(ctx context.Context, chk *chunk.Chunk) error {
}
chk.Reset()
if e.windowFunc.HasRemainingResults() {
e.appendResult2Chunk(chk)
err := e.appendResult2Chunk(chk)
if err != nil {
return err
}
}
for !e.executed && (chk.NumRows() == 0 || chk.RemainedRows(chk.NumCols()-1) > 0) {
err := e.consumeOneGroup(ctx, chk)
Expand Down

0 comments on commit 3eca104

Please sign in to comment.