Open jdiamond opened 1 week ago
Thank you for reporting this issue, @jdiamond. At this time, the USE keyword is not supported with proxy. Please let us know how this impacts your workflow. Do you have a workaround, or is this a significant obstacle for your applications? This information will assist us in prioritizing this task.
/CC @ShuranZhang
I have not found a way to control this behavior in Spring Data for Cassandra so we don't currently have a workaround.
This should be fixed in https://github.com/cloudspannerecosystem/cassandra-to-spanner-proxy/pull/22
Hi @jdiamond, I have submitted the fix (#22), could you pls use the main branch and verify the fix?
The proxy does not seem to use keyspaces set with
USE
.One of our applications is using Spring Data for Cassandra and it is using
USE
before executing any queries. All subsequent queries don't reference the keyspace and are failing. Our other applications don't use Spring Data so this hasn't been a problem until now.I can reproduce it with cqlsh and think it might be an issue with the proxy.
Create a table in Spanner or use an existing one. It doesn't need any data to see the error.
Add the metadata if you need it:
Try to query from this table without the keyspace in cqlsh:
Of course that fails with this error message:
But it works when you include the keyspace:
Try to use the
USE
keyword then query without the keyspace:And the same error as up above appears.