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

Add support for ALTER INDEX statement #76

Merged
merged 2 commits into from
Oct 22, 2023

Conversation

toga4
Copy link
Contributor

@toga4 toga4 commented Oct 21, 2023

This PR adds support for ALTER INDEX statement.

@@ -292,6 +294,15 @@ func (ScalarSchemaType) isSchemaType() {}
func (SizedSchemaType) isSchemaType() {}
func (ArraySchemaType) isSchemaType() {}

// IndexAlternation represents ALTER INDEX action.
type IndexAlternation interface {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

While implementing this, I noticed that what might typically be named as Alteration is named as Alternation in the existing code. For consistency, I continued with the name Alternation in my changes. However, it might be worth reviewing this naming for clarity in future updates.

Copy link
Collaborator

Choose a reason for hiding this comment

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

It sounds good. I would like you to leave them as Alternation for now and fix them after merging this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, I'll raise another PR.

ast/ast.go Outdated Show resolved Hide resolved
ast/ast.go Outdated Show resolved Hide resolved
@makenowjust makenowjust merged commit 9bdd6e4 into cloudspannerecosystem:main Oct 22, 2023
1 check passed
@makenowjust
Copy link
Collaborator

@toga4 Thank you!!

@toga4 toga4 deleted the alter-index branch October 22, 2023 01:54
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.

2 participants