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

expression: remove unnecessary warnings for AND/OR expressions | tidb-test=pr/2409 #56482

Merged
merged 5 commits into from
Oct 9, 2024

Conversation

gengliqi
Copy link
Contributor

@gengliqi gengliqi commented Oct 8, 2024

What problem does this PR solve?

Issue Number: close #56481

Problem Summary:
This PR is intended to fix the bug introduced by the fix PRs of #17725.
The unnecessary warnings appear when evaluating the first argument generates some warnings and evaluating the second argument generates errors or warnings.

What changed and how does it work?

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.

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

Signed-off-by: gengliqi <[email protected]>
u
Signed-off-by: gengliqi <[email protected]>
@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 8, 2024
Copy link

tiprow bot commented Oct 8, 2024

Hi @gengliqi. Thanks for your PR.

PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Signed-off-by: gengliqi <[email protected]>
@gengliqi gengliqi changed the title expression: remove unnecessary warnings for AND/OR expressions expression: remove unnecessary warnings for AND/OR expressions | tidb-test=pr/2409 Oct 8, 2024
Copy link

codecov bot commented Oct 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.3802%. Comparing base (df821b9) to head (850c96e).
Report is 8 commits behind head on master.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #56482        +/-   ##
================================================
+ Coverage   73.2357%   75.3802%   +2.1444%     
================================================
  Files          1626       1626                
  Lines        448692     449456       +764     
================================================
+ Hits         328603     338801     +10198     
+ Misses        99977      90110      -9867     
- Partials      20112      20545       +433     
Flag Coverage Δ
integration 48.8434% <100.0000%> (?)
unit 72.5006% <100.0000%> (+0.0604%) ⬆️

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

Components Coverage Δ
dumpling 52.9478% <ø> (ø)
parser ∅ <ø> (∅)
br 52.8980% <ø> (+7.4266%) ⬆️

@gengliqi
Copy link
Contributor Author

gengliqi commented Oct 8, 2024

/test mysql-test

Copy link

tiprow bot commented Oct 8, 2024

@gengliqi: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/test mysql-test

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Signed-off-by: gengliqi <[email protected]>
@gengliqi
Copy link
Contributor Author

gengliqi commented Oct 8, 2024

/retest

Copy link

tiprow bot commented Oct 8, 2024

@gengliqi: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copy link
Contributor

@windtalker windtalker 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 ti-chi-bot bot added approved needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Oct 9, 2024
Copy link
Contributor

@yibin87 yibin87 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

ti-chi-bot bot commented Oct 9, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: windtalker, yibin87

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 lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Oct 9, 2024
Copy link

ti-chi-bot bot commented Oct 9, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-10-09 01:29:26.798095798 +0000 UTC m=+1009522.218308802: ☑️ agreed by windtalker.
  • 2024-10-09 02:32:18.604618184 +0000 UTC m=+1013294.024831235: ☑️ agreed by yibin87.

@purelind
Copy link
Contributor

purelind commented Oct 9, 2024

Please wait for this PR #51126 to be merged first.

@gengliqi
Copy link
Contributor Author

gengliqi commented Oct 9, 2024

/test check-dev2

Copy link

tiprow bot commented Oct 9, 2024

@gengliqi: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/test check-dev2

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@gengliqi
Copy link
Contributor Author

gengliqi commented Oct 9, 2024

/test mysql-test

Copy link

tiprow bot commented Oct 9, 2024

@gengliqi: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/test mysql-test

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@gengliqi
Copy link
Contributor Author

gengliqi commented Oct 9, 2024

/test mysql-test

Copy link

tiprow bot commented Oct 9, 2024

@gengliqi: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/test mysql-test

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@gengliqi
Copy link
Contributor Author

gengliqi commented Oct 9, 2024

/retest

Copy link

tiprow bot commented Oct 9, 2024

@gengliqi: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ti-chi-bot ti-chi-bot bot merged commit 698f54f into pingcap:master Oct 9, 2024
21 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/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

expression: short-cut expressions may get more warnings than needed
4 participants