Skip to content

spanner: ReadRow() returns not found when there is a column or a struct issue instead of the actual error #14493

@shawncalda-angkas

Description

@shawncalda-angkas

When you run the following code

row, err := c.data.Single().ReadRow(ctx, TestTable, spanner.Key{tableID}, []string{"id", "name", "age"})

if there is an issue on the table for example age column is non existing it will also return as "NotFound" and might be confusing that the row corresponding to the primary key is not existing

Metadata

Metadata

Assignees

Labels

api: spannerIssues related to the Spanner API.triage meI really want to be triaged.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions