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

release-20.1: opt: fix bug in ExtractJoinEqualities rule #57536

Merged

Conversation

RaduBerinde
Copy link
Member

Backport 1/1 commits from #57524.

/cc @cockroachdb/release


If the join is semi/anti, this rule generates an incorrect projection
(which passes through columns not in input).

Similar to #57501. Other normalization rules prune the columns so this
doesn't lead to a bad outcome (at least in most cases).

I will add an assertion in CheckExpr for this condition in a separate
PR - without this fix, the assertion fires on an existing test.

Release note: None

If the join is semi/anti, this rule generates an incorrect projection
(which passes through columns not in input).

Similar to cockroachdb#57501. Other normalization rules prune the columns so this
doesn't lead to a bad outcome (at least in most cases).

I will add an assertion in CheckExpr for this condition in a separate
PR - without this fix, the assertion fires on an existing test.

Release note: None
@RaduBerinde RaduBerinde requested a review from mgartner December 4, 2020 03:56
@RaduBerinde RaduBerinde requested a review from a team as a code owner December 4, 2020 03:56
@cockroach-teamcity
Copy link
Member

This change is Reviewable

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

@RaduBerinde RaduBerinde merged commit f6b9b99 into cockroachdb:release-20.1 Dec 4, 2020
@RaduBerinde RaduBerinde deleted the backport20.1-57524 branch December 5, 2020 02:34
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