-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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: use flags in types package to handle clip zero case #47543
Conversation
/run-check-issue-triage-complete |
1a5c268
to
ca41ccd
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #47543 +/- ##
================================================
+ Coverage 71.8537% 72.7911% +0.9374%
================================================
Files 1398 1421 +23
Lines 405209 411591 +6382
================================================
+ Hits 291158 299602 +8444
+ Misses 94396 93143 -1253
+ Partials 19655 18846 -809
Flags with carried forward coverage won't be shown. Click here to find out more.
|
48c0251
to
e92ff59
Compare
e92ff59
to
7f0d336
Compare
62829c0
to
287b2ae
Compare
/retest tiprow_fast_test |
@lcwangchao: The
The following commands are available to trigger optional jobs:
Use
In response to this:
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/test-infra repository. |
@lcwangchao: The
Use In response to this:
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/test-infra repository. |
f1bd2c8
to
19d0bef
Compare
19d0bef
to
09f9fa5
Compare
09f9fa5
to
d942a33
Compare
/retest |
8a86f34
to
be6834f
Compare
be6834f
to
b84d8f0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM
tz := *time.UTC | ||
sessCtx.GetSessionVars().StmtCtx.SetTimeZone(&tz) | ||
} | ||
sessCtx.GetSessionVars().StmtCtx.IsDDLJobInQueue = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change expected? Though it seems that it's only used in pkg/executor/ddl.go
🤔 .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think IsDDLJobInQueue
is used to make ShouldClipToZeror
in the previous code. The verify CI passed after removing it.. @tangenta PTAL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC, pkg/executor/ddl.go
is not related with pkg/ddl/backfilling_scheduler.go
🤔 , so it seems fine for this case.
/test check-dev2 |
@lcwangchao: The specified target(s) for
Use In response to this:
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/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lance6716, XuHuaiyu, YangKeao 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 |
What problem does this PR solve?
Issue Number: close #47518
What is changed and how it works?
This is one of the PR for code refactor, see: #47355
We use
FlagClipNegativeToZero
to indicate whether to clip the negative value to zero when casting the negative number to be unsigned.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.