Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

planner: fix NAME_CONST function compatibility #11241

Merged
merged 3 commits into from
Jul 16, 2019

Conversation

b41sh
Copy link
Member

@b41sh b41sh commented Jul 13, 2019

What problem does this PR solve?

fix NAME_CONST error in negative value

closes 11146

What is changed and how it works?

rewrite value check method

Check List

Tests

  • Unit test
  • Integration test

@codecov
Copy link

codecov bot commented Jul 13, 2019

Codecov Report

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

@@             Coverage Diff             @@
##             master     #11241   +/-   ##
===========================================
  Coverage   81.5069%   81.5069%           
===========================================
  Files           423        423           
  Lines         90883      90883           
===========================================
  Hits          74076      74076           
  Misses        11510      11510           
  Partials       5297       5297

@codecov
Copy link

codecov bot commented Jul 13, 2019

Codecov Report

Merging #11241 into master will decrease coverage by 0.3927%.
The diff coverage is 100%.

@@               Coverage Diff                @@
##             master     #11241        +/-   ##
================================================
- Coverage   81.6641%   81.2714%   -0.3928%     
================================================
  Files           423        423                
  Lines         91591      90103      -1488     
================================================
- Hits          74797      73228      -1569     
- Misses        11512      11580        +68     
- Partials       5282       5295        +13

@zz-jason zz-jason added sig/planner SIG: Planner contribution This PR is from a community contributor. labels Jul 13, 2019
@ngaut
Copy link
Member

ngaut commented Jul 13, 2019

/run-all-tests

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason zz-jason added status/LGT1 Indicates that a PR has LGTM 1. status/all tests passed labels Jul 15, 2019
@SunRunAway SunRunAway added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jul 16, 2019
@zz-jason zz-jason merged commit 7403ce3 into pingcap:master Jul 16, 2019
@SunRunAway
Copy link
Contributor

NAME_CONST is not implemented on release-2.1, so no need to cherry-pick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/expression contribution This PR is from a community contributor. sig/planner SIG: Planner status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't be negative the value of NAME_CONST.
5 participants