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

Errors parsing JSON_VALUE #671

Open
kylechadha opened this issue Dec 13, 2021 · 1 comment
Open

Errors parsing JSON_VALUE #671

kylechadha opened this issue Dec 13, 2021 · 1 comment

Comments

@kylechadha
Copy link
Contributor

Describe the Bug
error: :3: got "(" while expecting ")" while parsing JSON_VALUE. This is an issue with the underlying Spanner parsing lib, which has been fixed in googleapis/google-cloud-go#5173

Steps to Reproduce
Attempt to run a migration with the following DDL:

ALTER TABLE products ADD COLUMN item STRING(MAX) AS (JSON_VALUE(itemDetails, '$.itemDetails')) STORED;

Expected Behavior
No errors.

Migrate Version
v4.5.1

Loaded Source Drivers
e.g. s3, github, go-bindata, gcs, file
Obtained by running: migrate -help

Loaded Database Drivers
github, github-ee, go-bindata, gcs, s3, bitbucket, gitlab, godoc-vfs, file

Go Version
go version go1.16.3 darwin/amd64

Stacktrace
N/A

Additional context
PR to fix: #669

@kylechadha
Copy link
Contributor Author

Linking PR: #669

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