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

exec: bail out on mixed type expressions #38816

Merged
merged 1 commit into from
Jul 11, 2019

Conversation

solongordon
Copy link
Contributor

Since our vectorized projection and selection operators currently only
handle homogeneous types, I added logic to the planner which detects
mixed types and errors out.

Fixes #38798

Release note: None

@solongordon solongordon requested review from jordanlewis, yuzefovich and a team July 11, 2019 15:29
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@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.

Nice! :lgtm:

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @jordanlewis and @solongordon)


pkg/sql/logictest/testdata/logic_test/vectorize, line 410 at r1 (raw file):

0.5

# Test mixed types comparison. (Should also fail back.)

@yuzefovich
Copy link
Member

Empty comment was: "[nit]: s/fail/fall/"

@asubiotto
Copy link
Contributor

Is it a question of templating mixed type projection/selection operators?

Copy link
Contributor Author

@solongordon solongordon left a comment

Choose a reason for hiding this comment

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

Is it a question of templating mixed type projection/selection operators?

Yes. Or perhaps we could support many of these cases by adding cast operators? In either case, it seems to me we can punt on this for 19.2.

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @jordanlewis and @yuzefovich)


pkg/sql/logictest/testdata/logic_test/vectorize, line 410 at r1 (raw file):

Previously, yuzefovich wrote…

Done.

Since our vectorized projection and selection operators currently only
handle homogeneous types, I added logic to the planner which detects
mixed types and errors out.

Fixes cockroachdb#38798

Release note: None
@solongordon
Copy link
Contributor Author

bors r+

craig bot pushed a commit that referenced this pull request Jul 11, 2019
38816: exec: bail out on mixed type expressions r=solongordon a=solongordon

Since our vectorized projection and selection operators currently only
handle homogeneous types, I added logic to the planner which detects
mixed types and errors out.

Fixes #38798

Release note: None

Co-authored-by: Solon Gordon <solon@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Jul 11, 2019

Build succeeded

@craig craig bot merged commit 908fe7b into cockroachdb:master Jul 11, 2019
@solongordon solongordon deleted the vec-type-errors branch July 11, 2019 20:23
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.

exec: integer division causes a panic
4 participants