Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
qw4990 committed Mar 19, 2019
1 parent 6386c15 commit 3e9f945
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion executor/index_lookup_join.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,11 @@ func (ow *outerWorker) buildTask(ctx context.Context) (*lookUpJoinTask, error) {
task.memTracker.AttachTo(ow.parentMemTracker)

ow.increaseBatchSize()
task.outerResult.SetRequiredRows(ow.batchSize, ow.maxBatchSize)
if ow.lookup.isOuterJoin { // if is outerJoin, push the requiredRows down
requiredRows := int(atomic.LoadInt64(&ow.lookup.requiredRows))
task.outerResult.SetRequiredRows(requiredRows, ow.maxBatchSize)
} else {
task.outerResult.SetRequiredRows(ow.batchSize, ow.maxBatchSize)
}

task.memTracker.Consume(task.outerResult.MemoryUsage())
Expand Down

0 comments on commit 3e9f945

Please sign in to comment.