Skip to content

Commit

Permalink
executor: fix index_lookup_hash_join hang when used with limit (#35820)…
Browse files Browse the repository at this point in the history
… (#36099)

close #35638
  • Loading branch information
ti-srebot authored Jul 14, 2022
1 parent c35fa2e commit 221cb88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion executor/index_lookup_hash_join.go
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,10 @@ func (iw *indexHashJoinInnerWorker) handleTask(ctx context.Context, task *indexH
if task.keepOuterOrder {
if err != nil {
joinResult.err = err
resultCh <- joinResult
select {
case <-ctx.Done():
case resultCh <- joinResult:
}
}
close(resultCh)
}
Expand Down

0 comments on commit 221cb88

Please sign in to comment.