-
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 builtinDayNameSig
#12401
Conversation
/rebuild |
1 similar comment
/rebuild |
@b41sh Please resolve these conflicts. |
…tidb into vecexpr-builtinDayNameSig
/run-all-tests |
Codecov Report
@@ Coverage Diff @@
## master #12401 +/- ##
===========================================
Coverage 80.2106% 80.2106%
===========================================
Files 469 469
Lines 112616 112616
===========================================
Hits 90330 90330
Misses 15307 15307
Partials 6979 6979 |
/run-all-tests |
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
@@ -643,7 +643,7 @@ func genVecExprBenchCase(ctx sessionctx.Context, funcName string, testCase vecEx | |||
panic(err) | |||
} | |||
|
|||
output = chunk.New([]*types.FieldType{eType2FieldType(testCase.retEvalType)}, 1024, 1024) | |||
output = chunk.New([]*types.FieldType{eType2FieldType(expr.GetType().EvalType())}, 1024, 1024) |
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.
After investigating, we found this is the root cause resulting in the CI problem when setting the RetType
of DayName
to Int
or Real
.
The actual RetType
of this expr
has been modified to String
but we prepare an Int/Real
column to store its data, which causes panic when accessing Column.offset
.
Only in the test function TestVectorizedBuiltinTimeEvalOneVec
, the RetType
will be modified, while in another function TestVectorizedBuiltinTimeFunc
, the RetType
is still Int
, so these test cases whose RetType
is Int
or Real
work.
PTAL @SunRunAway
PTAL @SunRunAway |
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, WELL DONE!
Your auto merge job has been accepted, waiting for 13309, 13310, 13311 |
/run-all-tests |
What problem does this PR solve?
Implement vectorized evaluation for
builtinDayNameSig
.12106
What is changed and how it works?
Check List
Tests