Skip to content

use planner-version instead of planner_version#1047

Closed
systay wants to merge 2 commits intoprodfrom
planner-version
Closed

use planner-version instead of planner_version#1047
systay wants to merge 2 commits intoprodfrom
planner-version

Conversation

@systay
Copy link
Copy Markdown
Contributor

@systay systay commented Jun 7, 2022

Signed-off-by: Andres Taylor andres@planetscale.com

Signed-off-by: Andres Taylor <andres@planetscale.com>
Copy link
Copy Markdown
Contributor

@ajm188 ajm188 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i have bad news (😅 🙈): all of these should be double-dash–prefixed (e.g. -planner-version => --planner-version, and every other flag in that table in vtgate.md)

@netlify
Copy link
Copy Markdown

netlify bot commented Jun 7, 2022

Deploy Preview for vitess ready!

Name Link
🔨 Latest commit d38b8de
🔍 Latest deploy log https://app.netlify.com/sites/vitess/deploys/629f26cd05d1bc00096e010f
😎 Deploy Preview https://deploy-preview-1047--vitess.netlify.app/docs/14.0/reference/programs/vtgate
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@vitessio vitessio deleted a comment from ajm188 Jun 7, 2022
Signed-off-by: Andres Taylor <andres@planetscale.com>
from the two planners, the query will fail and the difference will be printed in VTGate's logs as a warning.

This tool is enabled by the use of a new planner: `Gen4CompareV3`, to use it, we must start VTGate with the `-planner_version`
This tool is enabled by the use of a new planner: `Gen4CompareV3`, to use it, we must start VTGate with the `-planner-version`
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs to be --

Comment on lines 31 to 35
| -output-mode | string | Output in human-friendly text or json (default "text") |
| -planner_version | string | Sets the query planner version to use when generating the explain output. Valid values are V3 and Gen4 (default "Gen4") |
| -planner-version | string | Sets the query planner version to use when generating the explain output. Valid values are V3 and Gen4 (default "Gen4") |
| -normalize | | Whether to enable vtgate normalization (default false) |
| -shards | int | Number of shards per keyspace (default 2) |
| -replication-mode | string | The replication mode to simulate -- must be set to either ROW or STATEMENT (default "ROW") |
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of these too.
Btw, the changes to vtgate.md are duplicated in #1046. Two ways to resolve:

@mattlord
Copy link
Copy Markdown
Member

mattlord commented Jun 9, 2022

@systay I'm sorry for the hassle 😢 Want me to try and incorporate this into #1046 as well?

923a681

@deepthi
Copy link
Copy Markdown
Collaborator

deepthi commented Jun 9, 2022

Included in #1046

@deepthi deepthi closed this Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants