Skip to content

planner/core/logical_plan_test.go: add error check#24942

Merged
ti-chi-bot merged 4 commits into
pingcap:masterfrom
ClSlaid:water
May 27, 2021
Merged

planner/core/logical_plan_test.go: add error check#24942
ti-chi-bot merged 4 commits into
pingcap:masterfrom
ClSlaid:water

Conversation

@ClSlaid
Copy link
Copy Markdown
Contributor

@ClSlaid ClSlaid commented May 27, 2021

Signed-off-by: ClSlaid cailue@bupt.edu.cn

What problem does this PR solve?

fix make check.

Problem Summary:
an err was forgot to check, leading to a failure of make check.

What is changed and how it works?

What's Changed:

  • planner/core/logical_plan_test.go

How it Works:

  • add error check

Related changes

#24613

Check List

Tests

  • No code

Side effects
no side effects

Release note

  • fix make check.

Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
@ClSlaid ClSlaid requested a review from a team as a code owner May 27, 2021 14:00
@ClSlaid ClSlaid requested review from qw4990 and removed request for a team May 27, 2021 14:00
@ti-chi-bot ti-chi-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 27, 2021
Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label May 27, 2021
@ClSlaid
Copy link
Copy Markdown
Contributor Author

ClSlaid commented May 27, 2021

/run-check_dev_2

Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
@ClSlaid
Copy link
Copy Markdown
Contributor Author

ClSlaid commented May 27, 2021

/run-all-tests

Comment thread planner/core/logical_plan_test.go Outdated
Comment on lines +1311 to +1313
// to fix, Table 'test.ttt' doesn't exist
err = Preprocess(s.ctx, stmt, WithPreprocessorReturn(&PreprocessorReturn{InfoSchema: s.is}))
c.Assert(err, IsNil, comment)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This err seems to need a fix rather than simply think it's nil here. (see the comment)

@JmPotato
Copy link
Copy Markdown
Member

/lgtm cancel

@ti-chi-bot ti-chi-bot removed the status/LGT1 Indicates that a PR has LGTM 1. label May 27, 2021
@JmPotato
Copy link
Copy Markdown
Member

image

Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label May 27, 2021
@ti-chi-bot
Copy link
Copy Markdown
Member

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • JmPotato
  • nolouch

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Details

Reviewer can indicate their review by writing /lgtm in a comment.
Reviewer can cancel approval by writing /lgtm cancel in a comment.

@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels May 27, 2021
@nolouch
Copy link
Copy Markdown
Member

nolouch commented May 27, 2021

/merge

@ti-chi-bot
Copy link
Copy Markdown
Member

This pull request has been accepted and is ready to merge.

DetailsCommit hash: efbc39d

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label May 27, 2021
@ti-chi-bot ti-chi-bot merged commit 165c67f into pingcap:master May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants