Thanks to visit codestin.com
Credit goes to github.com

Skip to content

spanner: unconsumed/uniterated StreamedResultSet doesn't send request to Cloud Spanner server #17

@odeke-em

Description

@odeke-em

This is an issue that has plagued me for a while but I just got the time to make a repro.

Basically, if I try for example to invoke Transaction.execute_sql and do NOT consume the result e.g.

txn.execute_sql('DELETE from T1 WHERE 1=1')

instead of

res = txn.execute_sql('DELETE from T1 WHERE 1=1')
_ = list(res)

then the table will NOT be purged.

Seems like a bug to me with the underlying gRPC library, but it would be useful to explicitly document/call-out this bug if we don't have the bandwidth to fix it, to avoid unexpected problems for customers. It definitely sunk some hours for me in the past and also just right now.

Metadata

Metadata

Assignees

Labels

api: spannerIssues related to the googleapis/python-spanner API.priority: p2Moderately-important priority. Fix may not be included in next release.type: docsImprovement to the documentation for an API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions