-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
colexecbase: add casts from decimals to ints and floats #66379
Conversation
b5e7b19
to
c9bc7c9
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.
Reviewed 1 of 5 files at r1.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @michae2 and @yuzefovich)
pkg/sql/colexec/execgen/cmd/execgen/overloads_cast.go, line 176 at r1 (raw file):
// // NOTE: when updating the code below, make sure to update tree/casts.go // as well.
Blah, I wish we could find a way to avoid this duplication...
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.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @michae2 and @yuzefovich)
This commit adds vectorized casts from decimals to ints (of all widths) and floats. Release note: None
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 had to adjust recently merged logic test.
TFTR!
bors r+
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @jordanlewis and @michae2)
pkg/sql/colexec/execgen/cmd/execgen/overloads_cast.go, line 176 at r1 (raw file):
Previously, jordanlewis (Jordan Lewis) wrote…
Blah, I wish we could find a way to avoid this duplication...
I think we'll have to generate tree/casts.go
(or relevant parts of it) from a template too :)
Build succeeded: |
This commit adds vectorized casts from decimals to ints (of all widths)
and floats.
Addresses: #48135.
Release note: None