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: another syntax hint for ALTER PARTITION #40812

Merged
merged 1 commit into from
Sep 18, 2019

Conversation

solongordon
Copy link
Contributor

If a user tries to specify an index in ALTER PARTITION ... OF TABLE,
they now receive a hint to use ALTER PARTITION ... OF INDEX instead.

I added similar logic recently but only for the index wildcard syntax,
@*.

Release justification: Low-risk error messaging improvement

Release note: None

If a user tries to specify an index in ALTER PARTITION ... OF TABLE,
they now receive a hint to use ALTER PARTITION ... OF INDEX instead.

I added similar logic recently but only for the index wildcard syntax,
<tablename>@*.

Release justification: Low-risk error messaging improvement

Release note: None
@solongordon
Copy link
Contributor Author

cc @awoods187

@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.

lgtm

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

@awoods187
Copy link
Contributor

awoods187 commented Sep 16, 2019 via email

@solongordon
Copy link
Contributor Author

bors r+

craig bot pushed a commit that referenced this pull request Sep 18, 2019
40812: sql: another syntax hint for ALTER PARTITION r=solongordon a=solongordon

If a user tries to specify an index in ALTER PARTITION ... OF TABLE,
they now receive a hint to use ALTER PARTITION ... OF INDEX instead.

I added similar logic recently but only for the index wildcard syntax,
<tablename>@*.

Release justification: Low-risk error messaging improvement

Release note: None

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

craig bot commented Sep 18, 2019

Build succeeded

@craig craig bot merged commit 1ca0625 into cockroachdb:master Sep 18, 2019
@solongordon solongordon deleted the alter-partition-error branch September 19, 2019 12:00
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.

4 participants