-
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 builtinWeekDaySig
#12667
Conversation
builtinWeekDaySig
support vectorized evaluationbuiltinWeekDaySig
support vectorized evaluation
Codecov Report
@@ Coverage Diff @@
## master #12667 +/- ##
===========================================
Coverage 80.0902% 80.0902%
===========================================
Files 465 465
Lines 107249 107249
===========================================
Hits 85896 85896
Misses 14944 14944
Partials 6409 6409 |
builtinWeekDaySig
support vectorized evaluationbuiltinWeekDaySig
bb50c1e
to
12ae08e
Compare
expression/builtin_time_vec.go
Outdated
i64s[i] = 0 | ||
continue |
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.
Should we set this row to null and use handleInvlaidTimeError
to handle this error in this case?
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.
you right, i see old implement also drop handleInvalidTimeError if date is zero, it is right to refer the implement of builtinDateSig?
expression/builtin_time_vec.go
Outdated
return err | ||
} | ||
defer b.bufAllocator.put(buf) | ||
if err := b.args[0].VecEvalTime(b.ctx, input, buf); err != nil { |
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.
s / err :=
/ err =
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.
fix it
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
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 |
@chacha923 merge failed. |
/run-unit-test |
@chacha923 Please sign the CLA license. |
What problem does this PR solve?
Implement vectorized evaluation for builtinWeekDaySig for #12103.
What is changed and how it works?
Check List
Tests
Unit test