refactoring: Horizon planning on the operators#11698
refactoring: Horizon planning on the operators#11698systay wants to merge 4 commits intovitessio:mainfrom
Conversation
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
If a new flag is being introduced:
If a workflow is added or modified:
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
Signed-off-by: Andres Taylor <andres@planetscale.com>
| r := newRoute( | ||
| &Update{ | ||
| QTable: qt, | ||
| VTable: vindexTable, | ||
| Assignments: assignments, | ||
| ChangedVindexValues: cvv, | ||
| OwnedVindexQuery: ovq, | ||
| AST: updStmt, | ||
| }, | ||
| RouteOpCode: opCode, | ||
| Keyspace: vindexTable.Keyspace, | ||
| VindexPreds: vp, | ||
| TargetDestination: dest, | ||
| } | ||
| opCode, | ||
| vindexTable.Keyspace, | ||
| dest, | ||
| vp, | ||
| nil, | ||
| nil, | ||
| ) |
There was a problem hiding this comment.
Not a blocker at all, but just my personal opinion: It's quite unfortunate go does not support named arguments. The previous version that build the struct directly was much more readable, as you could see what the individual struct members were set to, where as now newRoute takes a bunch of values but it's not obvious what they mean (e.g. those two nil arguments at the end).
|
This PR is being marked as stale because it has been open for 30 days with no activity. To rectify, you may do any of the following:
If no action is taken within 7 days, this PR will be closed. |
|
This PR was closed because it has been stale for 7 days with no activity. |
Description
Related Issue(s)
Checklist
Deployment Notes