-
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
expression: separated arithmeticMinusIntSig #22163
base: master
Are you sure you want to change the base?
Conversation
a49a241
to
70e7d28
Compare
/run-all-tests |
/run-all-tests |
/run-tics-test |
Not sure what's wrong in tics-test, it suggets /cc @breeswish @XuHuaiyu could you please take a look at this, btw is tics-test available to run in local dev environment? |
/run-all-tests |
Depends on TiFlash to implement push down func |
Thanks for the remind. Let's wait TiFlash to implement these separated signatures first. |
Hi, considering that this PR mainly contains two parts:
Could you first open a PR to fix bugs? I think this can be merged pretty quickly, since it doesn't need to wait TiFlash. |
Here's the bug-fixing PR(#22426). |
@Tjianke: PR needs rebase. 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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #22163 +/- ##
================================================
- Coverage 77.1165% 77.0910% -0.0255%
================================================
Files 573 573
Lines 146429 146598 +169
================================================
+ Hits 112921 113014 +93
- Misses 23347 23391 +44
- Partials 10161 10193 +32 |
What problem does this PR solve?
Issue Number:
Problem Summary:
ArithmeticMinusIntSig
at planning stage will be more efficient then current statusWhat is changed and how it works?
What's Changed:
NO_UNSIGNED_SUBTRACTION
)tipb
dependency to introduce new func signaturesarithmeticMinusInt
, making it much more easier to add unit testsHow it Works:
func (c *arithmeticMinusFunctionClass) getFunction(ctx sessionctx.Context, args)
, introduced 7 new func sig.a < 0 || uint64(a) < uint64(b)
uint64(a) > uint64(b)
(b < 0 && uint64(a) > math.MaxUint64-uint64(-b)) || (b >= 0 && uint64(a) < uint64(b))
NO_UNSIGNED_SUBTRACTION
mode is set or not)(lh >= 0 && rh == math.MinInt64) || (lh > 0 && -rh > math.MaxInt64-lh) || (lh < 0 && -rh < math.MinInt64-lh)
(a > 0 && -b > math.MaxInt64-a) || (a < 0 && -b < math.MinInt64-a)
(a > 0 && -b > math.MaxInt64-a) || (a < 0 && -b < math.MinInt64-a)
(a > 0 && -b > math.MaxInt64-a) || (a < 0 && -b < math.MinInt64-a)
Check List
Tests
Release note
MinusIntSig