-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
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
vindex function: error when keyspace not selected #16534
Conversation
Signed-off-by: Harshit Gangal <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Would it be possible to do global routing? Many users have one sharded keyspace and one unsharded, and usually the sharded keyspace would define the vindex functions. If the function name is unique across keyspaces, similar to tables, it would be unambiguous which one was referenced? |
This can be done, could you create a feature request for it? This is more like a nice to have, as vindex functions are not an application production query but a helpful user query. |
Signed-off-by: Harshit Gangal <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16534 +/- ##
==========================================
+ Coverage 68.69% 68.75% +0.06%
==========================================
Files 1547 1556 +9
Lines 198297 199707 +1410
==========================================
+ Hits 136228 137318 +1090
- Misses 62069 62389 +320 ☔ View full report in Codecov by Sentry. |
Description
This PR sends error message back with
no database selected
when a vindex function query is executed without a default database.Example:
Earlier the error was
ERROR 1105 (HY000): keyspace fetch error: node doesn't exist: /vitess/zone1/keyspaces/SrvKeyspace
Related Issue(s)
Checklist
Deployment Notes