Skip to content
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

Merged
merged 1 commit into from
Jun 16, 2021

Conversation

yuzefovich
Copy link
Member

@yuzefovich yuzefovich commented Jun 11, 2021

This commit adds vectorized casts from decimals to ints (of all widths)
and floats.

Addresses: #48135.

Release note: None

@yuzefovich yuzefovich requested review from michae2 and a team June 11, 2021 18:54
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@jordanlewis jordanlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 5 files at r1.
Reviewable status: :shipit: 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...

Copy link
Member

@jordanlewis jordanlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: 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
Copy link
Member Author

@yuzefovich yuzefovich left a 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: :shipit: 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 :)

@craig
Copy link
Contributor

craig bot commented Jun 16, 2021

Build succeeded:

@craig craig bot merged commit 0ba1894 into cockroachdb:master Jun 16, 2021
@yuzefovich yuzefovich deleted the vec-casts branch June 16, 2021 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants