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

opt: fix incorrect empty key for full outer join #44156

Merged
merged 1 commit into from Jan 22, 2020

Conversation

RaduBerinde
Copy link
Member

When joining two single-row expressions, the cross product has an
empty key, but the outer join does not. We need to remove the key in
this case.

Fixes #44029.

Release note (bug fix): fixed planning bug related to FULL joins
between single-row relations.

When joining two single-row expressions, the cross product has an
empty key, but the outer join does not. We need to remove the key in
this case.

Fixes cockroachdb#44029.

Release note (bug fix): fixed planning bug related to FULL joins
between single-row relations.
@RaduBerinde RaduBerinde requested a review from a team as a code owner January 21, 2020 14:02
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@andy-kimball andy-kimball 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 @andy-kimball)

@RaduBerinde
Copy link
Member Author

bors r+

craig bot pushed a commit that referenced this pull request Jan 22, 2020
44156: opt: fix incorrect empty key for full outer join r=RaduBerinde a=RaduBerinde

When joining two single-row expressions, the cross product has an
empty key, but the outer join does not. We need to remove the key in
this case.

Fixes #44029.

Release note (bug fix): fixed planning bug related to FULL joins
between single-row relations.

Co-authored-by: Radu Berinde <radu@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Jan 22, 2020

Build succeeded

@craig craig bot merged commit 7387d89 into cockroachdb:master Jan 22, 2020
@RaduBerinde RaduBerinde deleted the key-full-outer branch January 25, 2020 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sql: incorrect output with FULL JOIN, order changes with selected columns
3 participants