googleapis / googleapis/google-cloud-go

spanner: documentation for update mutation does not include the requirement to include the PK value

Open
#7,092 0 comments 0 reactions 1 assignee Claimed by @rahul2393 View on GitHub
api: spanner priority: p3 type: docs
Dominant language
Go
Stars
4.5k
Forks
1.6k
Avg merge
1d 13h
Merged PRs (30d)
109

Description

The documentation for mutations does not explicitly state that an `Update` must include all the values of the primary key: https://github.com/googleapis/google-cloud-go/blob/2894e66be7ff7536f725ede453d1834586a361bd/spanner/mutation.go#L72

This can be slightly confusing, as for example delete mutations allow the use of key sets or key ranges to delete multiple rows with one mutation, while `Update` mutations can only operate on one row.

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.