Skip to content

Commit

Permalink
executor: fix the projection upon the indexLookUp in indexLookUpJoin …
Browse files Browse the repository at this point in the history
…can't get result. (pingcap#12889)
  • Loading branch information
wshwsh12 authored and XiaTianliang committed Dec 21, 2019
1 parent e276219 commit d7414ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion executor/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -2231,7 +2231,7 @@ func (builder *dataReaderBuilder) buildProjectionForIndexJoin(ctx context.Contex
if int64(v.StatsCount()) < int64(builder.ctx.GetSessionVars().MaxChunkSize) {
e.numWorkers = 0
}
err = e.Open(ctx)
err = e.open(ctx)

return e, err
}
Expand Down
3 changes: 3 additions & 0 deletions executor/projection.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ func (e *ProjectionExec) Open(ctx context.Context) error {
if err := e.baseExecutor.Open(ctx); err != nil {
return err
}
return e.open(ctx)
}

func (e *ProjectionExec) open(ctx context.Context) error {
e.prepared = false
e.parentReqRows = int64(e.maxChunkSize)

Expand Down

0 comments on commit d7414ed

Please sign in to comment.