Skip to content

Module update needed (Cloud Spanner parsing issue) #767

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

Open
vgough opened this issue Jul 8, 2022 · 0 comments
Open

Module update needed (Cloud Spanner parsing issue) #767

vgough opened this issue Jul 8, 2022 · 0 comments

Comments

@vgough
Copy link

vgough commented Jul 8, 2022

Is your feature request related to a problem? Please describe.
Attempting to apply a migration to a Spanner DB which adds a stored column results in a parsing failure:

ALTER TABLE entities ADD COLUMN shard INT64 AS (MOD(FARM_FINGERPRINT(id), 128)) STORED;

result:
2022/07/08 12:24:08 error: :1.51: got "(" while expecting ")"

Describe the solution you'd like
Update the go modules, particular for cloud.google.com/go/spanner.

Checking out the source and running go mod update, gave me the follow update for spanner:

-       cloud.google.com/go/spanner v1.28.0
+       cloud.google.com/go/spanner v1.34.1

After that change, migrate is able to apply the migration without error.

Describe alternatives you've considered
Current workaround is to clone project and update dependencies locally.

Additional context

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