Skip to content

expression: check if period is valid in period_add#10380

Merged
qw4990 merged 6 commits intopingcap:masterfrom
qw4990:fix-9736
May 9, 2019
Merged

expression: check if period is valid in period_add#10380
qw4990 merged 6 commits intopingcap:masterfrom
qw4990:fix-9736

Conversation

@qw4990
Copy link
Copy Markdown
Contributor

@qw4990 qw4990 commented May 7, 2019

What problem does this PR solve?

fix #9736.

What is changed and how it works?

add validPeriod.

Check List

Tests

  • Unit test

@sourcelliu
Copy link
Copy Markdown
Contributor

#10332 is the same question. @qw4990 @lonng

@qw4990
Copy link
Copy Markdown
Contributor Author

qw4990 commented May 7, 2019

#10332 is the same question. @qw4990 @lonng

Yes, it seems that #10332 can be fixed by this PR.

Comment thread expression/builtin_time.go Outdated
Copy link
Copy Markdown
Contributor

@alivxxx alivxxx left a comment

Choose a reason for hiding this comment

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

LGTM

@alivxxx alivxxx added the status/LGT1 Indicates that a PR has LGTM 1. label May 8, 2019
@qw4990 qw4990 requested a review from lonng May 8, 2019 05:45
Comment thread expression/builtin_time.go Outdated
Comment thread expression/builtin_time.go Outdated
@codecov
Copy link
Copy Markdown

codecov bot commented May 8, 2019

Codecov Report

Merging #10380 into master will increase coverage by 0.0008%.
The diff coverage is 100%.

@@               Coverage Diff                @@
##             master     #10380        +/-   ##
================================================
+ Coverage   77.3505%   77.3514%   +0.0008%     
================================================
  Files           412        412                
  Lines         85724      85692        -32     
================================================
- Hits          66308      66284        -24     
+ Misses        14387      14379         -8     
  Partials       5029       5029

@qw4990 qw4990 changed the title expression: fix issue that period_add is not compatible with MySQL expression: check if period is valid in period_add May 8, 2019
@qw4990
Copy link
Copy Markdown
Contributor Author

qw4990 commented May 9, 2019

PTAL

Copy link
Copy Markdown
Contributor

@XuHuaiyu XuHuaiyu left a comment

Choose a reason for hiding this comment

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

LGTM

XuHuaiyu
XuHuaiyu previously approved these changes May 9, 2019
@qw4990
Copy link
Copy Markdown
Contributor Author

qw4990 commented May 9, 2019

/run-all-tests

@qw4990
Copy link
Copy Markdown
Contributor Author

qw4990 commented May 9, 2019

/run-all-tests

@qw4990 qw4990 added status/all tests passed and removed status/LGT1 Indicates that a PR has LGTM 1. labels May 9, 2019
@qw4990 qw4990 added the status/LGT2 Indicates that a PR has LGTM 2. label May 9, 2019
@qw4990
Copy link
Copy Markdown
Contributor Author

qw4990 commented May 9, 2019

To solve the CI problem, I git rebase this PR to master without any change, so please help me to approve this PR again~ @lamxTyler @XuHuaiyu

@qw4990 qw4990 merged commit 37e8241 into pingcap:master May 9, 2019
qw4990 added a commit to qw4990/tidb that referenced this pull request May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/expression status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug. type/compatibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PERIOD_ADD is not compatible with Mysql

5 participants