Skip to content

expression: fix week func format#9685

Merged
imtbkcat merged 11 commits intopingcap:masterfrom
glock42:fix-week-format-issure
Mar 13, 2019
Merged

expression: fix week func format#9685
imtbkcat merged 11 commits intopingcap:masterfrom
glock42:fix-week-format-issure

Conversation

@glock42
Copy link
Copy Markdown
Contributor

@glock42 glock42 commented Mar 12, 2019

What problem does this PR solve?

Fix the problem that the variable default_week_format doesn't work.

fix #9669

What is changed and how it works?

Use the SystemVar DefaultWeekFormat to invoke the Week function.

Check List

Tests

  • Unit test
  • Integration test

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 12, 2019

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 12, 2019

Codecov Report

Merging #9685 into master will decrease coverage by 0.0021%.
The diff coverage is 77.7777%.

@@               Coverage Diff               @@
##            master      #9685        +/-   ##
===============================================
- Coverage   67.375%   67.3728%   -0.0022%     
===============================================
  Files          377        377                
  Lines        79384      79391         +7     
===============================================
+ Hits         53485      53488         +3     
- Misses       21123      21125         +2     
- Partials      4776       4778         +2

Copy link
Copy Markdown
Contributor

@xiekeyi98 xiekeyi98 left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution!
Would you mind adding some unit tests to catch this issue?

@glock42
Copy link
Copy Markdown
Contributor Author

glock42 commented Mar 13, 2019

@xiekeyi98 Already added.

@xiekeyi98
Copy link
Copy Markdown
Contributor

/run-all-tests

Copy link
Copy Markdown
Contributor

@xiekeyi98 xiekeyi98 left a comment

Choose a reason for hiding this comment

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

LGTM

@xiekeyi98 xiekeyi98 changed the title fix week func format issure9669 expression: fix week func format Mar 13, 2019
@xiekeyi98 xiekeyi98 added status/LGT1 Indicates that a PR has LGTM 1. contribution This PR is from a community contributor. component/expression labels Mar 13, 2019
Comment thread expression/builtin_time.go Outdated
@glock42
Copy link
Copy Markdown
Contributor Author

glock42 commented Mar 13, 2019

@imtbkcat PTAL.

Copy link
Copy Markdown

@imtbkcat imtbkcat left a comment

Choose a reason for hiding this comment

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

LGTM

@imtbkcat
Copy link
Copy Markdown

/run-all-tests

@imtbkcat imtbkcat merged commit 133a1ee into pingcap:master Mar 13, 2019
@qw4990
Copy link
Copy Markdown
Contributor

qw4990 commented Mar 15, 2019

@zyycj Thanks for your contribution.
Could you please cherry-pick this PR into branch release-2.1?

glock42 added a commit to glock42/tidb that referenced this pull request Mar 15, 2019
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. status/LGT1 Indicates that a PR has LGTM 1.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Variable default_week_format doesn't work

5 participants