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

Incompatibilities: ALTER COLUMN with generated columns is not supported #95

Open
apstndb opened this issue Sep 12, 2024 · 0 comments
Open

Comments

@apstndb
Copy link
Contributor

apstndb commented Sep 12, 2024

This incompatibility is detected by #90.

Spec

It is not explicitly written in DDL reference, but it is supported with/without NOT NULL.
https://cloud.google.com/spanner/docs/generated-column/how-to#modify-generated-column

Reproducing input

ALTER TABLE T ALTER COLUMN expr INT64 NOT NULL AS (1) STORED;

Current error

syntax error:testdata/generated_column.test:6:48: expected token: <eof>, but: AS

  6:  ALTER TABLE T ALTER COLUMN expr INT64 NOT NULL AS (1) STORED;
                                                     ^~
@apstndb apstndb changed the title Incompatibilities: ALTER to NOT NULL is not supported Incompatibilities: ALTER COLUMN AS STORED / NOT NULL and is not supported Sep 12, 2024
@apstndb apstndb changed the title Incompatibilities: ALTER COLUMN AS STORED / NOT NULL and is not supported Incompatibilities: ALTER COLUMN NOT NULL is not supported Sep 12, 2024
@apstndb apstndb changed the title Incompatibilities: ALTER COLUMN NOT NULL is not supported Incompatibilities: ALTER COLUMN with generated columns is not supported Sep 12, 2024
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

No branches or pull requests

1 participant