GoogleCloudPlatform / GoogleCloudPlatform/spring-cloud-gcp

Spanner Does Not Ignore Generated Values

Open
#3,992 3 comments 0 reactions 0 assignees View on GitHub
priority: p3 type: bug
Dominant language
Java
Stars
551
Forks
349
Avg merge
1d 13h
Merged PRs (30d)
14

Description

**Describe the bug**

Hello,

I am using Spring Data Spanner 6.0.1. There are three members of an object I have, and one is auto generated by the database. I do not know how to ignore this. The error message is

```
FAILED_PRECONDITION: io.grpc.StatusRuntimeException: FAILED_PRECONDITION: Cannot write into generated column blah
```

The blah has been put in place of the actual column, there is not a typo or anything. If I remove this member it works, and if I include the member and just read from the database it works. There is not a mention in the docs of how to ignore. `@Transient` is not viable because it outright ignores for reads and writes.

Any assistance you have would be greatly appreciated!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.