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: fix type schema for LEFT SEMI and LEFT ANTI joins #48659

Merged
merged 1 commit into from
May 12, 2020

Conversation

yuzefovich
Copy link
Member

LEFT SEMI and LEFT ANTI joins output only all the columns from the left,
however, we mistakenly put the columns from the right into
result.ColumnTypes.

Fixes: #48622.

Release note (bug fix): Previously, CockroachDB could encounter an
internal error when a query with LEFT SEMI or LEFT ANTI join was
performed via the vectorized execution engine in some cases, and now
this has been fixed. This is likely to occur only with vectorize=on
setting.

@yuzefovich yuzefovich requested review from asubiotto and a team May 10, 2020 05:33
@cockroach-teamcity
Copy link
Member

This change is Reviewable

LEFT SEMI and LEFT ANTI joins output only all the columns from the left,
however, we mistakenly put the columns from the right into
`result.ColumnTypes`.

Release note (bug fix): Previously, CockroachDB could encounter an
internal error when a query with LEFT SEMI or LEFT ANTI join was
performed via the vectorized execution engine in some cases, and now
this has been fixed. This is likely to occur only with `vectorize=on`
setting.
@cockroachdb cockroachdb deleted a comment from blathers-crl bot May 10, 2020
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:

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

@yuzefovich
Copy link
Member Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented May 12, 2020

Merge conflict (retrying...)

@craig
Copy link
Contributor

craig bot commented May 12, 2020

Build failed (retrying...)

craig bot pushed a commit that referenced this pull request May 12, 2020
48552: geo/geomfn: implement ST_Relate and ST_ContainsProperly r=sumeerbhola a=otan

Commit on top of #48522.

Added ST_ContainsProperly to the optimizer as well that calls it to use
Covers.

Also update the RFC to claim ST_ContainsProperly as indexed backed.

Release note (sql change): Implemented the geometry based builtins
`ST_Relate` and `ST_ContainsProperly`.

48659: colexec: fix type schema for LEFT SEMI and LEFT ANTI joins r=yuzefovich a=yuzefovich

LEFT SEMI and LEFT ANTI joins output only all the columns from the left,
however, we mistakenly put the columns from the right into
`result.ColumnTypes`.

Fixes: #48622.

Release note (bug fix): Previously, CockroachDB could encounter an
internal error when a query with LEFT SEMI or LEFT ANTI join was
performed via the vectorized execution engine in some cases, and now
this has been fixed. This is likely to occur only with `vectorize=on`
setting.

Co-authored-by: Oliver Tan <[email protected]>
Co-authored-by: Yahor Yuzefovich <[email protected]>
@craig
Copy link
Contributor

craig bot commented May 12, 2020

Build failed (retrying...)

@yuzefovich
Copy link
Member Author

bors r+

@craig
Copy link
Contributor

craig bot commented May 12, 2020

Build succeeded

@craig craig bot merged commit 12696df into cockroachdb:master May 12, 2020
@yuzefovich yuzefovich deleted the fix-left-joins branch May 12, 2020 22:04
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.

colexec: messed up batch type schema (probably with CASE operator - the implementation of OR)
3 participants