-
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:implement vectorized evaluation for builtinExtractDurationSig #13489
Conversation
Thanks for your contribution. If your PR get merged, you will be rewarded 50 points. |
cb5dc86
to
e393d76
Compare
Codecov Report
@@ Coverage Diff @@
## master #13489 +/- ##
===========================================
Coverage ? 80.3859%
===========================================
Files ? 474
Lines ? 117941
Branches ? 0
===========================================
Hits ? 94808
Misses ? 15706
Partials ? 7427 |
expression/builtin_time_vec.go
Outdated
} | ||
unitI := unit.GetString(i) | ||
duration.Duration = durIs[i] | ||
duration.Fsp = int8(types.UnspecifiedFsp) |
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.
It should be b.args[1].GetType().Decimal
.
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.
changed
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 noticed that while I use gofmt command,the ast.Now's test case changed its style.Is it ok?
@icditwang, please update your pull request. |
f9f7726
to
57c3d02
Compare
@qw4990 Anything need change in this pr? |
@icditwang, please update your pull request. |
1 similar comment
@icditwang, please update your pull request. |
expression/builtin_time_vec.go
Outdated
} | ||
unitI := unit.GetString(i) | ||
duration.Duration = durIs[i] | ||
duration.Fsp = int8(b.args[1].GetType().Decimal) |
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.
We can cache the result of int8(b.args[1].GetType().Decimal)
outside the for loop.
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, please address SunRunAway's comments.
fdd80dd
to
31870f2
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.
LGTM
/run-all-tests |
@icditwang merge failed. |
/run-integration-copr-test |
@icditwang complete task #12103 and get 50 score, currerent score 500. |
Congratulations, you get 500 score from easy level tasks in PCP-S1, and if your PRs in reviewed stage all got merged, the score will be 650, try some medium and hard tasks!(you can not reward from easy and vector tasks now) |
PCP #12103
What problem does this PR solve?
implement vectorized evaluation for builtinExtractDurationSig
What is changed and how it works?
Check List
Tests