We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using routed queries, the planner does not route them to the proper keyspace.
Use the following onecase.json:
onecase.json
[ { "comment": "Add your test case here for debugging and run go test -run=One.", "query": "select * from main.route2 where id > 2", "plan": { } } ]
Modify the routing rules (schema.json) to have:
schema.json
... { "from_table": "route2", "to_tables": [ "user.unsharded" ] }, ...
Run TestOne. The plan output we get is:
TestOne
{ "Instructions": { "FieldQuery": "select * from route2 where 1 != 1", "Keyspace": { "Name": "main", "Sharded": false }, "OperatorType": "Route", "Query": "select * from route2 where id > 2", "Table": "route2", "Variant": "Unsharded" }, "Original": "select * from main.route2 where id > 2", "QueryType": "SELECT" }
Which incorrectly routes the routed query to keyspace main instead of user.
main
user
17, 18, 19, main
n/a
No response
The text was updated successfully, but these errors were encountered:
This is not an issue. The query is wrong here as route2 does not belong to main keyspace as per the vschema.
route2
Sorry, something went wrong.
frouioui
No branches or pull requests
Overview of the Issue
When using routed queries, the planner does not route them to the proper keyspace.
Reproduction Steps
Use the following
onecase.json
:Modify the routing rules (
schema.json
) to have:Run
TestOne
. The plan output we get is:Which incorrectly routes the routed query to keyspace
main
instead ofuser
.Binary Version
Operating System and Environment details
Log Fragments
No response
The text was updated successfully, but these errors were encountered: