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

types, stmtctx, *: use ZeroDate, ZeroInDate and InvalidDate related flags to replace variable in statement context #47794

Merged
merged 5 commits into from
Oct 27, 2023

Conversation

YangKeao
Copy link
Member

What problem does this PR solve?

Issue Number: close #47508, close #47507

Problem Summary:

This PR replaces the field NoZeroDate, IgnoreZeroInDate and AllowInvalidDate to the flag in types context.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No need to test
    • I checked and no code files have been changed.

They are all covered by existing tests

@YangKeao YangKeao added the release-note-none Denotes a PR that doesn't merit a release note. label Oct 19, 2023
@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-triage-completed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Oct 19, 2023
@YangKeao
Copy link
Member Author

/check-issue-triage-complete

@codecov
Copy link

codecov bot commented Oct 19, 2023

Codecov Report

Merging #47794 (88b1348) into master (a7366f9) will increase coverage by 1.2505%.
Report is 12 commits behind head on master.
The diff coverage is 95.3168%.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #47794        +/-   ##
================================================
+ Coverage   71.7365%   72.9870%   +1.2505%     
================================================
  Files          1401       1424        +23     
  Lines        405704     413528      +7824     
================================================
+ Hits         291038     301822     +10784     
+ Misses        94917      92843      -2074     
+ Partials      19749      18863       -886     
Flag Coverage Δ
integration 42.2555% <64.6408%> (?)
unit 71.9112% <94.1989%> (+0.1747%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
dumpling 54.0503% <ø> (+0.0589%) ⬆️
parser ∅ <ø> (∅)
br 49.1772% <80.0000%> (-3.8718%) ⬇️

@YangKeao YangKeao force-pushed the fix-47508 branch 3 times, most recently from 9c03d83 to 0983af6 Compare October 20, 2023 06:32
@YangKeao YangKeao requested review from lcwangchao and xhebox October 20, 2023 06:52
@YangKeao
Copy link
Member Author

/retest

Signed-off-by: Yang Keao <yangkeao@chunibyo.icu>
Signed-off-by: Yang Keao <yangkeao@chunibyo.icu>
@YangKeao YangKeao force-pushed the fix-47508 branch 2 times, most recently from cdc8e4d to d794f57 Compare October 23, 2023 05:23
pkg/types/time.go Outdated Show resolved Hide resolved
@YangKeao YangKeao force-pushed the fix-47508 branch 2 times, most recently from 50c65f8 to c26c4f2 Compare October 23, 2023 07:07
Signed-off-by: Yang Keao <yangkeao@chunibyo.icu>
@YangKeao
Copy link
Member Author

/retest

@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Oct 23, 2023
Signed-off-by: Yang Keao <yangkeao@chunibyo.icu>
@ti-chi-bot ti-chi-bot bot added the lgtm label Oct 25, 2023
@ti-chi-bot ti-chi-bot bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Oct 25, 2023
@ti-chi-bot
Copy link

ti-chi-bot bot commented Oct 25, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-10-23 09:16:02.106616153 +0000 UTC m=+2253359.693726296: ☑️ agreed by xhebox.
  • 2023-10-25 09:25:29.028931499 +0000 UTC m=+2426726.616041645: ☑️ agreed by lcwangchao.

Signed-off-by: Yang Keao <yangkeao@chunibyo.icu>
@YangKeao YangKeao requested review from BornChanger, 3pointer and D3Hunter and removed request for BornChanger October 26, 2023 03:49
@YangKeao YangKeao requested a review from XuHuaiyu October 26, 2023 03:53
Copy link
Contributor

@D3Hunter D3Hunter left a comment

Choose a reason for hiding this comment

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

lightning/domain part lgtm

@YangKeao YangKeao requested a review from zanmato1984 October 26, 2023 07:13
Copy link
Contributor

@zanmato1984 zanmato1984 left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-chi-bot
Copy link

ti-chi-bot bot commented Oct 27, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 3pointer, D3Hunter, lcwangchao, xhebox, zanmato1984

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

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added the approved label Oct 27, 2023
@ti-chi-bot ti-chi-bot bot merged commit 6d64b7e into pingcap:master Oct 27, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
6 participants