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

sql: backward compat for ALTER PARTITION OF TABLE #40650

Merged
merged 1 commit into from
Sep 11, 2019

Conversation

solongordon
Copy link
Contributor

When we made partition names index-scoped, we removed the ability to
specify secondary index partitions in the ALTER PARTITION ... OF TABLE
command. However I'm concerned this could break some backward
compatibility. I restored that behavior but added logic to throw an
error if there are multiple partitions with the same name.

Fixes #40425

Release note: None

@solongordon solongordon requested review from rohany and a team September 10, 2019 20:34
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@rohany rohany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. LGTM

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @rohany)

When we made partition names index-scoped, we removed the ability to
specify secondary index partitions in the ALTER PARTITION ... OF TABLE
command. However I'm concerned this could break some backward
compatibility. I restored that behavior but added logic to throw an
error if there are multiple partitions with the same name.

Fixes cockroachdb#40425

Release note: None
@solongordon
Copy link
Contributor Author

Release justification: Low-risk update to new functionality. This adds better backwards compatibility to functionality introduced in #39332.

@solongordon
Copy link
Contributor Author

bors r+

craig bot pushed a commit that referenced this pull request Sep 11, 2019
40650: sql: backward compat for ALTER PARTITION OF TABLE r=solongordon a=solongordon

When we made partition names index-scoped, we removed the ability to
specify secondary index partitions in the ALTER PARTITION ... OF TABLE
command. However I'm concerned this could break some backward
compatibility. I restored that behavior but added logic to throw an
error if there are multiple partitions with the same name.

Fixes #40425

Release note: None

Co-authored-by: Solon Gordon <solon@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Sep 11, 2019

Build succeeded

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.

sql: improve backward compatibility for ALTER PARTITION ... OF TABLE
3 participants