Skip to content

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

Open

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

Activity

  1. rahul2393 commented on May 26, 2026

    @rahul2393
    Contributor

    @shawncalda-angkas check this #10031, we expose a special error type for differentiating between the row not found and column not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions