Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
*: encode the returned data using the Chunk format in mocktikv #12023
*: encode the returned data using the Chunk format in mocktikv #12023
Changes from 45 commits
4470f2c
4f3c090
b57c1c7
6d34738
0fddb75
8547dea
818f590
d841cc6
17389b3
3c0505e
c42e3ba
ae73a0c
41d2abb
464b816
6808fc2
4ea9b85
32e4583
2758e02
b96379b
8eb59bd
64a88e0
324ad76
d6d5362
2892c8a
64f2bd3
4b0bc99
56e85b7
2deb7c5
be50349
9b2d50e
81a5c13
a181642
08a512d
59d8619
f057d09
0f9662b
aa8dc9d
a86f1c6
feb2cd0
07e9804
a32153d
96a7951
392ec3c
388fed5
7f67e84
26b704b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
IMHO, we only need to do this check when the
Next()
function is called the first time. All the cop responses should have the same decode method. Correct me if I'm wrong.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.
You are right.
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.
Now the check is temporary ad-hoc. The next pr will add a field
response_format
in response, and use the field to decide the decode format. Then i will remove the check in next pr. It is OK?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.
Why it's changed to
10
?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.
In the test case, it
SplitTable
to 10 regions and will get 10 chunks in response.In default format, it will append all result to one chunk.
In arrow format, it will return the chunk directly. So
numChunks
is changed to 10.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 can make this config item be able to be reloaded without restarting the tidb-server like other hot-reloadable config items. It's not urgent, we can do this in another PR.