Conditional DELETE from a table with a DATE column fails #4466
Labels
api: spanner
Issues related to the Spanner API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Thanks for stopping by to let us know something could be better!
Please include as much information as possible:
Environment details
Steps to reproduce
WHERE
clause eg.DELETE FROM geo_views WHERE client_id > 1000
Stacktrace
Note this stacktrace comes from a delete when using the Olaviate Spanner JDBC driver which includes the latest Google Spanner client code as a shaded lib:
Code snippet
I believe this error is caused by lack of support for the
Date
type in theif
statement here: https://github.com/googleapis/google-cloud-java/blob/master/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Key.java#L285External references such as API reference guides used
See also: olavloite/spanner-jdbc#134
Any additional information below
I looked in the tests for this code but there aren't any because
Key.toProto
is not public and only used by higher level code in the client package. As best I can tell only an actual delete using a key based condition will trigger its use.The text was updated successfully, but these errors were encountered: