You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
InvalidRequest: Error from server: code=2200 [Invalid query] message="could not find column(bar) metadata. Please insert all the table and column information into the config table"
Proxy shows this error:
{"level":"error","time":"2024-10-23T00:13:34.603Z","caller":"proxy/proxy.go:1507","msg":"Error occurred at spanner - ","Query":"select id, foo as bar from test.aliases;","error":"could not find column(bar) metadata. Please insert all the table and column information into the config table","stacktrace":"github.com/ollionorg/cassandra-to-spanner-proxy/third_party/datastax/proxy.(*client).handleQuery\n\t/go/src/cassandra-to-spanner-proxy/third_party/datastax/proxy/proxy.go:1507\ngithub.com/ollionorg/cassandra-to-spanner-proxy/third_party/datastax/proxy.(*client).Receive\n\t/go/src/cassandra-to-spanner-proxy/third_party/datastax/proxy/proxy.go:641\ngithub.com/ollionorg/cassandra-to-spanner-proxy/third_party/datastax/proxycore.(*Conn).read\n\t/go/src/cassandra-to-spanner-proxy/third_party/datastax/proxycore/conn.go:114"}
Create a table like this with spanner-cli:
Insert the metadata:
Insert a test record:
Query with an alias works in spanner-cli:
Try to query with an alias from cqlsh:
cqlsh shows this error:
Proxy shows this error:
Insert the alias into the metadata:
Restart the proxy.
Now querying with an alias from cqlsh works.
The text was updated successfully, but these errors were encountered: