Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Add option to GetSchema to only send the row count and data length over the wire#187

Merged
ajm188 merged 1 commit intomasterfrom
backport-am_get_schema_sizes_only
Dec 1, 2020
Merged

Add option to GetSchema to only send the row count and data length over the wire#187
ajm188 merged 1 commit intomasterfrom
backport-am_get_schema_sizes_only

Conversation

@ajm188
Copy link
Copy Markdown

@ajm188 ajm188 commented Nov 2, 2020

Add option to GetSchema to only send the row count and data length over the wire

Signed-off-by: Andrew Mason amason@slack-corp.com

Copy link
Copy Markdown

@ameetkotian ameetkotian Nov 2, 2020

Choose a reason for hiding this comment

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

I think we need to handle the case when both tableNamesOnly and tableSizesOnly are specified. The logic should be clear about what is returned. Now, it looks like only table names are returned.

@ajm188
Copy link
Copy Markdown
Author

ajm188 commented Nov 2, 2020

Corresponding upstream PR vitessio#6985

…er the wire (vitessio#6985)

* Add option to GetSchema to only send the row count and data length over the wire

Signed-off-by: Andrew Mason <amason@slack-corp.com>

* Update help text to clarify behavior

Signed-off-by: Andrew Mason <amason@slack-corp.com>

* Add endtoend test for vtctl GetSchema

Signed-off-by: Andrew Mason <amason@slack-corp.com>

* Alias the proto imports

Signed-off-by: Andrew Mason <amason@slack-corp.com>

* Format imports to match vtctl.go

Signed-off-by: Andrew Mason <amason@slack-corp.com>
@ajm188 ajm188 force-pushed the backport-am_get_schema_sizes_only branch from 215b3d5 to 0e5b756 Compare December 1, 2020 18:43
@ajm188 ajm188 requested a review from setassociative December 1, 2020 18:44
@ajm188
Copy link
Copy Markdown
Author

ajm188 commented Dec 1, 2020

@ameetkotian @setassociative this has been merged into upstream, this backports the final version

@ajm188 ajm188 merged commit 6266f25 into master Dec 1, 2020
@ajm188 ajm188 deleted the backport-am_get_schema_sizes_only branch December 1, 2020 18:49
setassociative pushed a commit that referenced this pull request Mar 17, 2021
Add option to GetSchema to only send the row count and data length over the wire
setassociative pushed a commit that referenced this pull request Mar 17, 2021
* Merge pull request #187 from tinyspeck/backport-am_get_schema_sizes_only

Add option to GetSchema to only send the row count and data length over the wire

* whitespace!

* derp, actually commit rm dead import

Signed-off-by: Richard Bailey <rbailey@slack-corp.com>

Co-authored-by: Andrew Mason <amason@slack-corp.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants