Skip to content

executor: case refactor for point execution #12486

Merged
sre-bot merged 8 commits into
pingcap:masterfrom
cfzjywxk:caseRefPe
Sep 30, 2019
Merged

executor: case refactor for point execution #12486
sre-bot merged 8 commits into
pingcap:masterfrom
cfzjywxk:caseRefPe

Conversation

@cfzjywxk
Copy link
Copy Markdown
Contributor

@cfzjywxk cfzjywxk commented Sep 29, 2019

What problem does this PR solve?

former point execution case does not cover path completely, some incompatibilities are not raised until running benchmarks, refactor related unit tests.

What is changed and how it works?

Check List

Tests

  • Unit test

Code changes

Side effects

Related changes

Release note

  • Write release note for bug-fix or new feature.

@cfzjywxk cfzjywxk added status/WIP type/bugfix This PR fixes a bug. labels Sep 29, 2019
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 29, 2019

Codecov Report

Merging #12486 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #12486   +/-   ##
===========================================
  Coverage   79.8757%   79.8757%           
===========================================
  Files           460        460           
  Lines        102409     102409           
===========================================
  Hits          81800      81800           
  Misses        14691      14691           
  Partials       5918       5918

@cfzjywxk cfzjywxk added sig/execution SIG execution and removed status/WIP labels Sep 30, 2019
@cfzjywxk cfzjywxk requested a review from winoros September 30, 2019 02:44
@cfzjywxk
Copy link
Copy Markdown
Contributor Author

/run-all-tests

Comment thread planner/core/common_plans.go Outdated
// NewPlanBuilder creates a new PlanBuilder.
func NewPlanBuilder(sctx sessionctx.Context, is infoschema.InfoSchema, processor *BlockHintProcessor) *PlanBuilder {
sctx.GetSessionVars().PlannerSelectBlockAsName = make([]model.CIStr, processor.MaxSelectStmtOffset()+1)
if processor == nil {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a bug fix?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#12358 add a new feature to resolve column name, and this change need planBuilder to pass in valid hint processor. The earlier point execution optimization pass in nil hint processor and skip related logic, and the unit test case does not cover this path, so after #12358 merged, sysbench will panic. #12482 is already fixing this, this pull request make unit test cover these paths

Comment thread session/session.go Outdated
@cfzjywxk cfzjywxk requested review from coocood and jackysp September 30, 2019 06:09
@cfzjywxk
Copy link
Copy Markdown
Contributor Author

@coocood @winoros @jackysp can we merge this now so that benchmark will not be blocked again

@coocood
Copy link
Copy Markdown
Member

coocood commented Sep 30, 2019

LGTM

@coocood coocood added the status/LGT1 Indicates that a PR has LGTM 1. label Sep 30, 2019
Copy link
Copy Markdown
Member

@winoros winoros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Copy Markdown
Member

@winoros winoros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@coocood coocood added the status/can-merge Indicates a PR has been approved by a committer. label Sep 30, 2019
@sre-bot
Copy link
Copy Markdown
Contributor

sre-bot commented Sep 30, 2019

Your auto merge job has been accepted, waiting for 12496

@sre-bot
Copy link
Copy Markdown
Contributor

sre-bot commented Sep 30, 2019

/run-all-tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sig/execution SIG execution status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1. type/bugfix This PR fixes a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants