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

colexec: reject CASE operator with Bytes output type #44660

Merged
merged 1 commit into from Feb 4, 2020

Conversation

yuzefovich
Copy link
Member

Currently, there is a contradiction between the way CASE operator
works (which populates its output in arbitrary order) and the flat
bytes implementation of Bytes type (which prohibits sets in arbitrary
order), so we reject such scenario to fall back to row-by-row engine.

Fixes: #44624.

Release note: None

@yuzefovich yuzefovich requested review from asubiotto and a team February 3, 2020 22:01
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@yuzefovich
Copy link
Member Author

Using Bytes.Copy method is not an option because it doesn't support selection vectors (and SelOnDest as well), so I think we should reject such scenario for now.

Currently, there is a contradiction between the way CASE operator
works (which populates its output in arbitrary order) and the flat
bytes implementation of Bytes type (which prohibits sets in arbitrary
order), so we reject such scenario to fall back to row-by-row engine.

Release note: None
Copy link
Contributor

@asubiotto asubiotto left a comment

Choose a reason for hiding this comment

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

:lgtm: Let's create an issue to track this

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@yuzefovich
Copy link
Member Author

Done.

TFTR!

bors r+

craig bot pushed a commit that referenced this pull request Feb 4, 2020
44564: colexec: clean up memory infra on panic in NewColOperator r=yuzefovich a=yuzefovich

It is possible that an unexpected error occurs during NewColOperator
call after we have created some memory monitoring infrastructure. In
order to correctly clean up the infra in such scenario we will now have
a separate panic catcher that closes the infra within NewColOperator.
We will also now clean up the infra when an error occurs.

Release note: None

44615: storage: remove preemptive snapshots r=tbg a=ajwerner

This commit adds a migration to remove any remaining on-disk pre-emptive
snapshots and then excises the concept from the codebase.

There's some cruft in replica_init that I'd love to clean up but don't
have a clear vision of how.

Release note: None

44660: colexec: reject CASE operator with Bytes output type r=yuzefovich a=yuzefovich

Currently, there is a contradiction between the way CASE operator
works (which populates its output in arbitrary order) and the flat
bytes implementation of Bytes type (which prohibits sets in arbitrary
order), so we reject such scenario to fall back to row-by-row engine.

Fixes: #44624.

Release note: None

44687: cli: add system.namespace_deprecated to debug zip r=knz a=otan

As we are migrating system.namespace from system.namespace_deprecated in
20.2, it may be useful to have a zip of this old table, in case it comes
in handy for debugging in future.

Release note: None

Co-authored-by: Yahor Yuzefovich <yahor@cockroachlabs.com>
Co-authored-by: Andrew Werner <ajwerner@cockroachlabs.com>
Co-authored-by: Oliver Tan <otan@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Feb 4, 2020

Build succeeded

@craig craig bot merged commit 4395fb8 into cockroachdb:master Feb 4, 2020
@yuzefovich yuzefovich deleted the vec-fix-case-bytes branch February 4, 2020 19:27
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.

Complex ORDER BY clause results in internal error with VECTORIZE=experimental_on
3 participants