sql: add ALTER INDEX … NOT VISIBLE to parser#85473
sql: add ALTER INDEX … NOT VISIBLE to parser#85473craig[bot] merged 1 commit intocockroachdb:masterfrom
Conversation
5d66fc0 to
144073e
Compare
816ef6c to
e624798
Compare
michae2
left a comment
There was a problem hiding this comment.
Reviewed 18 of 18 files at r9, all commit messages.
Reviewable status:complete! 1 of 0 LGTMs obtained (waiting on @mgartner and @wenyihu6)
pkg/sql/alter_index_visible.go line 28 at r9 (raw file):
// and expects to see its own writes. But I'm not certain since renameIndexNode // is also implementing this interface method. // func (n *alterIndexVisibleNode) ReadingOwnWrites() {}
It might be necessary for something like this to work:
BEGIN;
CREATE INDEX myidx ON t (a);
ALTER INDEX myidx NOT VISIBLE;
COMMIT;Or maybe something like this:
BEGIN;
ALTER INDEX myidx NOT VISIBLE;
ALTER INDEX myidx VISIBLE;
COMMIT;e624798 to
bccf1c3
Compare
bccf1c3 to
9e70cbd
Compare
This commit adds support to execute ALTER INDEX … [VISIBLE | NOT VISIBLE]. Assists: cockroachdb#72576 See also: cockroachdb#85473 Release note (sql change): Altering an index to visible or not visible using ALTER INDEX … VISIBLE | NOT VISIBLE is now supported.
3d2b05a to
4113a5f
Compare
This commit adds support to execute ALTER INDEX … [VISIBLE | NOT VISIBLE]. Assists: cockroachdb#72576 See also: cockroachdb#85473 Release note (sql change): Altering an index to visible or not visible using ALTER INDEX … VISIBLE | NOT VISIBLE is now supported.
|
Previously, michae2 (Michael Erickson) wrote…
Thank you! That makes sense. I found a bit more context here. I wasn't sure if ReadingOwnWrites refers to two statements within one transaction or reading what have been changed within one statement (for example, alter table can have a list of commands). Looks like it is the first one based on the comment here. |
4113a5f to
deefa79
Compare
|
Previously, postamar (Marius Posta) wrote…
Done. |
This commit adds support to execute ALTER INDEX … [VISIBLE | NOT VISIBLE]. Assists: cockroachdb#72576 See also: cockroachdb#85473 Release note (sql change): Altering an index to visible or not visible using ALTER INDEX … VISIBLE | NOT VISIBLE is now supported.
This commit adds parsing support for ALTER INDEX … [VISIBLE | NOT VISIBLE]. Executing the command returns an `unimplemented error`. Assists: cockroachdb#72576 See also: cockroachdb#85794 Release note (sql change): Parser now supports altering an index to visible or not visible. But no implementation has done yet, and executing it returns an “unimplemented” error immediately. # Conflicts: # pkg/sql/sem/tree/stmt.go
deefa79 to
70fa8cf
Compare
|
TFTRs!! bors r+ |
|
Build failed (retrying...): |
|
Build failed (retrying...): |
|
Build succeeded: |
This commit adds support to execute ALTER INDEX … [VISIBLE | NOT VISIBLE]. Fixes: cockroachdb#72576 See also: cockroachdb#85473 Release note (sql change): Altering an index to visible or not visible using ALTER INDEX … VISIBLE | NOT VISIBLE is now supported.
This commit adds parsing support for ALTER INDEX … [VISIBLE | NOT VISIBLE].
Executing the command returns an
unimplemented error.Assists: #72576
See also: #85794
Release note (sql change): Parser now supports altering an index to visible or
not visible. But no implementation has done yet, and executing it returns an
“unimplemented” error immediately.