We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, According to documentation, the ALTER INDEX statement should follow this example:
ALTER INDEX index_name {ADD|DROP} STORED COLUMN column_name
Reference: https://cloud.google.com/spanner/docs/secondary-indexes#googlesql_5
That said, while trying out the parser in the following piece of code
String query = <My script>; LanguageOptions languageOptions = new LanguageOptions(); ASTNodes.ASTScript parsedScript = Parser.parseScript(query, languageOptions);
I found that:
query
ALTER INDEX i1 DROP STORED COLUMN author;
The Parser returns: Unexpected keyword STORED [at 1:21]
Unexpected keyword STORED [at 1:21]
ALTER INDEX i1 DROP COLUMN author;
The Parser returns: ALTER INDEX is not supported [at 1:7]
ALTER INDEX is not supported [at 1:7]
ALTER INDEX i1 ADD COLUMN author;
The Parser returns: Unexpected ";" [at 1:33]
Unexpected ";" [at 1:33]
ALTER INDEX i1 ADD STORED COLUMN author;
The Parser returns: Unexpected keyword STORED [at 1:20]
Unexpected keyword STORED [at 1:20]
I was wondering if this was the expected result and if ALTER INDEX will be supported in the future. Thanks
ALTER INDEX
The text was updated successfully, but these errors were encountered:
It seems that FEATURE_SPANNER_LEGACY_DDL has not been updated in a long time, and DDL of ZetaSQL and Cloud Spanner has no clear plan to be compatible.
FEATURE_SPANNER_LEGACY_DDL
Cloud Spanner Emulator have the its own DDL parser, but it is not exported.
Sorry, something went wrong.
No branches or pull requests
Hello,
According to documentation, the ALTER INDEX statement should follow this example:
Reference: https://cloud.google.com/spanner/docs/secondary-indexes#googlesql_5
That said, while trying out the parser in the following piece of code
I found that:
query
was:The Parser returns:
Unexpected keyword STORED [at 1:21]
query
was:The Parser returns:
ALTER INDEX is not supported [at 1:7]
query
was:The Parser returns:
Unexpected ";" [at 1:33]
query
was:The Parser returns:
Unexpected keyword STORED [at 1:20]
I was wondering if this was the expected result and if
ALTER INDEX
will be supported in the future.Thanks
The text was updated successfully, but these errors were encountered: