-
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
[release-19.0] Fix regression where inserts into reference tables with a different name on sharded keyspaces were not routed correctly. (#15796) #15860
Conversation
…ame on sharded keyspaces were not routed correctly. (#15796) Signed-off-by: Rohit Nayak <[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
|
…s in addition to inserts for v19 Signed-off-by: Rohit Nayak <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release-19.0 #15860 +/- ##
================================================
- Coverage 67.47% 67.47% -0.01%
================================================
Files 1560 1560
Lines 192780 192794 +14
================================================
+ Hits 130076 130084 +8
- Misses 62704 62710 +6 ☔ View full report in Codecov by Sentry. |
case *sqlparser.Insert: | ||
stmt.Table = refTbl | ||
default: | ||
panic("unsupported DML type in buildVindexTableForDML") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should not panic here and return vterrors.VT13001
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, this function doesn't return an error and the standard pattern used is to panic here and catch panics at an outer level.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one comment. Rest looks good.
Description
This is a backport of #15796