googlecodelabs / feedback

Provide feedback to our codelabs by filing an issue here
18 stars 22 forks source link

[cloud-spring-spanner]:alexismp Code model to ddl mapping error #850

Closed MMerzinger closed 1 year ago

MMerzinger commented 3 years ago

Hello everyone

The "Spring Boot application with Spanner" Codelab seems to have a mistake. (https://codelabs.developers.google.com/codelabs/cloud-spring-spanner#4)

The Order entity definition contains a field "timestamp", but in the ddl the field is called "creation_timestamp". This causes the following runtime error: io.grpc.StatusRuntimeException: NOT_FOUND: Column not found in table orders: timestamp resource_type: "spanner.googleapis.com/Column"

To fix this issue I had to rename the timestamp field of the Order entity to creation_timestamp and in the OrderController I had to rename the setter from setTimestamp to setCreation_timestamp.

Cheers Marc

meteatamel commented 1 year ago

Thanks for reporting. I went through the codelab and I didn't run into the issue. Please reopen if you think it's still an issue.