fix: change planner_version to planner-version everywhere#10453
fix: change planner_version to planner-version everywhere#10453systay merged 7 commits intovitessio:mainfrom
Conversation
Signed-off-by: Andres Taylor <andres@planetscale.com>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
rohit-nayak-ps
left a comment
There was a problem hiding this comment.
TestHelpOutput is failing and needs to be fixed for the new flags. @systay
|
I presume this will also fix the current panic in |
|
No, because it's defined twice (still) here. We should remove the one in |
…ink global, act local, yo Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
…0453) * fix: change planner_version to planner-version everywhere Signed-off-by: Andres Taylor <andres@planetscale.com> * fix: actually change the planner version on vtgate after checking Signed-off-by: Andres Taylor <andres@planetscale.com> * fix: move CheckPlannerVersionFlag out from vtgate Signed-off-by: Andres Taylor <andres@planetscale.com> * fix: move the global plannerVersion to be a field on the executor. think global, act local, yo Signed-off-by: Andres Taylor <andres@planetscale.com> * fix: use the planner in the session first Signed-off-by: Andres Taylor <andres@planetscale.com> * test: use DEFAULT instead of 0 Signed-off-by: Andres Taylor <andres@planetscale.com> * fix: re-add the planner-version flag to vtcombo Signed-off-by: Andres Taylor <andres@planetscale.com>
|
@ajm188 we have support for both forms for some flags like this: https://github.com/vitessio/vitess/blob/main/go/vt/vttablet/tabletserver/tabletenv/config.go#L158 |
|
So, I'm actually against that convention, because it increases the matrix of possible ways you can "configure" vitess (e.g. "oh you said --some-flag but i'm using --some_flag, does that matter?" or "is --query_server-some-flag allowed? what about --query-server_some-flag? --query_server_some_flag?") better for there to be exactly one way to do things; avoids unnecessary complexity / opportunities for confusion/miscommunications |
…10466) * fix: change planner_version to planner-version everywhere Signed-off-by: Andres Taylor <andres@planetscale.com> * fix: actually change the planner version on vtgate after checking Signed-off-by: Andres Taylor <andres@planetscale.com> * fix: move CheckPlannerVersionFlag out from vtgate Signed-off-by: Andres Taylor <andres@planetscale.com> * fix: move the global plannerVersion to be a field on the executor. think global, act local, yo Signed-off-by: Andres Taylor <andres@planetscale.com> * fix: use the planner in the session first Signed-off-by: Andres Taylor <andres@planetscale.com> * test: use DEFAULT instead of 0 Signed-off-by: Andres Taylor <andres@planetscale.com> * fix: re-add the planner-version flag to vtcombo Signed-off-by: Andres Taylor <andres@planetscale.com>
Description
The new default for our flags will use hyphens instead of underscore, so this PR changes
planner_versiontoplanner-versioneverywhere.Should be backported to r14
Related Issue(s)
Docs change: vitessio/website#1047
#10420
Checklist