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

colbuilder: support 'CASE expr WHEN exprs' form #63904

Merged
merged 1 commit into from
Apr 21, 2021

Conversation

yuzefovich
Copy link
Member

@yuzefovich yuzefovich commented Apr 20, 2021

Previously, we didn't support CASE expr WHEN exprs form of CASE
expression and had to fallback to row-by-row engine. This form requires
just another step of performing an equality comparison of expr
against the projection of the current WHEN arm to decide whether this
arm matched. This commit does so.

Release note: None

@yuzefovich yuzefovich requested review from jordanlewis and a team April 20, 2021 04:39
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Previously, we didn't support `CASE expr WHEN exprs` form of CASE
expression and had to fallback to row-by-row engine. This form requires
just another step of performing an equality comparison of `expr`
against the projection of the current WHEN arm to decide whether this
arm matched. This commit does so.

Release note: None
@yuzefovich yuzefovich changed the title colbuilder: support CASE expr WHEN exprs form colbuilder: support 'CASE expr WHEN exprs' form Apr 20, 2021
Copy link
Collaborator

@rytaft rytaft 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 2 of 2 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @jordanlewis)

@yuzefovich
Copy link
Member Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Apr 21, 2021

Build succeeded:

@craig craig bot merged commit 075aa5d into cockroachdb:master Apr 21, 2021
@yuzefovich yuzefovich deleted the case-expr branch April 21, 2021 15:50
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