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 panic caused by some DDL statements and CTEs #57952

Merged

Conversation

RaduBerinde
Copy link
Member

Backport 1/1 commits from #57927.

/cc @cockroachdb/release


This piece of code assumed that all MutationOps have a
MutationPrivate, which is not the case (only the DMLs have it). It
causes a panic if we try to derive WithUses.

Fixes #57821.

Release note (bug fix): fixed assertion error caused by some DDL
statements used in conjunction with common table expressions (WITH).

@RaduBerinde RaduBerinde requested a review from a team as a code owner December 15, 2020 17:08
@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 2 of 2 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

This piece of code assumed that all MutationOps have a
MutationPrivate, which is not the case (only the DMLs have it). It
causes a panic if we try to derive WithUses.

Fixes cockroachdb#57821.

Release note (bug fix): fixed assertion error caused by some DDL
statements used in conjunction with common table expressions (WITH).
@RaduBerinde RaduBerinde merged commit 840a21b into cockroachdb:release-20.1 Dec 15, 2020
@RaduBerinde RaduBerinde deleted the backport20.1-57927 branch December 15, 2020 19:35
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.

None yet

3 participants