-
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 'builtinCastDecimalAsJSONSig' #12803
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12803 +/- ##
================================================
- Coverage 80.3562% 80.0649% -0.2913%
================================================
Files 465 462 -3
Lines 108416 105874 -2542
================================================
- Hits 87119 84768 -2351
+ Misses 14945 14784 -161
+ Partials 6352 6322 -30 |
expression/builtin_cast_vec.go
Outdated
for i := 0; i < n; i++ { | ||
if buf.IsNull(i) { | ||
result.AppendJSON(json.BinaryJSON{}) | ||
result.SetNull(i, 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.
The JSON type is not fixed-length, although these code works fine for now,
I think we should call result.AppendNull
here.
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.
OK, I had changed 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 |
What problem does this PR solve?
Implement vectorized evaluation for builtinCastDecimalAsJSONSig, for #12104
What is changed and how it works?
Check List
Tests