Skip to content

remove field RowBatchData and add field EncodeType#135

Merged
XuHuaiyu merged 1 commit into
pingcap:masterfrom
wshwsh12:add_response_format
Oct 8, 2019
Merged

remove field RowBatchData and add field EncodeType#135
XuHuaiyu merged 1 commit into
pingcap:masterfrom
wshwsh12:add_response_format

Conversation

@wshwsh12
Copy link
Copy Markdown
Contributor

@wshwsh12 wshwsh12 commented Oct 8, 2019

What have you changed?

Now the SelectResponse use two field to save Arrow/Default format data. But they are both bytes array and can use the same field. We can add field EncodeType instead of field RowBatchData.
So remove the field RowBatchData and add the flag field EncodeType.

Related PR

TiDB: pingcap/tidb#12536

Copy link
Copy Markdown
Contributor

@XuHuaiyu XuHuaiyu left a comment

Choose a reason for hiding this comment

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

Do we need to generate the .rs files?

Comment thread proto/select.proto
optional int64 warning_count = 6;
optional bytes row_batch_data = 7 [(gogoproto.customtype) = "github.com/pingcap/tipb/sharedbytes.SharedBytes", (gogoproto.nullable) = false];
// It indicates the encode type of response.
optional EncodeType encode_type = 7 [(gogoproto.nullable) = false];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Optional change: Prefer to comment out repeated Row rows = 2; as well.

@XuHuaiyu XuHuaiyu changed the title Remove field RowBatchData and add field EncodeType. remove field RowBatchData and add field EncodeType Oct 8, 2019
Copy link
Copy Markdown
Contributor

@XuHuaiyu XuHuaiyu left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants