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

cherrypick-1.1: sql: fix ALTER INDEX RENAME on primary index #24779

Merged
merged 1 commit into from Apr 18, 2018

Conversation

knz
Copy link
Contributor

@knz knz commented Apr 13, 2018

Picks #24776.

cc @cockroachdb/release

@knz knz requested review from vivekmenezes and a team April 13, 2018 11:32
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@knz knz force-pushed the 20180413-cherrypick-rename-pk branch from 96c1ea4 to d28983e Compare April 13, 2018 12:09
@bdarnell
Copy link
Member

:lgtm:


Review status: 0 of 3 files reviewed at latest revision, all discussions resolved.


pkg/sql/logictest/testdata/logic_test/rename_index, line 97 at r1 (raw file):

# Regression test for #24774
statement ok
ALTER INDEX users@"primary" RENAME TO pk

Ideally this test would verify that the statement has the desired effect, not just that it doesn't crash.


Comments from Reviewable

ALTER INDEX ... RENAME would crash if issued on the primary index.

Release note (bug fix): `ALTER INDEX ... RENAME` can now be used on
the primary index.
@knz knz force-pushed the 20180413-cherrypick-rename-pk branch from d28983e to 49b2637 Compare April 18, 2018 12:40
@knz
Copy link
Contributor Author

knz commented Apr 18, 2018

Review status: 0 of 3 files reviewed at latest revision, 1 unresolved discussion.


pkg/sql/logictest/testdata/logic_test/rename_index, line 97 at r1 (raw file):

Previously, bdarnell (Ben Darnell) wrote…

Ideally this test would verify that the statement has the desired effect, not just that it doesn't crash.

Done. I'll forward-port the additional test to the latest code.


Comments from Reviewable

@knz
Copy link
Contributor Author

knz commented Apr 18, 2018

bors r+

craig bot pushed a commit that referenced this pull request Apr 18, 2018
24779: cherrypick-1.1: sql: fix ALTER INDEX RENAME on primary index r=knz a=knz

Picks  #24776.

cc @cockroachdb/release 

Co-authored-by: Raphael 'kena' Poss <knz@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Apr 18, 2018

Build succeeded

@craig craig bot merged commit 49b2637 into cockroachdb:release-1.1 Apr 18, 2018
craig bot pushed a commit that referenced this pull request Apr 18, 2018
24899: sql: add a missing test for ALTER INDEX RENAME r=knz a=knz

Requested by @bdarnell in #24779 (comment).

Release note: None

24910: docs: Update show_ranges_stmt diagram r=rmloveland a=rmloveland

Release note: None

Co-authored-by: Raphael 'kena' Poss <knz@cockroachlabs.com>
Co-authored-by: Rich Loveland <rich@cockroachlabs.com>
@knz knz deleted the 20180413-cherrypick-rename-pk branch April 27, 2018 18:43
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