What happens is an empty result set is returned - there is no error - when I have intentionally misspelled / misnamed table and column.
What should happen is that I get an error/exception saying that something has gone wrong with the function call, preferably in detail that the table or field could not be found.
This bug found on:
- OSX Sierra 10.12.6
- Python version is 3.6.3
- Google Cloud version 0.27
There is no stack trace.
To Reproduce, run:
with database.snapshot() as snapshot:
result = snapshot.read(
table='Aggfobblebobble', columns=['TotallyNonexistentColumn', 'Balance'],
keyset=spanner.KeySet(all_=True))
for row in result.rows:
print(row)
(...where database is a working database instance set up in a typical Python to Cloud Spanner session)
What happens is an empty result set is returned - there is no error - when I have intentionally misspelled / misnamed table and column.
What should happen is that I get an error/exception saying that something has gone wrong with the function call, preferably in detail that the table or field could not be found.
This bug found on:
There is no stack trace.
To Reproduce, run:
(...where database is a working database instance set up in a typical Python to Cloud Spanner session)