Open Jauny opened 2 years ago
Confirmed that it's a google spanner emulator issue -
@Jauny Could you reopen this issue? I think devs need to cut a new migrate release.
This issue is present on the latest release (4.15.1) which used an older spanner lib version, but it's fixed on master because the dependencies were updated.
5 months ago JSON support was added to spansql (https://github.com/googleapis/google-cloud-go/blame/main/spanner/spansql/parser.go#L1893, see blame)
Yes indeed I have cloned the repo and tested from master and indeed we need to cut a new release!
Describe the Bug Getting an error when trying to run a migration that creates a field with type
JSON
.Steps to Reproduce Steps to reproduce the behavior:
Expected Behavior We are using Spanner which accepts JSON as valid field type, so I expect the migration to be valid and run.
Migrate Version v4.15.1
Loaded Source Drivers e.g. s3, github, go-bindata, gcs, file Obtained by running:
migrate -help
Not explicitly using any except spanner
Go Version go version go1.17.6 darwin/amd64
Stacktrace n/a
Additional context Other migrations without JSON run smoothly up and down (thanks for the great tool!). I'm wondering if I have to do something special for JSON? Not even sure if that error message is coming from this tool or from the Spanner emulator actually :\ Sorry if I'm wasting anyone's time here.