diff --git a/.gitignore b/.gitignore index 7e9fdadda..324fe969e 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ target cpp/tipb/*.h cpp/tipb/*.cc cpp/build/ +bin diff --git a/Makefile b/Makefile index 8888edc44..839d03640 100644 --- a/Makefile +++ b/Makefile @@ -1,23 +1,29 @@ -GOGO_PROTOBUF := `go list -f "{{.Dir}}" -m github.com/gogo/protobuf` +.PHONY: all go rust c++ -.PHONY: all go rust binlog c++ +CURDIR := $(shell pwd) -all: go rust binlog c++ +export GOBIN=$(CURDIR)/bin +export PATH := $(CURDIR)/bin/:$(PATH) + +all: go rust c++ dependence: go mod download -go: dependence - GOGO_PROTOBUF=${GOGO_PROTOBUF} ./generate-go.sh +check: dependence + ./scripts/check.sh -rust: - cargo build +go: dependence check + ./scripts/generate-go.sh + GO111MODULE=on go mod tidy + GO111MODULE=on go build ./go-tipb/... -binlog: dependence - GOGO_PROTOBUF=${GOGO_PROTOBUF} ./generate-binlog.sh +rust: check + cargo check && \ + cargo check --no-default-features --features prost-codec c++: dependence - ./generate-cpp.sh + ./scripts/generate-cpp.sh tipb.a: mkdir -p cpp/build && cd cpp/build && cmake -DCMAKE_BUILD_TYPE=Release .. && make tipb diff --git a/generate-go.sh b/generate-go.sh deleted file mode 100755 index 3ac7e4ecb..000000000 --- a/generate-go.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -set -ex - -cd proto -echo "generate go code..." -go install github.com/gogo/protobuf/protoc-gen-gofast -protoc -I.:${GOGO_PROTOBUF} \ - --gofast_out=plugins=grpc:../go-tipb *.proto - -cd ../go-tipb -sed -i.bak -E 's/import _ \"gogoproto\"//g' *.pb.go -sed -i.bak -E 's/import fmt \"fmt\"//g' *.pb.go -rm -f *.bak -go run golang.org/x/tools/cmd/goimports -w *.pb.go diff --git a/go-tipb/analyze.pb.go b/go-tipb/analyze.pb.go index 1896fa5d3..cd2817b82 100644 --- a/go-tipb/analyze.pb.go +++ b/go-tipb/analyze.pb.go @@ -1,123 +1,18 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: analyze.proto -/* -Package tipb is a generated protocol buffer package. - -It is generated from these files: - - analyze.proto - checksum.proto - executor.proto - explain.proto - expression.proto - metadata.proto - resourcetag.proto - schema.proto - select.proto - topsql_agent.proto - trace.proto - -It has these top-level messages: - - AnalyzeReq - AnalyzeIndexReq - AnalyzeColumnsReq - AnalyzeMixedResp - AnalyzeColumnGroup - AnalyzeColumnsResp - AnalyzeIndexResp - Bucket - Histogram - FMSketch - SampleCollector - RowSampleCollector - RowSample - CMSketchRow - CMSketchTopN - CMSketch - ChecksumRewriteRule - ChecksumRequest - ChecksumResponse - Executor - ExchangeSender - EncodedBytesSlice - ExchangeReceiver - ANNQueryInfo - TableScan - PartitionTableScan - Join - RuntimeFilter - IndexScan - Selection - Projection - Aggregation - TopN - Limit - Kill - ExecutorExecutionSummary - TiFlashExecutionInfo - TiFlashRegionNumOfInstance - TiFlashScanContext - TiFlashWaitSummary - Sort - WindowFrameBound - WindowFrame - Window - GroupingExpr - GroupingSet - Expand - ExprSlice - Expand2 - ExplainData - ExplainOperator - AccessObject - DynamicPartitionAccessObjects - DynamicPartitionAccessObject - ScanAccessObject - IndexAccess - FieldType - Expr - RpnExpr - ByItem - InUnionMetadata - CompareInMetadata - GroupingMark - GroupingFunctionMetadata - ResourceGroupTag - TableInfo - ColumnInfo - IndexInfo - KeyRange - Row - Error - SelectResponse - Chunk - RowMeta - DAGRequest - ChunkMemoryLayout - UserIdentity - StreamResponse - TopSQLRecord - TopSQLRecordItem - SQLMeta - PlanMeta - EmptyResponse - TopSQLSubRequest - TopSQLSubResponse -*/ package tipb import ( + encoding_binary "encoding/binary" "fmt" + "io" + "math" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - math "math" - - encoding_binary "encoding/binary" - - io "io" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. @@ -129,7 +24,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type AnalyzeType int32 @@ -150,6 +45,7 @@ var AnalyzeType_name = map[int32]string{ 4: "TypeMixed", 5: "TypeFullSampling", } + var AnalyzeType_value = map[string]int32{ "TypeIndex": 0, "TypeColumn": 1, @@ -164,9 +60,11 @@ func (x AnalyzeType) Enum() *AnalyzeType { *p = x return p } + func (x AnalyzeType) String() string { return proto.EnumName(AnalyzeType_name, int32(x)) } + func (x *AnalyzeType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(AnalyzeType_value, data, "AnalyzeType") if err != nil { @@ -175,23 +73,53 @@ func (x *AnalyzeType) UnmarshalJSON(data []byte) error { *x = AnalyzeType(value) return nil } -func (AnalyzeType) EnumDescriptor() ([]byte, []int) { return fileDescriptorAnalyze, []int{0} } + +func (AnalyzeType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_76c3eb6de5a1604f, []int{0} +} type AnalyzeReq struct { Tp AnalyzeType `protobuf:"varint,1,opt,name=tp,enum=tipb.AnalyzeType" json:"tp"` // Deprecated. Start Ts has been moved to coprocessor.Request. - StartTsFallback *uint64 `protobuf:"varint,2,opt,name=start_ts_fallback,json=startTsFallback" json:"start_ts_fallback,omitempty"` - Flags uint64 `protobuf:"varint,3,opt,name=flags" json:"flags"` - TimeZoneOffset int64 `protobuf:"varint,4,opt,name=time_zone_offset,json=timeZoneOffset" json:"time_zone_offset"` - IdxReq *AnalyzeIndexReq `protobuf:"bytes,5,opt,name=idx_req,json=idxReq" json:"idx_req,omitempty"` - ColReq *AnalyzeColumnsReq `protobuf:"bytes,6,opt,name=col_req,json=colReq" json:"col_req,omitempty"` - XXX_unrecognized []byte `json:"-"` + StartTsFallback *uint64 `protobuf:"varint,2,opt,name=start_ts_fallback,json=startTsFallback" json:"start_ts_fallback,omitempty"` + Flags uint64 `protobuf:"varint,3,opt,name=flags" json:"flags"` + TimeZoneOffset int64 `protobuf:"varint,4,opt,name=time_zone_offset,json=timeZoneOffset" json:"time_zone_offset"` + IdxReq *AnalyzeIndexReq `protobuf:"bytes,5,opt,name=idx_req,json=idxReq" json:"idx_req,omitempty"` + ColReq *AnalyzeColumnsReq `protobuf:"bytes,6,opt,name=col_req,json=colReq" json:"col_req,omitempty"` +} + +func (m *AnalyzeReq) Reset() { *m = AnalyzeReq{} } +func (m *AnalyzeReq) String() string { return proto.CompactTextString(m) } +func (*AnalyzeReq) ProtoMessage() {} +func (*AnalyzeReq) Descriptor() ([]byte, []int) { + return fileDescriptor_76c3eb6de5a1604f, []int{0} +} +func (m *AnalyzeReq) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AnalyzeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AnalyzeReq.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AnalyzeReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_AnalyzeReq.Merge(m, src) +} +func (m *AnalyzeReq) XXX_Size() int { + return m.Size() +} +func (m *AnalyzeReq) XXX_DiscardUnknown() { + xxx_messageInfo_AnalyzeReq.DiscardUnknown(m) } -func (m *AnalyzeReq) Reset() { *m = AnalyzeReq{} } -func (m *AnalyzeReq) String() string { return proto.CompactTextString(m) } -func (*AnalyzeReq) ProtoMessage() {} -func (*AnalyzeReq) Descriptor() ([]byte, []int) { return fileDescriptorAnalyze, []int{0} } +var xxx_messageInfo_AnalyzeReq proto.InternalMessageInfo func (m *AnalyzeReq) GetTp() AnalyzeType { if m != nil { @@ -239,20 +167,47 @@ type AnalyzeIndexReq struct { // bucket_size is the max histograms bucket size. BucketSize int64 `protobuf:"varint,1,opt,name=bucket_size,json=bucketSize" json:"bucket_size"` // num_columns is the number of columns in the index. - NumColumns int32 `protobuf:"varint,2,opt,name=num_columns,json=numColumns" json:"num_columns"` - CmsketchDepth *int32 `protobuf:"varint,3,opt,name=cmsketch_depth,json=cmsketchDepth" json:"cmsketch_depth,omitempty"` - CmsketchWidth *int32 `protobuf:"varint,4,opt,name=cmsketch_width,json=cmsketchWidth" json:"cmsketch_width,omitempty"` - SampleSize int64 `protobuf:"varint,5,opt,name=sample_size,json=sampleSize" json:"sample_size"` - SketchSize int64 `protobuf:"varint,6,opt,name=sketch_size,json=sketchSize" json:"sketch_size"` - TopNSize *int32 `protobuf:"varint,7,opt,name=top_n_size,json=topNSize" json:"top_n_size,omitempty"` - Version *int32 `protobuf:"varint,8,opt,name=version" json:"version,omitempty"` - XXX_unrecognized []byte `json:"-"` + NumColumns int32 `protobuf:"varint,2,opt,name=num_columns,json=numColumns" json:"num_columns"` + CmsketchDepth *int32 `protobuf:"varint,3,opt,name=cmsketch_depth,json=cmsketchDepth" json:"cmsketch_depth,omitempty"` + CmsketchWidth *int32 `protobuf:"varint,4,opt,name=cmsketch_width,json=cmsketchWidth" json:"cmsketch_width,omitempty"` + SampleSize int64 `protobuf:"varint,5,opt,name=sample_size,json=sampleSize" json:"sample_size"` + SketchSize int64 `protobuf:"varint,6,opt,name=sketch_size,json=sketchSize" json:"sketch_size"` + TopNSize *int32 `protobuf:"varint,7,opt,name=top_n_size,json=topNSize" json:"top_n_size,omitempty"` + Version *int32 `protobuf:"varint,8,opt,name=version" json:"version,omitempty"` +} + +func (m *AnalyzeIndexReq) Reset() { *m = AnalyzeIndexReq{} } +func (m *AnalyzeIndexReq) String() string { return proto.CompactTextString(m) } +func (*AnalyzeIndexReq) ProtoMessage() {} +func (*AnalyzeIndexReq) Descriptor() ([]byte, []int) { + return fileDescriptor_76c3eb6de5a1604f, []int{1} +} +func (m *AnalyzeIndexReq) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AnalyzeIndexReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AnalyzeIndexReq.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AnalyzeIndexReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_AnalyzeIndexReq.Merge(m, src) +} +func (m *AnalyzeIndexReq) XXX_Size() int { + return m.Size() +} +func (m *AnalyzeIndexReq) XXX_DiscardUnknown() { + xxx_messageInfo_AnalyzeIndexReq.DiscardUnknown(m) } -func (m *AnalyzeIndexReq) Reset() { *m = AnalyzeIndexReq{} } -func (m *AnalyzeIndexReq) String() string { return proto.CompactTextString(m) } -func (*AnalyzeIndexReq) ProtoMessage() {} -func (*AnalyzeIndexReq) Descriptor() ([]byte, []int) { return fileDescriptorAnalyze, []int{1} } +var xxx_messageInfo_AnalyzeIndexReq proto.InternalMessageInfo func (m *AnalyzeIndexReq) GetBucketSize() int64 { if m != nil { @@ -328,14 +283,41 @@ type AnalyzeColumnsReq struct { ColumnGroups []*AnalyzeColumnGroup `protobuf:"bytes,10,rep,name=column_groups,json=columnGroups" json:"column_groups,omitempty"` // sample_rate is the sampling rate that how many samples will collected. // There must be one non-zero value in sample_rate and sample_size. - SampleRate *float64 `protobuf:"fixed64,11,opt,name=sample_rate,json=sampleRate" json:"sample_rate,omitempty"` - XXX_unrecognized []byte `json:"-"` + SampleRate *float64 `protobuf:"fixed64,11,opt,name=sample_rate,json=sampleRate" json:"sample_rate,omitempty"` } -func (m *AnalyzeColumnsReq) Reset() { *m = AnalyzeColumnsReq{} } -func (m *AnalyzeColumnsReq) String() string { return proto.CompactTextString(m) } -func (*AnalyzeColumnsReq) ProtoMessage() {} -func (*AnalyzeColumnsReq) Descriptor() ([]byte, []int) { return fileDescriptorAnalyze, []int{2} } +func (m *AnalyzeColumnsReq) Reset() { *m = AnalyzeColumnsReq{} } +func (m *AnalyzeColumnsReq) String() string { return proto.CompactTextString(m) } +func (*AnalyzeColumnsReq) ProtoMessage() {} +func (*AnalyzeColumnsReq) Descriptor() ([]byte, []int) { + return fileDescriptor_76c3eb6de5a1604f, []int{2} +} +func (m *AnalyzeColumnsReq) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AnalyzeColumnsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AnalyzeColumnsReq.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AnalyzeColumnsReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_AnalyzeColumnsReq.Merge(m, src) +} +func (m *AnalyzeColumnsReq) XXX_Size() int { + return m.Size() +} +func (m *AnalyzeColumnsReq) XXX_DiscardUnknown() { + xxx_messageInfo_AnalyzeColumnsReq.DiscardUnknown(m) +} + +var xxx_messageInfo_AnalyzeColumnsReq proto.InternalMessageInfo func (m *AnalyzeColumnsReq) GetBucketSize() int64 { if m != nil { @@ -415,15 +397,42 @@ func (m *AnalyzeColumnsReq) GetSampleRate() float64 { } type AnalyzeMixedResp struct { - ColumnsResp *AnalyzeColumnsResp `protobuf:"bytes,1,opt,name=columns_resp,json=columnsResp" json:"columns_resp,omitempty"` - IndexResp *AnalyzeIndexResp `protobuf:"bytes,2,opt,name=index_resp,json=indexResp" json:"index_resp,omitempty"` - XXX_unrecognized []byte `json:"-"` + ColumnsResp *AnalyzeColumnsResp `protobuf:"bytes,1,opt,name=columns_resp,json=columnsResp" json:"columns_resp,omitempty"` + IndexResp *AnalyzeIndexResp `protobuf:"bytes,2,opt,name=index_resp,json=indexResp" json:"index_resp,omitempty"` +} + +func (m *AnalyzeMixedResp) Reset() { *m = AnalyzeMixedResp{} } +func (m *AnalyzeMixedResp) String() string { return proto.CompactTextString(m) } +func (*AnalyzeMixedResp) ProtoMessage() {} +func (*AnalyzeMixedResp) Descriptor() ([]byte, []int) { + return fileDescriptor_76c3eb6de5a1604f, []int{3} +} +func (m *AnalyzeMixedResp) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AnalyzeMixedResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AnalyzeMixedResp.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AnalyzeMixedResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_AnalyzeMixedResp.Merge(m, src) +} +func (m *AnalyzeMixedResp) XXX_Size() int { + return m.Size() +} +func (m *AnalyzeMixedResp) XXX_DiscardUnknown() { + xxx_messageInfo_AnalyzeMixedResp.DiscardUnknown(m) } -func (m *AnalyzeMixedResp) Reset() { *m = AnalyzeMixedResp{} } -func (m *AnalyzeMixedResp) String() string { return proto.CompactTextString(m) } -func (*AnalyzeMixedResp) ProtoMessage() {} -func (*AnalyzeMixedResp) Descriptor() ([]byte, []int) { return fileDescriptorAnalyze, []int{3} } +var xxx_messageInfo_AnalyzeMixedResp proto.InternalMessageInfo func (m *AnalyzeMixedResp) GetColumnsResp() *AnalyzeColumnsResp { if m != nil { @@ -440,15 +449,42 @@ func (m *AnalyzeMixedResp) GetIndexResp() *AnalyzeIndexResp { } type AnalyzeColumnGroup struct { - ColumnOffsets []int64 `protobuf:"varint,1,rep,name=column_offsets,json=columnOffsets" json:"column_offsets,omitempty"` - PrefixLengths []int64 `protobuf:"varint,2,rep,name=prefix_lengths,json=prefixLengths" json:"prefix_lengths,omitempty"` - XXX_unrecognized []byte `json:"-"` + ColumnOffsets []int64 `protobuf:"varint,1,rep,name=column_offsets,json=columnOffsets" json:"column_offsets,omitempty"` + PrefixLengths []int64 `protobuf:"varint,2,rep,name=prefix_lengths,json=prefixLengths" json:"prefix_lengths,omitempty"` +} + +func (m *AnalyzeColumnGroup) Reset() { *m = AnalyzeColumnGroup{} } +func (m *AnalyzeColumnGroup) String() string { return proto.CompactTextString(m) } +func (*AnalyzeColumnGroup) ProtoMessage() {} +func (*AnalyzeColumnGroup) Descriptor() ([]byte, []int) { + return fileDescriptor_76c3eb6de5a1604f, []int{4} +} +func (m *AnalyzeColumnGroup) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AnalyzeColumnGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AnalyzeColumnGroup.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AnalyzeColumnGroup) XXX_Merge(src proto.Message) { + xxx_messageInfo_AnalyzeColumnGroup.Merge(m, src) +} +func (m *AnalyzeColumnGroup) XXX_Size() int { + return m.Size() +} +func (m *AnalyzeColumnGroup) XXX_DiscardUnknown() { + xxx_messageInfo_AnalyzeColumnGroup.DiscardUnknown(m) } -func (m *AnalyzeColumnGroup) Reset() { *m = AnalyzeColumnGroup{} } -func (m *AnalyzeColumnGroup) String() string { return proto.CompactTextString(m) } -func (*AnalyzeColumnGroup) ProtoMessage() {} -func (*AnalyzeColumnGroup) Descriptor() ([]byte, []int) { return fileDescriptorAnalyze, []int{4} } +var xxx_messageInfo_AnalyzeColumnGroup proto.InternalMessageInfo func (m *AnalyzeColumnGroup) GetColumnOffsets() []int64 { if m != nil { @@ -468,15 +504,42 @@ type AnalyzeColumnsResp struct { // collectors is the sample collectors for columns. Collectors []*SampleCollector `protobuf:"bytes,1,rep,name=collectors" json:"collectors,omitempty"` // pk_hist is the histogram for primary key when it is the handle. - PkHist *Histogram `protobuf:"bytes,2,opt,name=pk_hist,json=pkHist" json:"pk_hist,omitempty"` - RowCollector *RowSampleCollector `protobuf:"bytes,3,opt,name=row_collector,json=rowCollector" json:"row_collector,omitempty"` - XXX_unrecognized []byte `json:"-"` + PkHist *Histogram `protobuf:"bytes,2,opt,name=pk_hist,json=pkHist" json:"pk_hist,omitempty"` + RowCollector *RowSampleCollector `protobuf:"bytes,3,opt,name=row_collector,json=rowCollector" json:"row_collector,omitempty"` +} + +func (m *AnalyzeColumnsResp) Reset() { *m = AnalyzeColumnsResp{} } +func (m *AnalyzeColumnsResp) String() string { return proto.CompactTextString(m) } +func (*AnalyzeColumnsResp) ProtoMessage() {} +func (*AnalyzeColumnsResp) Descriptor() ([]byte, []int) { + return fileDescriptor_76c3eb6de5a1604f, []int{5} +} +func (m *AnalyzeColumnsResp) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AnalyzeColumnsResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AnalyzeColumnsResp.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AnalyzeColumnsResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_AnalyzeColumnsResp.Merge(m, src) +} +func (m *AnalyzeColumnsResp) XXX_Size() int { + return m.Size() +} +func (m *AnalyzeColumnsResp) XXX_DiscardUnknown() { + xxx_messageInfo_AnalyzeColumnsResp.DiscardUnknown(m) } -func (m *AnalyzeColumnsResp) Reset() { *m = AnalyzeColumnsResp{} } -func (m *AnalyzeColumnsResp) String() string { return proto.CompactTextString(m) } -func (*AnalyzeColumnsResp) ProtoMessage() {} -func (*AnalyzeColumnsResp) Descriptor() ([]byte, []int) { return fileDescriptorAnalyze, []int{5} } +var xxx_messageInfo_AnalyzeColumnsResp proto.InternalMessageInfo func (m *AnalyzeColumnsResp) GetCollectors() []*SampleCollector { if m != nil { @@ -500,16 +563,43 @@ func (m *AnalyzeColumnsResp) GetRowCollector() *RowSampleCollector { } type AnalyzeIndexResp struct { - Hist *Histogram `protobuf:"bytes,1,opt,name=hist" json:"hist,omitempty"` - Cms *CMSketch `protobuf:"bytes,2,opt,name=cms" json:"cms,omitempty"` - Collector *SampleCollector `protobuf:"bytes,3,opt,name=collector" json:"collector,omitempty"` - XXX_unrecognized []byte `json:"-"` + Hist *Histogram `protobuf:"bytes,1,opt,name=hist" json:"hist,omitempty"` + Cms *CMSketch `protobuf:"bytes,2,opt,name=cms" json:"cms,omitempty"` + Collector *SampleCollector `protobuf:"bytes,3,opt,name=collector" json:"collector,omitempty"` +} + +func (m *AnalyzeIndexResp) Reset() { *m = AnalyzeIndexResp{} } +func (m *AnalyzeIndexResp) String() string { return proto.CompactTextString(m) } +func (*AnalyzeIndexResp) ProtoMessage() {} +func (*AnalyzeIndexResp) Descriptor() ([]byte, []int) { + return fileDescriptor_76c3eb6de5a1604f, []int{6} +} +func (m *AnalyzeIndexResp) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AnalyzeIndexResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AnalyzeIndexResp.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AnalyzeIndexResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_AnalyzeIndexResp.Merge(m, src) +} +func (m *AnalyzeIndexResp) XXX_Size() int { + return m.Size() +} +func (m *AnalyzeIndexResp) XXX_DiscardUnknown() { + xxx_messageInfo_AnalyzeIndexResp.DiscardUnknown(m) } -func (m *AnalyzeIndexResp) Reset() { *m = AnalyzeIndexResp{} } -func (m *AnalyzeIndexResp) String() string { return proto.CompactTextString(m) } -func (*AnalyzeIndexResp) ProtoMessage() {} -func (*AnalyzeIndexResp) Descriptor() ([]byte, []int) { return fileDescriptorAnalyze, []int{6} } +var xxx_messageInfo_AnalyzeIndexResp proto.InternalMessageInfo func (m *AnalyzeIndexResp) GetHist() *Histogram { if m != nil { @@ -534,18 +624,45 @@ func (m *AnalyzeIndexResp) GetCollector() *SampleCollector { // Bucket is an element of histogram. type Bucket struct { - Count int64 `protobuf:"varint,1,opt,name=count" json:"count"` - LowerBound []byte `protobuf:"bytes,2,opt,name=lower_bound,json=lowerBound" json:"lower_bound,omitempty"` - UpperBound []byte `protobuf:"bytes,3,opt,name=upper_bound,json=upperBound" json:"upper_bound,omitempty"` - Repeats int64 `protobuf:"varint,4,opt,name=repeats" json:"repeats"` - Ndv *int64 `protobuf:"varint,5,opt,name=ndv" json:"ndv,omitempty"` - XXX_unrecognized []byte `json:"-"` + Count int64 `protobuf:"varint,1,opt,name=count" json:"count"` + LowerBound []byte `protobuf:"bytes,2,opt,name=lower_bound,json=lowerBound" json:"lower_bound,omitempty"` + UpperBound []byte `protobuf:"bytes,3,opt,name=upper_bound,json=upperBound" json:"upper_bound,omitempty"` + Repeats int64 `protobuf:"varint,4,opt,name=repeats" json:"repeats"` + Ndv *int64 `protobuf:"varint,5,opt,name=ndv" json:"ndv,omitempty"` +} + +func (m *Bucket) Reset() { *m = Bucket{} } +func (m *Bucket) String() string { return proto.CompactTextString(m) } +func (*Bucket) ProtoMessage() {} +func (*Bucket) Descriptor() ([]byte, []int) { + return fileDescriptor_76c3eb6de5a1604f, []int{7} +} +func (m *Bucket) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Bucket.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Bucket) XXX_Merge(src proto.Message) { + xxx_messageInfo_Bucket.Merge(m, src) +} +func (m *Bucket) XXX_Size() int { + return m.Size() +} +func (m *Bucket) XXX_DiscardUnknown() { + xxx_messageInfo_Bucket.DiscardUnknown(m) } -func (m *Bucket) Reset() { *m = Bucket{} } -func (m *Bucket) String() string { return proto.CompactTextString(m) } -func (*Bucket) ProtoMessage() {} -func (*Bucket) Descriptor() ([]byte, []int) { return fileDescriptorAnalyze, []int{7} } +var xxx_messageInfo_Bucket proto.InternalMessageInfo func (m *Bucket) GetCount() int64 { if m != nil { @@ -586,14 +703,41 @@ type Histogram struct { // ndv is the number of distinct values. Ndv int64 `protobuf:"varint,1,opt,name=ndv" json:"ndv"` // buckets represents all the buckets. - Buckets []*Bucket `protobuf:"bytes,2,rep,name=buckets" json:"buckets,omitempty"` - XXX_unrecognized []byte `json:"-"` + Buckets []*Bucket `protobuf:"bytes,2,rep,name=buckets" json:"buckets,omitempty"` +} + +func (m *Histogram) Reset() { *m = Histogram{} } +func (m *Histogram) String() string { return proto.CompactTextString(m) } +func (*Histogram) ProtoMessage() {} +func (*Histogram) Descriptor() ([]byte, []int) { + return fileDescriptor_76c3eb6de5a1604f, []int{8} +} +func (m *Histogram) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Histogram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Histogram.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Histogram) XXX_Merge(src proto.Message) { + xxx_messageInfo_Histogram.Merge(m, src) +} +func (m *Histogram) XXX_Size() int { + return m.Size() +} +func (m *Histogram) XXX_DiscardUnknown() { + xxx_messageInfo_Histogram.DiscardUnknown(m) } -func (m *Histogram) Reset() { *m = Histogram{} } -func (m *Histogram) String() string { return proto.CompactTextString(m) } -func (*Histogram) ProtoMessage() {} -func (*Histogram) Descriptor() ([]byte, []int) { return fileDescriptorAnalyze, []int{8} } +var xxx_messageInfo_Histogram proto.InternalMessageInfo func (m *Histogram) GetNdv() int64 { if m != nil { @@ -611,15 +755,42 @@ func (m *Histogram) GetBuckets() []*Bucket { // FMSketch is used to count distinct values for columns. type FMSketch struct { - Mask uint64 `protobuf:"varint,1,opt,name=mask" json:"mask"` - Hashset []uint64 `protobuf:"varint,2,rep,name=hashset" json:"hashset,omitempty"` - XXX_unrecognized []byte `json:"-"` + Mask uint64 `protobuf:"varint,1,opt,name=mask" json:"mask"` + Hashset []uint64 `protobuf:"varint,2,rep,name=hashset" json:"hashset,omitempty"` } -func (m *FMSketch) Reset() { *m = FMSketch{} } -func (m *FMSketch) String() string { return proto.CompactTextString(m) } -func (*FMSketch) ProtoMessage() {} -func (*FMSketch) Descriptor() ([]byte, []int) { return fileDescriptorAnalyze, []int{9} } +func (m *FMSketch) Reset() { *m = FMSketch{} } +func (m *FMSketch) String() string { return proto.CompactTextString(m) } +func (*FMSketch) ProtoMessage() {} +func (*FMSketch) Descriptor() ([]byte, []int) { + return fileDescriptor_76c3eb6de5a1604f, []int{9} +} +func (m *FMSketch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FMSketch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FMSketch.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FMSketch) XXX_Merge(src proto.Message) { + xxx_messageInfo_FMSketch.Merge(m, src) +} +func (m *FMSketch) XXX_Size() int { + return m.Size() +} +func (m *FMSketch) XXX_DiscardUnknown() { + xxx_messageInfo_FMSketch.DiscardUnknown(m) +} + +var xxx_messageInfo_FMSketch proto.InternalMessageInfo func (m *FMSketch) GetMask() uint64 { if m != nil { @@ -637,19 +808,46 @@ func (m *FMSketch) GetHashset() []uint64 { // SampleCollector is used for collect samples and calculate the count and ndv of an column. type SampleCollector struct { - Samples [][]byte `protobuf:"bytes,1,rep,name=samples" json:"samples,omitempty"` - NullCount int64 `protobuf:"varint,2,opt,name=null_count,json=nullCount" json:"null_count"` - Count int64 `protobuf:"varint,3,opt,name=count" json:"count"` - FmSketch *FMSketch `protobuf:"bytes,4,opt,name=fm_sketch,json=fmSketch" json:"fm_sketch,omitempty"` - CmSketch *CMSketch `protobuf:"bytes,5,opt,name=cm_sketch,json=cmSketch" json:"cm_sketch,omitempty"` - TotalSize *int64 `protobuf:"varint,6,opt,name=total_size,json=totalSize" json:"total_size,omitempty"` - XXX_unrecognized []byte `json:"-"` + Samples [][]byte `protobuf:"bytes,1,rep,name=samples" json:"samples,omitempty"` + NullCount int64 `protobuf:"varint,2,opt,name=null_count,json=nullCount" json:"null_count"` + Count int64 `protobuf:"varint,3,opt,name=count" json:"count"` + FmSketch *FMSketch `protobuf:"bytes,4,opt,name=fm_sketch,json=fmSketch" json:"fm_sketch,omitempty"` + CmSketch *CMSketch `protobuf:"bytes,5,opt,name=cm_sketch,json=cmSketch" json:"cm_sketch,omitempty"` + TotalSize *int64 `protobuf:"varint,6,opt,name=total_size,json=totalSize" json:"total_size,omitempty"` +} + +func (m *SampleCollector) Reset() { *m = SampleCollector{} } +func (m *SampleCollector) String() string { return proto.CompactTextString(m) } +func (*SampleCollector) ProtoMessage() {} +func (*SampleCollector) Descriptor() ([]byte, []int) { + return fileDescriptor_76c3eb6de5a1604f, []int{10} +} +func (m *SampleCollector) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SampleCollector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SampleCollector.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SampleCollector) XXX_Merge(src proto.Message) { + xxx_messageInfo_SampleCollector.Merge(m, src) +} +func (m *SampleCollector) XXX_Size() int { + return m.Size() +} +func (m *SampleCollector) XXX_DiscardUnknown() { + xxx_messageInfo_SampleCollector.DiscardUnknown(m) } -func (m *SampleCollector) Reset() { *m = SampleCollector{} } -func (m *SampleCollector) String() string { return proto.CompactTextString(m) } -func (*SampleCollector) ProtoMessage() {} -func (*SampleCollector) Descriptor() ([]byte, []int) { return fileDescriptorAnalyze, []int{10} } +var xxx_messageInfo_SampleCollector proto.InternalMessageInfo func (m *SampleCollector) GetSamples() [][]byte { if m != nil { @@ -694,18 +892,45 @@ func (m *SampleCollector) GetTotalSize() int64 { } type RowSampleCollector struct { - Samples []*RowSample `protobuf:"bytes,1,rep,name=samples" json:"samples,omitempty"` - NullCounts []int64 `protobuf:"varint,2,rep,name=null_counts,json=nullCounts" json:"null_counts,omitempty"` - Count int64 `protobuf:"varint,3,opt,name=count" json:"count"` - FmSketch []*FMSketch `protobuf:"bytes,4,rep,name=fm_sketch,json=fmSketch" json:"fm_sketch,omitempty"` - TotalSize []int64 `protobuf:"varint,5,rep,name=total_size,json=totalSize" json:"total_size,omitempty"` - XXX_unrecognized []byte `json:"-"` + Samples []*RowSample `protobuf:"bytes,1,rep,name=samples" json:"samples,omitempty"` + NullCounts []int64 `protobuf:"varint,2,rep,name=null_counts,json=nullCounts" json:"null_counts,omitempty"` + Count int64 `protobuf:"varint,3,opt,name=count" json:"count"` + FmSketch []*FMSketch `protobuf:"bytes,4,rep,name=fm_sketch,json=fmSketch" json:"fm_sketch,omitempty"` + TotalSize []int64 `protobuf:"varint,5,rep,name=total_size,json=totalSize" json:"total_size,omitempty"` +} + +func (m *RowSampleCollector) Reset() { *m = RowSampleCollector{} } +func (m *RowSampleCollector) String() string { return proto.CompactTextString(m) } +func (*RowSampleCollector) ProtoMessage() {} +func (*RowSampleCollector) Descriptor() ([]byte, []int) { + return fileDescriptor_76c3eb6de5a1604f, []int{11} +} +func (m *RowSampleCollector) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RowSampleCollector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RowSampleCollector.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RowSampleCollector) XXX_Merge(src proto.Message) { + xxx_messageInfo_RowSampleCollector.Merge(m, src) +} +func (m *RowSampleCollector) XXX_Size() int { + return m.Size() +} +func (m *RowSampleCollector) XXX_DiscardUnknown() { + xxx_messageInfo_RowSampleCollector.DiscardUnknown(m) } -func (m *RowSampleCollector) Reset() { *m = RowSampleCollector{} } -func (m *RowSampleCollector) String() string { return proto.CompactTextString(m) } -func (*RowSampleCollector) ProtoMessage() {} -func (*RowSampleCollector) Descriptor() ([]byte, []int) { return fileDescriptorAnalyze, []int{11} } +var xxx_messageInfo_RowSampleCollector proto.InternalMessageInfo func (m *RowSampleCollector) GetSamples() []*RowSample { if m != nil { @@ -743,15 +968,42 @@ func (m *RowSampleCollector) GetTotalSize() []int64 { } type RowSample struct { - Row [][]byte `protobuf:"bytes,1,rep,name=row" json:"row,omitempty"` - Weight int64 `protobuf:"varint,2,opt,name=weight" json:"weight"` - XXX_unrecognized []byte `json:"-"` + Row [][]byte `protobuf:"bytes,1,rep,name=row" json:"row,omitempty"` + Weight int64 `protobuf:"varint,2,opt,name=weight" json:"weight"` +} + +func (m *RowSample) Reset() { *m = RowSample{} } +func (m *RowSample) String() string { return proto.CompactTextString(m) } +func (*RowSample) ProtoMessage() {} +func (*RowSample) Descriptor() ([]byte, []int) { + return fileDescriptor_76c3eb6de5a1604f, []int{12} +} +func (m *RowSample) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RowSample) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RowSample.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RowSample) XXX_Merge(src proto.Message) { + xxx_messageInfo_RowSample.Merge(m, src) +} +func (m *RowSample) XXX_Size() int { + return m.Size() +} +func (m *RowSample) XXX_DiscardUnknown() { + xxx_messageInfo_RowSample.DiscardUnknown(m) } -func (m *RowSample) Reset() { *m = RowSample{} } -func (m *RowSample) String() string { return proto.CompactTextString(m) } -func (*RowSample) ProtoMessage() {} -func (*RowSample) Descriptor() ([]byte, []int) { return fileDescriptorAnalyze, []int{12} } +var xxx_messageInfo_RowSample proto.InternalMessageInfo func (m *RowSample) GetRow() [][]byte { if m != nil { @@ -768,14 +1020,41 @@ func (m *RowSample) GetWeight() int64 { } type CMSketchRow struct { - Counters []uint32 `protobuf:"varint,1,rep,name=counters" json:"counters,omitempty"` - XXX_unrecognized []byte `json:"-"` + Counters []uint32 `protobuf:"varint,1,rep,name=counters" json:"counters,omitempty"` } -func (m *CMSketchRow) Reset() { *m = CMSketchRow{} } -func (m *CMSketchRow) String() string { return proto.CompactTextString(m) } -func (*CMSketchRow) ProtoMessage() {} -func (*CMSketchRow) Descriptor() ([]byte, []int) { return fileDescriptorAnalyze, []int{13} } +func (m *CMSketchRow) Reset() { *m = CMSketchRow{} } +func (m *CMSketchRow) String() string { return proto.CompactTextString(m) } +func (*CMSketchRow) ProtoMessage() {} +func (*CMSketchRow) Descriptor() ([]byte, []int) { + return fileDescriptor_76c3eb6de5a1604f, []int{13} +} +func (m *CMSketchRow) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CMSketchRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CMSketchRow.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CMSketchRow) XXX_Merge(src proto.Message) { + xxx_messageInfo_CMSketchRow.Merge(m, src) +} +func (m *CMSketchRow) XXX_Size() int { + return m.Size() +} +func (m *CMSketchRow) XXX_DiscardUnknown() { + xxx_messageInfo_CMSketchRow.DiscardUnknown(m) +} + +var xxx_messageInfo_CMSketchRow proto.InternalMessageInfo func (m *CMSketchRow) GetCounters() []uint32 { if m != nil { @@ -785,15 +1064,42 @@ func (m *CMSketchRow) GetCounters() []uint32 { } type CMSketchTopN struct { - Data []byte `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"` - Count uint64 `protobuf:"varint,2,opt,name=count" json:"count"` - XXX_unrecognized []byte `json:"-"` + Data []byte `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"` + Count uint64 `protobuf:"varint,2,opt,name=count" json:"count"` } -func (m *CMSketchTopN) Reset() { *m = CMSketchTopN{} } -func (m *CMSketchTopN) String() string { return proto.CompactTextString(m) } -func (*CMSketchTopN) ProtoMessage() {} -func (*CMSketchTopN) Descriptor() ([]byte, []int) { return fileDescriptorAnalyze, []int{14} } +func (m *CMSketchTopN) Reset() { *m = CMSketchTopN{} } +func (m *CMSketchTopN) String() string { return proto.CompactTextString(m) } +func (*CMSketchTopN) ProtoMessage() {} +func (*CMSketchTopN) Descriptor() ([]byte, []int) { + return fileDescriptor_76c3eb6de5a1604f, []int{14} +} +func (m *CMSketchTopN) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CMSketchTopN) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CMSketchTopN.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CMSketchTopN) XXX_Merge(src proto.Message) { + xxx_messageInfo_CMSketchTopN.Merge(m, src) +} +func (m *CMSketchTopN) XXX_Size() int { + return m.Size() +} +func (m *CMSketchTopN) XXX_DiscardUnknown() { + xxx_messageInfo_CMSketchTopN.DiscardUnknown(m) +} + +var xxx_messageInfo_CMSketchTopN proto.InternalMessageInfo func (m *CMSketchTopN) GetData() []byte { if m != nil { @@ -810,16 +1116,43 @@ func (m *CMSketchTopN) GetCount() uint64 { } type CMSketch struct { - Rows []*CMSketchRow `protobuf:"bytes,1,rep,name=rows" json:"rows,omitempty"` - TopN []*CMSketchTopN `protobuf:"bytes,2,rep,name=top_n,json=topN" json:"top_n,omitempty"` - DefaultValue uint64 `protobuf:"varint,3,opt,name=default_value,json=defaultValue" json:"default_value"` - XXX_unrecognized []byte `json:"-"` + Rows []*CMSketchRow `protobuf:"bytes,1,rep,name=rows" json:"rows,omitempty"` + TopN []*CMSketchTopN `protobuf:"bytes,2,rep,name=top_n,json=topN" json:"top_n,omitempty"` + DefaultValue uint64 `protobuf:"varint,3,opt,name=default_value,json=defaultValue" json:"default_value"` +} + +func (m *CMSketch) Reset() { *m = CMSketch{} } +func (m *CMSketch) String() string { return proto.CompactTextString(m) } +func (*CMSketch) ProtoMessage() {} +func (*CMSketch) Descriptor() ([]byte, []int) { + return fileDescriptor_76c3eb6de5a1604f, []int{15} +} +func (m *CMSketch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CMSketch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CMSketch.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CMSketch) XXX_Merge(src proto.Message) { + xxx_messageInfo_CMSketch.Merge(m, src) +} +func (m *CMSketch) XXX_Size() int { + return m.Size() +} +func (m *CMSketch) XXX_DiscardUnknown() { + xxx_messageInfo_CMSketch.DiscardUnknown(m) } -func (m *CMSketch) Reset() { *m = CMSketch{} } -func (m *CMSketch) String() string { return proto.CompactTextString(m) } -func (*CMSketch) ProtoMessage() {} -func (*CMSketch) Descriptor() ([]byte, []int) { return fileDescriptorAnalyze, []int{15} } +var xxx_messageInfo_CMSketch proto.InternalMessageInfo func (m *CMSketch) GetRows() []*CMSketchRow { if m != nil { @@ -843,6 +1176,7 @@ func (m *CMSketch) GetDefaultValue() uint64 { } func init() { + proto.RegisterEnum("tipb.AnalyzeType", AnalyzeType_name, AnalyzeType_value) proto.RegisterType((*AnalyzeReq)(nil), "tipb.AnalyzeReq") proto.RegisterType((*AnalyzeIndexReq)(nil), "tipb.AnalyzeIndexReq") proto.RegisterType((*AnalyzeColumnsReq)(nil), "tipb.AnalyzeColumnsReq") @@ -859,12 +1193,98 @@ func init() { proto.RegisterType((*CMSketchRow)(nil), "tipb.CMSketchRow") proto.RegisterType((*CMSketchTopN)(nil), "tipb.CMSketchTopN") proto.RegisterType((*CMSketch)(nil), "tipb.CMSketch") - proto.RegisterEnum("tipb.AnalyzeType", AnalyzeType_name, AnalyzeType_value) } + +func init() { proto.RegisterFile("analyze.proto", fileDescriptor_76c3eb6de5a1604f) } + +var fileDescriptor_76c3eb6de5a1604f = []byte{ + // 1272 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0xcf, 0x6e, 0xdb, 0x46, + 0x13, 0x37, 0xf5, 0x5f, 0x23, 0xd9, 0x96, 0xf7, 0x4b, 0xf2, 0xb1, 0x46, 0xaa, 0x08, 0x0c, 0xd2, + 0x28, 0x49, 0xa1, 0x16, 0x0e, 0x7a, 0x08, 0x82, 0x06, 0xa8, 0x53, 0xa4, 0x09, 0xda, 0xa4, 0xc1, + 0x26, 0x68, 0x81, 0x5e, 0x08, 0x9a, 0x5c, 0x49, 0x84, 0x49, 0x2e, 0xcd, 0x5d, 0x46, 0x8e, 0xd1, + 0x6b, 0x7b, 0x6c, 0x7b, 0xcc, 0x23, 0xf4, 0xde, 0x3e, 0x44, 0x4e, 0x45, 0x8e, 0x39, 0x15, 0x45, + 0x8c, 0x5e, 0xfb, 0x0c, 0xc5, 0xce, 0x2e, 0x29, 0xc9, 0x96, 0x8b, 0xe4, 0xc4, 0x9d, 0x99, 0xdf, + 0xce, 0xce, 0xfc, 0x66, 0x76, 0x96, 0xb0, 0xee, 0x25, 0x5e, 0xf4, 0xfc, 0x88, 0x8d, 0xd2, 0x8c, + 0x4b, 0x4e, 0x6a, 0x32, 0x4c, 0xf7, 0xb6, 0xbb, 0xc2, 0x9f, 0xb2, 0xd8, 0xd3, 0xba, 0xed, 0x73, + 0x13, 0x3e, 0xe1, 0xb8, 0xfc, 0x48, 0xad, 0x8c, 0x76, 0x33, 0xcb, 0x85, 0xc4, 0xa5, 0x56, 0x38, + 0x3f, 0x57, 0x00, 0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 0x7f, 0x0d, 0xce, 0xfb, 0x3c, 0x1e, 0xa5, 0x61, 0x32, + 0xf1, 0xbd, 0x74, 0x24, 0xc3, 0x60, 0x0f, 0x93, 0x7e, 0x6c, 0xfd, 0x1b, 0x00, 0x00, 0xff, 0xff, + 0x10, 0xc3, 0x90, 0xb5, 0x82, 0x0b, 0x00, 0x00, +} + func (m *AnalyzeReq) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -872,54 +1292,60 @@ func (m *AnalyzeReq) Marshal() (dAtA []byte, err error) { } func (m *AnalyzeReq) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AnalyzeReq) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.Tp)) - if m.StartTsFallback != nil { - dAtA[i] = 0x10 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(*m.StartTsFallback)) - } - dAtA[i] = 0x18 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.Flags)) - dAtA[i] = 0x20 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.TimeZoneOffset)) - if m.IdxReq != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.IdxReq.Size())) - n1, err := m.IdxReq.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - } if m.ColReq != nil { + { + size, err := m.ColReq.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAnalyze(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x32 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.ColReq.Size())) - n2, err := m.ColReq.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.IdxReq != nil { + { + size, err := m.IdxReq.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAnalyze(dAtA, i, uint64(size)) } - i += n2 + i-- + dAtA[i] = 0x2a } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + i = encodeVarintAnalyze(dAtA, i, uint64(m.TimeZoneOffset)) + i-- + dAtA[i] = 0x20 + i = encodeVarintAnalyze(dAtA, i, uint64(m.Flags)) + i-- + dAtA[i] = 0x18 + if m.StartTsFallback != nil { + i = encodeVarintAnalyze(dAtA, i, uint64(*m.StartTsFallback)) + i-- + dAtA[i] = 0x10 } - return i, nil + i = encodeVarintAnalyze(dAtA, i, uint64(m.Tp)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *AnalyzeIndexReq) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -927,52 +1353,54 @@ func (m *AnalyzeIndexReq) Marshal() (dAtA []byte, err error) { } func (m *AnalyzeIndexReq) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AnalyzeIndexReq) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.BucketSize)) - dAtA[i] = 0x10 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.NumColumns)) - if m.CmsketchDepth != nil { - dAtA[i] = 0x18 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(*m.CmsketchDepth)) - } - if m.CmsketchWidth != nil { - dAtA[i] = 0x20 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(*m.CmsketchWidth)) + if m.Version != nil { + i = encodeVarintAnalyze(dAtA, i, uint64(*m.Version)) + i-- + dAtA[i] = 0x40 } - dAtA[i] = 0x28 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.SampleSize)) - dAtA[i] = 0x30 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.SketchSize)) if m.TopNSize != nil { - dAtA[i] = 0x38 - i++ i = encodeVarintAnalyze(dAtA, i, uint64(*m.TopNSize)) + i-- + dAtA[i] = 0x38 } - if m.Version != nil { - dAtA[i] = 0x40 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(*m.Version)) + i = encodeVarintAnalyze(dAtA, i, uint64(m.SketchSize)) + i-- + dAtA[i] = 0x30 + i = encodeVarintAnalyze(dAtA, i, uint64(m.SampleSize)) + i-- + dAtA[i] = 0x28 + if m.CmsketchWidth != nil { + i = encodeVarintAnalyze(dAtA, i, uint64(*m.CmsketchWidth)) + i-- + dAtA[i] = 0x20 } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + if m.CmsketchDepth != nil { + i = encodeVarintAnalyze(dAtA, i, uint64(*m.CmsketchDepth)) + i-- + dAtA[i] = 0x18 } - return i, nil + i = encodeVarintAnalyze(dAtA, i, uint64(m.NumColumns)) + i-- + dAtA[i] = 0x10 + i = encodeVarintAnalyze(dAtA, i, uint64(m.BucketSize)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *AnalyzeColumnsReq) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -980,88 +1408,94 @@ func (m *AnalyzeColumnsReq) Marshal() (dAtA []byte, err error) { } func (m *AnalyzeColumnsReq) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AnalyzeColumnsReq) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.BucketSize)) - dAtA[i] = 0x10 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.SampleSize)) - dAtA[i] = 0x18 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.SketchSize)) - if len(m.ColumnsInfo) > 0 { - for _, msg := range m.ColumnsInfo { - dAtA[i] = 0x22 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.SampleRate != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.SampleRate)))) + i-- + dAtA[i] = 0x59 + } + if len(m.ColumnGroups) > 0 { + for iNdEx := len(m.ColumnGroups) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ColumnGroups[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAnalyze(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x52 } } - if m.CmsketchDepth != nil { - dAtA[i] = 0x28 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(*m.CmsketchDepth)) + if len(m.PrimaryPrefixColumnIds) > 0 { + for iNdEx := len(m.PrimaryPrefixColumnIds) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintAnalyze(dAtA, i, uint64(m.PrimaryPrefixColumnIds[iNdEx])) + i-- + dAtA[i] = 0x48 + } } - if m.CmsketchWidth != nil { - dAtA[i] = 0x30 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(*m.CmsketchWidth)) + if m.Version != nil { + i = encodeVarintAnalyze(dAtA, i, uint64(*m.Version)) + i-- + dAtA[i] = 0x40 } if len(m.PrimaryColumnIds) > 0 { - for _, num := range m.PrimaryColumnIds { + for iNdEx := len(m.PrimaryColumnIds) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintAnalyze(dAtA, i, uint64(m.PrimaryColumnIds[iNdEx])) + i-- dAtA[i] = 0x38 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(num)) } } - if m.Version != nil { - dAtA[i] = 0x40 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(*m.Version)) + if m.CmsketchWidth != nil { + i = encodeVarintAnalyze(dAtA, i, uint64(*m.CmsketchWidth)) + i-- + dAtA[i] = 0x30 } - if len(m.PrimaryPrefixColumnIds) > 0 { - for _, num := range m.PrimaryPrefixColumnIds { - dAtA[i] = 0x48 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(num)) - } + if m.CmsketchDepth != nil { + i = encodeVarintAnalyze(dAtA, i, uint64(*m.CmsketchDepth)) + i-- + dAtA[i] = 0x28 } - if len(m.ColumnGroups) > 0 { - for _, msg := range m.ColumnGroups { - dAtA[i] = 0x52 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.ColumnsInfo) > 0 { + for iNdEx := len(m.ColumnsInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ColumnsInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAnalyze(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x22 } } - if m.SampleRate != nil { - dAtA[i] = 0x59 - i++ - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.SampleRate)))) - i += 8 - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + i = encodeVarintAnalyze(dAtA, i, uint64(m.SketchSize)) + i-- + dAtA[i] = 0x18 + i = encodeVarintAnalyze(dAtA, i, uint64(m.SampleSize)) + i-- + dAtA[i] = 0x10 + i = encodeVarintAnalyze(dAtA, i, uint64(m.BucketSize)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *AnalyzeMixedResp) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1069,40 +1503,46 @@ func (m *AnalyzeMixedResp) Marshal() (dAtA []byte, err error) { } func (m *AnalyzeMixedResp) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AnalyzeMixedResp) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.ColumnsResp != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.ColumnsResp.Size())) - n3, err := m.ColumnsResp.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 - } if m.IndexResp != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.IndexResp.Size())) - n4, err := m.IndexResp.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.IndexResp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAnalyze(dAtA, i, uint64(size)) } - i += n4 + i-- + dAtA[i] = 0x12 } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + if m.ColumnsResp != nil { + { + size, err := m.ColumnsResp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAnalyze(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *AnalyzeColumnGroup) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1110,34 +1550,36 @@ func (m *AnalyzeColumnGroup) Marshal() (dAtA []byte, err error) { } func (m *AnalyzeColumnGroup) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AnalyzeColumnGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ColumnOffsets) > 0 { - for _, num := range m.ColumnOffsets { - dAtA[i] = 0x8 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(num)) - } - } if len(m.PrefixLengths) > 0 { - for _, num := range m.PrefixLengths { + for iNdEx := len(m.PrefixLengths) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintAnalyze(dAtA, i, uint64(m.PrefixLengths[iNdEx])) + i-- dAtA[i] = 0x10 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(num)) } } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + if len(m.ColumnOffsets) > 0 { + for iNdEx := len(m.ColumnOffsets) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintAnalyze(dAtA, i, uint64(m.ColumnOffsets[iNdEx])) + i-- + dAtA[i] = 0x8 + } } - return i, nil + return len(dAtA) - i, nil } func (m *AnalyzeColumnsResp) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1145,52 +1587,60 @@ func (m *AnalyzeColumnsResp) Marshal() (dAtA []byte, err error) { } func (m *AnalyzeColumnsResp) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AnalyzeColumnsResp) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Collectors) > 0 { - for _, msg := range m.Collectors { - dAtA[i] = 0xa - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.RowCollector != nil { + { + size, err := m.RowCollector.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintAnalyze(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x1a } if m.PkHist != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.PkHist.Size())) - n5, err := m.PkHist.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.PkHist.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAnalyze(dAtA, i, uint64(size)) } - i += n5 + i-- + dAtA[i] = 0x12 } - if m.RowCollector != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.RowCollector.Size())) - n6, err := m.RowCollector.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Collectors) > 0 { + for iNdEx := len(m.Collectors) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Collectors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAnalyze(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - i += n6 } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + return len(dAtA) - i, nil } func (m *AnalyzeIndexResp) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1198,50 +1648,58 @@ func (m *AnalyzeIndexResp) Marshal() (dAtA []byte, err error) { } func (m *AnalyzeIndexResp) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AnalyzeIndexResp) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Hist != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.Hist.Size())) - n7, err := m.Hist.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Collector != nil { + { + size, err := m.Collector.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAnalyze(dAtA, i, uint64(size)) } - i += n7 + i-- + dAtA[i] = 0x1a } if m.Cms != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.Cms.Size())) - n8, err := m.Cms.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Cms.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAnalyze(dAtA, i, uint64(size)) } - i += n8 + i-- + dAtA[i] = 0x12 } - if m.Collector != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.Collector.Size())) - n9, err := m.Collector.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Hist != nil { + { + size, err := m.Hist.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAnalyze(dAtA, i, uint64(size)) } - i += n9 - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Bucket) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1249,43 +1707,47 @@ func (m *Bucket) Marshal() (dAtA []byte, err error) { } func (m *Bucket) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Bucket) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.Count)) - if m.LowerBound != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(len(m.LowerBound))) - i += copy(dAtA[i:], m.LowerBound) + if m.Ndv != nil { + i = encodeVarintAnalyze(dAtA, i, uint64(*m.Ndv)) + i-- + dAtA[i] = 0x28 } + i = encodeVarintAnalyze(dAtA, i, uint64(m.Repeats)) + i-- + dAtA[i] = 0x20 if m.UpperBound != nil { - dAtA[i] = 0x1a - i++ + i -= len(m.UpperBound) + copy(dAtA[i:], m.UpperBound) i = encodeVarintAnalyze(dAtA, i, uint64(len(m.UpperBound))) - i += copy(dAtA[i:], m.UpperBound) - } - dAtA[i] = 0x20 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.Repeats)) - if m.Ndv != nil { - dAtA[i] = 0x28 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(*m.Ndv)) + i-- + dAtA[i] = 0x1a } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + if m.LowerBound != nil { + i -= len(m.LowerBound) + copy(dAtA[i:], m.LowerBound) + i = encodeVarintAnalyze(dAtA, i, uint64(len(m.LowerBound))) + i-- + dAtA[i] = 0x12 } - return i, nil + i = encodeVarintAnalyze(dAtA, i, uint64(m.Count)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *Histogram) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1293,35 +1755,39 @@ func (m *Histogram) Marshal() (dAtA []byte, err error) { } func (m *Histogram) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Histogram) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.Ndv)) if len(m.Buckets) > 0 { - for _, msg := range m.Buckets { - dAtA[i] = 0x12 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Buckets) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Buckets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAnalyze(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + i = encodeVarintAnalyze(dAtA, i, uint64(m.Ndv)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *FMSketch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1329,30 +1795,32 @@ func (m *FMSketch) Marshal() (dAtA []byte, err error) { } func (m *FMSketch) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FMSketch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.Mask)) if len(m.Hashset) > 0 { - for _, num := range m.Hashset { + for iNdEx := len(m.Hashset) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintAnalyze(dAtA, i, uint64(m.Hashset[iNdEx])) + i-- dAtA[i] = 0x10 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(num)) } } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + i = encodeVarintAnalyze(dAtA, i, uint64(m.Mask)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *SampleCollector) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1360,59 +1828,66 @@ func (m *SampleCollector) Marshal() (dAtA []byte, err error) { } func (m *SampleCollector) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SampleCollector) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Samples) > 0 { - for _, b := range m.Samples { - dAtA[i] = 0xa - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) - } - } - dAtA[i] = 0x10 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.NullCount)) - dAtA[i] = 0x18 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.Count)) - if m.FmSketch != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.FmSketch.Size())) - n10, err := m.FmSketch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n10 + if m.TotalSize != nil { + i = encodeVarintAnalyze(dAtA, i, uint64(*m.TotalSize)) + i-- + dAtA[i] = 0x30 } if m.CmSketch != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.CmSketch.Size())) - n11, err := m.CmSketch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.CmSketch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAnalyze(dAtA, i, uint64(size)) } - i += n11 + i-- + dAtA[i] = 0x2a } - if m.TotalSize != nil { - dAtA[i] = 0x30 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(*m.TotalSize)) + if m.FmSketch != nil { + { + size, err := m.FmSketch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAnalyze(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + i = encodeVarintAnalyze(dAtA, i, uint64(m.Count)) + i-- + dAtA[i] = 0x18 + i = encodeVarintAnalyze(dAtA, i, uint64(m.NullCount)) + i-- + dAtA[i] = 0x10 + if len(m.Samples) > 0 { + for iNdEx := len(m.Samples) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Samples[iNdEx]) + copy(dAtA[i:], m.Samples[iNdEx]) + i = encodeVarintAnalyze(dAtA, i, uint64(len(m.Samples[iNdEx]))) + i-- + dAtA[i] = 0xa + } } - return i, nil + return len(dAtA) - i, nil } func (m *RowSampleCollector) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1420,61 +1895,67 @@ func (m *RowSampleCollector) Marshal() (dAtA []byte, err error) { } func (m *RowSampleCollector) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RowSampleCollector) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Samples) > 0 { - for _, msg := range m.Samples { - dAtA[i] = 0xa - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.TotalSize) > 0 { + for iNdEx := len(m.TotalSize) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintAnalyze(dAtA, i, uint64(m.TotalSize[iNdEx])) + i-- + dAtA[i] = 0x28 + } + } + if len(m.FmSketch) > 0 { + for iNdEx := len(m.FmSketch) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FmSketch[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAnalyze(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x22 } } + i = encodeVarintAnalyze(dAtA, i, uint64(m.Count)) + i-- + dAtA[i] = 0x18 if len(m.NullCounts) > 0 { - for _, num := range m.NullCounts { + for iNdEx := len(m.NullCounts) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintAnalyze(dAtA, i, uint64(m.NullCounts[iNdEx])) + i-- dAtA[i] = 0x10 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(num)) } } - dAtA[i] = 0x18 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.Count)) - if len(m.FmSketch) > 0 { - for _, msg := range m.FmSketch { - dAtA[i] = 0x22 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Samples) > 0 { + for iNdEx := len(m.Samples) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Samples[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAnalyze(dAtA, i, uint64(size)) } - i += n - } - } - if len(m.TotalSize) > 0 { - for _, num := range m.TotalSize { - dAtA[i] = 0x28 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(num)) + i-- + dAtA[i] = 0xa } } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + return len(dAtA) - i, nil } func (m *RowSample) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1482,31 +1963,34 @@ func (m *RowSample) Marshal() (dAtA []byte, err error) { } func (m *RowSample) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RowSample) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + i = encodeVarintAnalyze(dAtA, i, uint64(m.Weight)) + i-- + dAtA[i] = 0x10 if len(m.Row) > 0 { - for _, b := range m.Row { + for iNdEx := len(m.Row) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Row[iNdEx]) + copy(dAtA[i:], m.Row[iNdEx]) + i = encodeVarintAnalyze(dAtA, i, uint64(len(m.Row[iNdEx]))) + i-- dAtA[i] = 0xa - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) } } - dAtA[i] = 0x10 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.Weight)) - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + return len(dAtA) - i, nil } func (m *CMSketchRow) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1514,27 +1998,29 @@ func (m *CMSketchRow) Marshal() (dAtA []byte, err error) { } func (m *CMSketchRow) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CMSketchRow) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Counters) > 0 { - for _, num := range m.Counters { + for iNdEx := len(m.Counters) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintAnalyze(dAtA, i, uint64(m.Counters[iNdEx])) + i-- dAtA[i] = 0x8 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(num)) } } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + return len(dAtA) - i, nil } func (m *CMSketchTopN) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1542,29 +2028,32 @@ func (m *CMSketchTopN) Marshal() (dAtA []byte, err error) { } func (m *CMSketchTopN) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CMSketchTopN) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + i = encodeVarintAnalyze(dAtA, i, uint64(m.Count)) + i-- + dAtA[i] = 0x10 if m.Data != nil { - dAtA[i] = 0xa - i++ + i -= len(m.Data) + copy(dAtA[i:], m.Data) i = encodeVarintAnalyze(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) - } - dAtA[i] = 0x10 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.Count)) - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CMSketch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1572,53 +2061,64 @@ func (m *CMSketch) Marshal() (dAtA []byte, err error) { } func (m *CMSketch) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CMSketch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Rows) > 0 { - for _, msg := range m.Rows { - dAtA[i] = 0xa - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + i = encodeVarintAnalyze(dAtA, i, uint64(m.DefaultValue)) + i-- + dAtA[i] = 0x18 + if len(m.TopN) > 0 { + for iNdEx := len(m.TopN) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TopN[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAnalyze(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - if len(m.TopN) > 0 { - for _, msg := range m.TopN { - dAtA[i] = 0x12 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Rows) > 0 { + for iNdEx := len(m.Rows) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Rows[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAnalyze(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - dAtA[i] = 0x18 - i++ - i = encodeVarintAnalyze(dAtA, i, uint64(m.DefaultValue)) - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + return len(dAtA) - i, nil } func encodeVarintAnalyze(dAtA []byte, offset int, v uint64) int { + offset -= sovAnalyze(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *AnalyzeReq) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovAnalyze(uint64(m.Tp)) @@ -1635,13 +2135,13 @@ func (m *AnalyzeReq) Size() (n int) { l = m.ColReq.Size() n += 1 + l + sovAnalyze(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AnalyzeIndexReq) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovAnalyze(uint64(m.BucketSize)) @@ -1660,13 +2160,13 @@ func (m *AnalyzeIndexReq) Size() (n int) { if m.Version != nil { n += 1 + sovAnalyze(uint64(*m.Version)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AnalyzeColumnsReq) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovAnalyze(uint64(m.BucketSize)) @@ -1706,13 +2206,13 @@ func (m *AnalyzeColumnsReq) Size() (n int) { if m.SampleRate != nil { n += 9 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AnalyzeMixedResp) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ColumnsResp != nil { @@ -1723,13 +2223,13 @@ func (m *AnalyzeMixedResp) Size() (n int) { l = m.IndexResp.Size() n += 1 + l + sovAnalyze(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AnalyzeColumnGroup) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.ColumnOffsets) > 0 { @@ -1742,13 +2242,13 @@ func (m *AnalyzeColumnGroup) Size() (n int) { n += 1 + sovAnalyze(uint64(e)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AnalyzeColumnsResp) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Collectors) > 0 { @@ -1765,13 +2265,13 @@ func (m *AnalyzeColumnsResp) Size() (n int) { l = m.RowCollector.Size() n += 1 + l + sovAnalyze(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AnalyzeIndexResp) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Hist != nil { @@ -1786,13 +2286,13 @@ func (m *AnalyzeIndexResp) Size() (n int) { l = m.Collector.Size() n += 1 + l + sovAnalyze(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Bucket) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovAnalyze(uint64(m.Count)) @@ -1808,13 +2308,13 @@ func (m *Bucket) Size() (n int) { if m.Ndv != nil { n += 1 + sovAnalyze(uint64(*m.Ndv)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Histogram) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovAnalyze(uint64(m.Ndv)) @@ -1824,13 +2324,13 @@ func (m *Histogram) Size() (n int) { n += 1 + l + sovAnalyze(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *FMSketch) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovAnalyze(uint64(m.Mask)) @@ -1839,13 +2339,13 @@ func (m *FMSketch) Size() (n int) { n += 1 + sovAnalyze(uint64(e)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SampleCollector) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Samples) > 0 { @@ -1867,13 +2367,13 @@ func (m *SampleCollector) Size() (n int) { if m.TotalSize != nil { n += 1 + sovAnalyze(uint64(*m.TotalSize)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RowSampleCollector) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Samples) > 0 { @@ -1899,13 +2399,13 @@ func (m *RowSampleCollector) Size() (n int) { n += 1 + sovAnalyze(uint64(e)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RowSample) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Row) > 0 { @@ -1915,13 +2415,13 @@ func (m *RowSample) Size() (n int) { } } n += 1 + sovAnalyze(uint64(m.Weight)) - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CMSketchRow) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Counters) > 0 { @@ -1929,13 +2429,13 @@ func (m *CMSketchRow) Size() (n int) { n += 1 + sovAnalyze(uint64(e)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CMSketchTopN) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Data != nil { @@ -1943,13 +2443,13 @@ func (m *CMSketchTopN) Size() (n int) { n += 1 + l + sovAnalyze(uint64(l)) } n += 1 + sovAnalyze(uint64(m.Count)) - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CMSketch) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Rows) > 0 { @@ -1965,21 +2465,11 @@ func (m *CMSketch) Size() (n int) { } } n += 1 + sovAnalyze(uint64(m.DefaultValue)) - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovAnalyze(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozAnalyze(x uint64) (n int) { return sovAnalyze(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1999,7 +2489,7 @@ func (m *AnalyzeReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2027,7 +2517,7 @@ func (m *AnalyzeReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Tp |= (AnalyzeType(b) & 0x7F) << shift + m.Tp |= AnalyzeType(b&0x7F) << shift if b < 0x80 { break } @@ -2046,7 +2536,7 @@ func (m *AnalyzeReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2066,7 +2556,7 @@ func (m *AnalyzeReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Flags |= (uint64(b) & 0x7F) << shift + m.Flags |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2085,7 +2575,7 @@ func (m *AnalyzeReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TimeZoneOffset |= (int64(b) & 0x7F) << shift + m.TimeZoneOffset |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2104,7 +2594,7 @@ func (m *AnalyzeReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2113,6 +2603,9 @@ func (m *AnalyzeReq) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2137,7 +2630,7 @@ func (m *AnalyzeReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2146,6 +2639,9 @@ func (m *AnalyzeReq) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2162,13 +2658,12 @@ func (m *AnalyzeReq) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthAnalyze } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2193,7 +2688,7 @@ func (m *AnalyzeIndexReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2221,7 +2716,7 @@ func (m *AnalyzeIndexReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BucketSize |= (int64(b) & 0x7F) << shift + m.BucketSize |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2240,7 +2735,7 @@ func (m *AnalyzeIndexReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NumColumns |= (int32(b) & 0x7F) << shift + m.NumColumns |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -2259,7 +2754,7 @@ func (m *AnalyzeIndexReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int32(b) & 0x7F) << shift + v |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -2279,7 +2774,7 @@ func (m *AnalyzeIndexReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int32(b) & 0x7F) << shift + v |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -2299,7 +2794,7 @@ func (m *AnalyzeIndexReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SampleSize |= (int64(b) & 0x7F) << shift + m.SampleSize |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2318,7 +2813,7 @@ func (m *AnalyzeIndexReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SketchSize |= (int64(b) & 0x7F) << shift + m.SketchSize |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2337,7 +2832,7 @@ func (m *AnalyzeIndexReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int32(b) & 0x7F) << shift + v |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -2357,7 +2852,7 @@ func (m *AnalyzeIndexReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int32(b) & 0x7F) << shift + v |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -2369,13 +2864,12 @@ func (m *AnalyzeIndexReq) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthAnalyze } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2400,7 +2894,7 @@ func (m *AnalyzeColumnsReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2428,7 +2922,7 @@ func (m *AnalyzeColumnsReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BucketSize |= (int64(b) & 0x7F) << shift + m.BucketSize |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2447,7 +2941,7 @@ func (m *AnalyzeColumnsReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SampleSize |= (int64(b) & 0x7F) << shift + m.SampleSize |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2466,7 +2960,7 @@ func (m *AnalyzeColumnsReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SketchSize |= (int64(b) & 0x7F) << shift + m.SketchSize |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2485,7 +2979,7 @@ func (m *AnalyzeColumnsReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2494,6 +2988,9 @@ func (m *AnalyzeColumnsReq) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2516,7 +3013,7 @@ func (m *AnalyzeColumnsReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int32(b) & 0x7F) << shift + v |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -2536,7 +3033,7 @@ func (m *AnalyzeColumnsReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int32(b) & 0x7F) << shift + v |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -2554,7 +3051,7 @@ func (m *AnalyzeColumnsReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2571,7 +3068,7 @@ func (m *AnalyzeColumnsReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2580,9 +3077,23 @@ func (m *AnalyzeColumnsReq) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.PrimaryColumnIds) == 0 { + m.PrimaryColumnIds = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 for shift := uint(0); ; shift += 7 { @@ -2594,7 +3105,7 @@ func (m *AnalyzeColumnsReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2618,7 +3129,7 @@ func (m *AnalyzeColumnsReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int32(b) & 0x7F) << shift + v |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -2636,7 +3147,7 @@ func (m *AnalyzeColumnsReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2653,7 +3164,7 @@ func (m *AnalyzeColumnsReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2662,9 +3173,23 @@ func (m *AnalyzeColumnsReq) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.PrimaryPrefixColumnIds) == 0 { + m.PrimaryPrefixColumnIds = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 for shift := uint(0); ; shift += 7 { @@ -2676,7 +3201,7 @@ func (m *AnalyzeColumnsReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2700,7 +3225,7 @@ func (m *AnalyzeColumnsReq) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2709,6 +3234,9 @@ func (m *AnalyzeColumnsReq) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2735,13 +3263,12 @@ func (m *AnalyzeColumnsReq) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthAnalyze } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2766,7 +3293,7 @@ func (m *AnalyzeMixedResp) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2794,7 +3321,7 @@ func (m *AnalyzeMixedResp) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2803,6 +3330,9 @@ func (m *AnalyzeMixedResp) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2827,7 +3357,7 @@ func (m *AnalyzeMixedResp) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2836,6 +3366,9 @@ func (m *AnalyzeMixedResp) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2852,13 +3385,12 @@ func (m *AnalyzeMixedResp) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthAnalyze } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2883,7 +3415,7 @@ func (m *AnalyzeColumnGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2909,7 +3441,7 @@ func (m *AnalyzeColumnGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2926,7 +3458,7 @@ func (m *AnalyzeColumnGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2935,9 +3467,23 @@ func (m *AnalyzeColumnGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.ColumnOffsets) == 0 { + m.ColumnOffsets = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 for shift := uint(0); ; shift += 7 { @@ -2949,7 +3495,7 @@ func (m *AnalyzeColumnGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2971,7 +3517,7 @@ func (m *AnalyzeColumnGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2988,7 +3534,7 @@ func (m *AnalyzeColumnGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2997,9 +3543,23 @@ func (m *AnalyzeColumnGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.PrefixLengths) == 0 { + m.PrefixLengths = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 for shift := uint(0); ; shift += 7 { @@ -3011,7 +3571,7 @@ func (m *AnalyzeColumnGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -3027,13 +3587,12 @@ func (m *AnalyzeColumnGroup) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthAnalyze } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3058,7 +3617,7 @@ func (m *AnalyzeColumnsResp) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3086,7 +3645,7 @@ func (m *AnalyzeColumnsResp) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3095,6 +3654,9 @@ func (m *AnalyzeColumnsResp) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3117,7 +3679,7 @@ func (m *AnalyzeColumnsResp) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3126,6 +3688,9 @@ func (m *AnalyzeColumnsResp) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3150,7 +3715,7 @@ func (m *AnalyzeColumnsResp) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3159,6 +3724,9 @@ func (m *AnalyzeColumnsResp) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3175,13 +3743,12 @@ func (m *AnalyzeColumnsResp) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthAnalyze } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3206,7 +3773,7 @@ func (m *AnalyzeIndexResp) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3234,7 +3801,7 @@ func (m *AnalyzeIndexResp) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3243,6 +3810,9 @@ func (m *AnalyzeIndexResp) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3267,7 +3837,7 @@ func (m *AnalyzeIndexResp) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3276,6 +3846,9 @@ func (m *AnalyzeIndexResp) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3300,7 +3873,7 @@ func (m *AnalyzeIndexResp) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3309,6 +3882,9 @@ func (m *AnalyzeIndexResp) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3325,13 +3901,12 @@ func (m *AnalyzeIndexResp) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthAnalyze } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3356,7 +3931,7 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3384,7 +3959,7 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Count |= (int64(b) & 0x7F) << shift + m.Count |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -3403,7 +3978,7 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3412,6 +3987,9 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3434,7 +4012,7 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3443,6 +4021,9 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3465,7 +4046,7 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Repeats |= (int64(b) & 0x7F) << shift + m.Repeats |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -3484,7 +4065,7 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -3496,13 +4077,12 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthAnalyze } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3527,7 +4107,7 @@ func (m *Histogram) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3555,7 +4135,7 @@ func (m *Histogram) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ndv |= (int64(b) & 0x7F) << shift + m.Ndv |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -3574,7 +4154,7 @@ func (m *Histogram) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3583,6 +4163,9 @@ func (m *Histogram) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3597,13 +4180,12 @@ func (m *Histogram) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthAnalyze } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3628,7 +4210,7 @@ func (m *FMSketch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3656,7 +4238,7 @@ func (m *FMSketch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Mask |= (uint64(b) & 0x7F) << shift + m.Mask |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3673,7 +4255,7 @@ func (m *FMSketch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3690,7 +4272,7 @@ func (m *FMSketch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3699,9 +4281,23 @@ func (m *FMSketch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.Hashset) == 0 { + m.Hashset = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -3713,7 +4309,7 @@ func (m *FMSketch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3729,13 +4325,12 @@ func (m *FMSketch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthAnalyze } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3760,7 +4355,7 @@ func (m *SampleCollector) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3788,7 +4383,7 @@ func (m *SampleCollector) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3797,6 +4392,9 @@ func (m *SampleCollector) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3817,7 +4415,7 @@ func (m *SampleCollector) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NullCount |= (int64(b) & 0x7F) << shift + m.NullCount |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -3836,7 +4434,7 @@ func (m *SampleCollector) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Count |= (int64(b) & 0x7F) << shift + m.Count |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -3855,7 +4453,7 @@ func (m *SampleCollector) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3864,6 +4462,9 @@ func (m *SampleCollector) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3888,7 +4489,7 @@ func (m *SampleCollector) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3897,6 +4498,9 @@ func (m *SampleCollector) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3921,7 +4525,7 @@ func (m *SampleCollector) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -3933,13 +4537,12 @@ func (m *SampleCollector) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthAnalyze } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3964,7 +4567,7 @@ func (m *RowSampleCollector) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3992,7 +4595,7 @@ func (m *RowSampleCollector) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4001,6 +4604,9 @@ func (m *RowSampleCollector) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4021,7 +4627,7 @@ func (m *RowSampleCollector) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -4038,7 +4644,7 @@ func (m *RowSampleCollector) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4047,9 +4653,23 @@ func (m *RowSampleCollector) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.NullCounts) == 0 { + m.NullCounts = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 for shift := uint(0); ; shift += 7 { @@ -4061,7 +4681,7 @@ func (m *RowSampleCollector) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -4085,7 +4705,7 @@ func (m *RowSampleCollector) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Count |= (int64(b) & 0x7F) << shift + m.Count |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -4104,7 +4724,7 @@ func (m *RowSampleCollector) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4113,6 +4733,9 @@ func (m *RowSampleCollector) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4133,7 +4756,7 @@ func (m *RowSampleCollector) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -4150,7 +4773,7 @@ func (m *RowSampleCollector) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4159,9 +4782,23 @@ func (m *RowSampleCollector) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.TotalSize) == 0 { + m.TotalSize = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 for shift := uint(0); ; shift += 7 { @@ -4173,7 +4810,7 @@ func (m *RowSampleCollector) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -4189,13 +4826,12 @@ func (m *RowSampleCollector) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthAnalyze } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4220,7 +4856,7 @@ func (m *RowSample) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4248,7 +4884,7 @@ func (m *RowSample) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4257,6 +4893,9 @@ func (m *RowSample) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4277,7 +4916,7 @@ func (m *RowSample) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Weight |= (int64(b) & 0x7F) << shift + m.Weight |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -4288,13 +4927,12 @@ func (m *RowSample) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthAnalyze } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4319,7 +4957,7 @@ func (m *CMSketchRow) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4345,7 +4983,7 @@ func (m *CMSketchRow) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint32(b) & 0x7F) << shift + v |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -4362,7 +5000,7 @@ func (m *CMSketchRow) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4371,9 +5009,23 @@ func (m *CMSketchRow) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.Counters) == 0 { + m.Counters = make([]uint32, 0, elementCount) + } for iNdEx < postIndex { var v uint32 for shift := uint(0); ; shift += 7 { @@ -4385,7 +5037,7 @@ func (m *CMSketchRow) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint32(b) & 0x7F) << shift + v |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -4401,13 +5053,12 @@ func (m *CMSketchRow) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthAnalyze } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4432,7 +5083,7 @@ func (m *CMSketchTopN) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4460,7 +5111,7 @@ func (m *CMSketchTopN) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4469,6 +5120,9 @@ func (m *CMSketchTopN) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4491,7 +5145,7 @@ func (m *CMSketchTopN) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Count |= (uint64(b) & 0x7F) << shift + m.Count |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4502,13 +5156,12 @@ func (m *CMSketchTopN) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthAnalyze } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4533,7 +5186,7 @@ func (m *CMSketch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4561,7 +5214,7 @@ func (m *CMSketch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4570,6 +5223,9 @@ func (m *CMSketch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4592,7 +5248,7 @@ func (m *CMSketch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4601,6 +5257,9 @@ func (m *CMSketch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAnalyze } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAnalyze + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4623,7 +5282,7 @@ func (m *CMSketch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DefaultValue |= (uint64(b) & 0x7F) << shift + m.DefaultValue |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4634,13 +5293,12 @@ func (m *CMSketch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthAnalyze } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4653,6 +5311,7 @@ func (m *CMSketch) Unmarshal(dAtA []byte) error { func skipAnalyze(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -4684,10 +5343,8 @@ func skipAnalyze(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -4704,137 +5361,34 @@ func skipAnalyze(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthAnalyze } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowAnalyze - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipAnalyze(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAnalyze + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthAnalyze + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthAnalyze = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowAnalyze = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthAnalyze = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAnalyze = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAnalyze = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("analyze.proto", fileDescriptorAnalyze) } - -var fileDescriptorAnalyze = []byte{ - // 1244 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0x5f, 0x6f, 0xdc, 0x44, - 0x10, 0xaf, 0xcf, 0xf7, 0x77, 0xee, 0x92, 0x5c, 0x96, 0xb6, 0x98, 0xa8, 0xa4, 0x27, 0x57, 0xa5, - 0x97, 0x16, 0x1d, 0x28, 0x15, 0x0f, 0xa8, 0xa2, 0x12, 0x29, 0x2a, 0xad, 0xa0, 0xa5, 0xda, 0x56, - 0x20, 0xf1, 0x62, 0x39, 0xf6, 0xde, 0x9d, 0x15, 0xdb, 0xeb, 0x78, 0xd7, 0xbd, 0x34, 0xe2, 0x15, - 0x1e, 0xe1, 0xb5, 0xdf, 0x03, 0x3e, 0x44, 0x9f, 0x10, 0x9f, 0x00, 0xa1, 0x22, 0x5e, 0xf9, 0x0c, - 0x68, 0x67, 0xd7, 0xbe, 0x3f, 0xb9, 0xa0, 0xf6, 0xc9, 0x3b, 0x33, 0xbf, 0x9d, 0x9d, 0xf9, 0xcd, - 0xec, 0xac, 0x61, 0xc3, 0x4f, 0xfd, 0xf8, 0xc5, 0x29, 0x1b, 0x65, 0x39, 0x97, 0x9c, 0xd4, 0x65, - 0x94, 0x1d, 0xee, 0xf4, 0x44, 0x30, 0x65, 0x89, 0xaf, 0x75, 0x3b, 0x17, 0x27, 0x7c, 0xc2, 0x71, - 0xf9, 0x91, 0x5a, 0x69, 0xad, 0xfb, 0x4b, 0x0d, 0xe0, 0x73, 0xbd, 0x97, 0xb2, 0x63, 0x72, 0x03, - 0x6a, 0x32, 0x73, 0xac, 0x81, 0x35, 0xdc, 0xdc, 0xdf, 0x1e, 0x29, 0x2f, 0x23, 0x63, 0x7d, 0xf6, - 0x22, 0x63, 0x07, 0xf5, 0x57, 0x7f, 0x5e, 0xbd, 0x40, 0x6b, 0x32, 0x23, 0x37, 0x61, 0x5b, 0x48, - 0x3f, 0x97, 0x9e, 0x14, 0xde, 0xd8, 0x8f, 0xe3, 0x43, 0x3f, 0x38, 0x72, 0x6a, 0x03, 0x6b, 0x58, - 0xa7, 0x5b, 0x68, 0x78, 0x26, 0xee, 0x1b, 0x35, 0xd9, 0x81, 0xc6, 0x38, 0xf6, 0x27, 0xc2, 0xb1, - 0x95, 0xdd, 0x38, 0xd1, 0x2a, 0x32, 0x82, 0xbe, 0x8c, 0x12, 0xe6, 0x9d, 0xf2, 0x94, 0x79, 0x7c, - 0x3c, 0x16, 0x4c, 0x3a, 0xf5, 0x81, 0x35, 0xb4, 0x0d, 0x6c, 0x53, 0x59, 0xbf, 0xe7, 0x29, 0xfb, - 0x06, 0x6d, 0x64, 0x04, 0xad, 0x28, 0x3c, 0xf1, 0x72, 0x76, 0xec, 0x34, 0x06, 0xd6, 0xb0, 0xbb, - 0x7f, 0x69, 0x29, 0xca, 0x87, 0x69, 0xc8, 0x4e, 0x28, 0x3b, 0xa6, 0xcd, 0x28, 0x54, 0x5f, 0xf2, - 0x31, 0xb4, 0x02, 0x1e, 0x23, 0xbe, 0x89, 0xf8, 0x77, 0x97, 0xf0, 0xf7, 0x78, 0x5c, 0x24, 0xa9, - 0xc0, 0x1d, 0x01, 0x8f, 0x29, 0x3b, 0x76, 0x7f, 0xad, 0xc1, 0xd6, 0x8a, 0x37, 0x72, 0x1d, 0xba, - 0x87, 0x45, 0x70, 0xc4, 0xa4, 0x27, 0xa2, 0x53, 0x86, 0xfc, 0x94, 0x01, 0x82, 0x36, 0x3c, 0x8d, - 0x4e, 0x99, 0x82, 0xa5, 0x45, 0xe2, 0x05, 0xda, 0x29, 0xd2, 0xd1, 0x28, 0x61, 0x69, 0x91, 0x98, - 0xc3, 0xc8, 0x75, 0xd8, 0x0c, 0x12, 0x71, 0xc4, 0x64, 0x30, 0xf5, 0x42, 0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0x3b, 0xc9, 0x79, 0x91, 0x09, 0x07, 0x90, 0x06, 0x67, 0x4d, 0xfb, 0x7f, 0xa9, 0x00, 0xd4, - 0x90, 0x86, 0x82, 0x20, 0x57, 0xab, 0x92, 0xe4, 0xbe, 0x64, 0x4e, 0x77, 0x60, 0x0d, 0xad, 0xb2, - 0x18, 0xd4, 0x97, 0xcc, 0xfd, 0xc9, 0x82, 0xbe, 0xf1, 0xf2, 0x28, 0x3a, 0x61, 0x21, 0x65, 0x22, - 0x23, 0x77, 0xe6, 0xd4, 0xe7, 0x4c, 0xe8, 0x41, 0xb2, 0xfe, 0x4c, 0xa1, 0xf0, 0x55, 0x09, 0x70, - 0xf3, 0x27, 0x00, 0x91, 0xba, 0x70, 0x7a, 0x6b, 0x0d, 0xb7, 0x5e, 0x5e, 0x77, 0xbb, 0x45, 0x46, - 0x3b, 0x51, 0xb9, 0x74, 0x0f, 0x81, 0x9c, 0xcd, 0x06, 0x0b, 0xa5, 0xd3, 0xd7, 0x43, 0x45, 0x38, - 0x16, 0xd2, 0x65, 0x48, 0xd1, 0xd3, 0x04, 0xaf, 0xa2, 0x21, 0x36, 0x66, 0xe9, 0x44, 0x4e, 0xd5, - 0xa5, 0x45, 0x98, 0xd6, 0x7e, 0xad, 0x95, 0xee, 0x6f, 0xd6, 0xca, 0x21, 0x55, 0xc4, 0x01, 0x8f, - 0x63, 0x16, 0x48, 0x9e, 0xeb, 0x03, 0xaa, 0x79, 0xf4, 0x14, 0x99, 0xba, 0x57, 0x5a, 0xe9, 0x02, - 0x90, 0x0c, 0xa1, 0x95, 0x1d, 0x79, 0xd3, 0x48, 0x48, 0x93, 0xe5, 0x96, 0xde, 0xf3, 0x20, 0x12, - 0x92, 0x4f, 0x72, 0x3f, 0xa1, 0xcd, 0xec, 0x48, 0x09, 0xaa, 0x88, 0x39, 0x9f, 0x79, 0xd5, 0x5e, - 0xec, 0xf9, 0x8a, 0x50, 0xca, 0x67, 0xab, 0xc7, 0xf4, 0x72, 0x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x4b, 0x07, 0xe4, 0x3a, 0xd4, 0x73, 0x3e, 0x2b, 0xb9, 0xde, 0x5e, - 0x29, 0x26, 0x9f, 0x51, 0x34, 0x93, 0x1b, 0xd0, 0xc0, 0x5f, 0x03, 0xd3, 0xfa, 0x64, 0x19, 0xa7, - 0xc2, 0xa0, 0x75, 0xf5, 0xa7, 0x40, 0xf6, 0x60, 0x23, 0x64, 0x63, 0xbf, 0x88, 0xa5, 0xf7, 0xdc, - 0x8f, 0x0b, 0xb6, 0xf4, 0xdf, 0xd7, 0x33, 0xa6, 0x6f, 0x95, 0xe5, 0xe6, 0x0f, 0xd0, 0x5d, 0xf8, - 0xbf, 0x24, 0x1b, 0xd0, 0x51, 0x5f, 0x1c, 0x56, 0xfd, 0x0b, 0x64, 0x13, 0x40, 0x89, 0x7a, 0xe4, - 0xf6, 0x2d, 0x72, 0x11, 0xfa, 0x5a, 0x4e, 0x12, 0x9e, 0x3e, 0xf0, 0xd3, 0x30, 0x66, 0xfd, 0x1a, - 0x79, 0x07, 0xb6, 0x94, 0x56, 0x93, 0xae, 0xb7, 0xda, 0xa5, 0x27, 0x7c, 0x9a, 0xfa, 0xf5, 0x72, - 0xe7, 0xfd, 0x22, 0x8e, 0x11, 0x17, 0xa5, 0x93, 0x7e, 0xe3, 0x60, 0xef, 0xd5, 0xeb, 0x5d, 0xeb, - 0x8f, 0xd7, 0xbb, 0xd6, 0x5f, 0xaf, 0x77, 0xad, 0x97, 0x7f, 0xef, 0x5e, 0x80, 0x4b, 0x01, 0x4f, - 0x46, 0x59, 0x94, 0x4e, 0x02, 0x3f, 0x1b, 0xc9, 0x28, 0x3c, 0xc4, 0x24, 0x9f, 0x58, 0xff, 0x05, - 0x00, 0x00, 0xff, 0xff, 0x3c, 0xd9, 0x10, 0xfc, 0x61, 0x0b, 0x00, 0x00, -} diff --git a/go-tipb/checksum.pb.go b/go-tipb/checksum.pb.go index d5eadbf40..0f879162e 100644 --- a/go-tipb/checksum.pb.go +++ b/go-tipb/checksum.pb.go @@ -5,12 +5,13 @@ package tipb import ( "fmt" + "io" + "math" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - math "math" - - io "io" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. @@ -18,6 +19,12 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + type ChecksumScanOn int32 const ( @@ -29,6 +36,7 @@ var ChecksumScanOn_name = map[int32]string{ 0: "Table", 1: "Index", } + var ChecksumScanOn_value = map[string]int32{ "Table": 0, "Index": 1, @@ -39,9 +47,11 @@ func (x ChecksumScanOn) Enum() *ChecksumScanOn { *p = x return p } + func (x ChecksumScanOn) String() string { return proto.EnumName(ChecksumScanOn_name, int32(x)) } + func (x *ChecksumScanOn) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(ChecksumScanOn_value, data, "ChecksumScanOn") if err != nil { @@ -50,7 +60,10 @@ func (x *ChecksumScanOn) UnmarshalJSON(data []byte) error { *x = ChecksumScanOn(value) return nil } -func (ChecksumScanOn) EnumDescriptor() ([]byte, []int) { return fileDescriptorChecksum, []int{0} } + +func (ChecksumScanOn) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_843938c28b799986, []int{0} +} type ChecksumAlgorithm int32 @@ -61,6 +74,7 @@ const ( var ChecksumAlgorithm_name = map[int32]string{ 0: "Crc64_Xor", } + var ChecksumAlgorithm_value = map[string]int32{ "Crc64_Xor": 0, } @@ -70,9 +84,11 @@ func (x ChecksumAlgorithm) Enum() *ChecksumAlgorithm { *p = x return p } + func (x ChecksumAlgorithm) String() string { return proto.EnumName(ChecksumAlgorithm_name, int32(x)) } + func (x *ChecksumAlgorithm) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(ChecksumAlgorithm_value, data, "ChecksumAlgorithm") if err != nil { @@ -81,18 +97,48 @@ func (x *ChecksumAlgorithm) UnmarshalJSON(data []byte) error { *x = ChecksumAlgorithm(value) return nil } -func (ChecksumAlgorithm) EnumDescriptor() ([]byte, []int) { return fileDescriptorChecksum, []int{1} } + +func (ChecksumAlgorithm) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_843938c28b799986, []int{1} +} type ChecksumRewriteRule struct { - OldPrefix []byte `protobuf:"bytes,1,opt,name=old_prefix,json=oldPrefix" json:"old_prefix,omitempty"` - NewPrefix []byte `protobuf:"bytes,2,opt,name=new_prefix,json=newPrefix" json:"new_prefix,omitempty"` - XXX_unrecognized []byte `json:"-"` + OldPrefix []byte `protobuf:"bytes,1,opt,name=old_prefix,json=oldPrefix" json:"old_prefix,omitempty"` + NewPrefix []byte `protobuf:"bytes,2,opt,name=new_prefix,json=newPrefix" json:"new_prefix,omitempty"` +} + +func (m *ChecksumRewriteRule) Reset() { *m = ChecksumRewriteRule{} } +func (m *ChecksumRewriteRule) String() string { return proto.CompactTextString(m) } +func (*ChecksumRewriteRule) ProtoMessage() {} +func (*ChecksumRewriteRule) Descriptor() ([]byte, []int) { + return fileDescriptor_843938c28b799986, []int{0} +} +func (m *ChecksumRewriteRule) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ChecksumRewriteRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ChecksumRewriteRule.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ChecksumRewriteRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChecksumRewriteRule.Merge(m, src) +} +func (m *ChecksumRewriteRule) XXX_Size() int { + return m.Size() +} +func (m *ChecksumRewriteRule) XXX_DiscardUnknown() { + xxx_messageInfo_ChecksumRewriteRule.DiscardUnknown(m) } -func (m *ChecksumRewriteRule) Reset() { *m = ChecksumRewriteRule{} } -func (m *ChecksumRewriteRule) String() string { return proto.CompactTextString(m) } -func (*ChecksumRewriteRule) ProtoMessage() {} -func (*ChecksumRewriteRule) Descriptor() ([]byte, []int) { return fileDescriptorChecksum, []int{0} } +var xxx_messageInfo_ChecksumRewriteRule proto.InternalMessageInfo func (m *ChecksumRewriteRule) GetOldPrefix() []byte { if m != nil { @@ -110,17 +156,44 @@ func (m *ChecksumRewriteRule) GetNewPrefix() []byte { type ChecksumRequest struct { // Deprecated. Start Ts has been moved to coprocessor.Request. - StartTsFallback *uint64 `protobuf:"varint,1,opt,name=start_ts_fallback,json=startTsFallback" json:"start_ts_fallback,omitempty"` - ScanOn ChecksumScanOn `protobuf:"varint,2,opt,name=scan_on,json=scanOn,enum=tipb.ChecksumScanOn" json:"scan_on"` - Algorithm ChecksumAlgorithm `protobuf:"varint,3,opt,name=algorithm,enum=tipb.ChecksumAlgorithm" json:"algorithm"` - Rule *ChecksumRewriteRule `protobuf:"bytes,4,opt,name=rule" json:"rule,omitempty"` - XXX_unrecognized []byte `json:"-"` + StartTsFallback *uint64 `protobuf:"varint,1,opt,name=start_ts_fallback,json=startTsFallback" json:"start_ts_fallback,omitempty"` + ScanOn ChecksumScanOn `protobuf:"varint,2,opt,name=scan_on,json=scanOn,enum=tipb.ChecksumScanOn" json:"scan_on"` + Algorithm ChecksumAlgorithm `protobuf:"varint,3,opt,name=algorithm,enum=tipb.ChecksumAlgorithm" json:"algorithm"` + Rule *ChecksumRewriteRule `protobuf:"bytes,4,opt,name=rule" json:"rule,omitempty"` +} + +func (m *ChecksumRequest) Reset() { *m = ChecksumRequest{} } +func (m *ChecksumRequest) String() string { return proto.CompactTextString(m) } +func (*ChecksumRequest) ProtoMessage() {} +func (*ChecksumRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_843938c28b799986, []int{1} +} +func (m *ChecksumRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ChecksumRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ChecksumRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ChecksumRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChecksumRequest.Merge(m, src) +} +func (m *ChecksumRequest) XXX_Size() int { + return m.Size() +} +func (m *ChecksumRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ChecksumRequest.DiscardUnknown(m) } -func (m *ChecksumRequest) Reset() { *m = ChecksumRequest{} } -func (m *ChecksumRequest) String() string { return proto.CompactTextString(m) } -func (*ChecksumRequest) ProtoMessage() {} -func (*ChecksumRequest) Descriptor() ([]byte, []int) { return fileDescriptorChecksum, []int{1} } +var xxx_messageInfo_ChecksumRequest proto.InternalMessageInfo func (m *ChecksumRequest) GetStartTsFallback() uint64 { if m != nil && m.StartTsFallback != nil { @@ -151,16 +224,43 @@ func (m *ChecksumRequest) GetRule() *ChecksumRewriteRule { } type ChecksumResponse struct { - Checksum uint64 `protobuf:"varint,1,opt,name=checksum" json:"checksum"` - TotalKvs uint64 `protobuf:"varint,2,opt,name=total_kvs,json=totalKvs" json:"total_kvs"` - TotalBytes uint64 `protobuf:"varint,3,opt,name=total_bytes,json=totalBytes" json:"total_bytes"` - XXX_unrecognized []byte `json:"-"` + Checksum uint64 `protobuf:"varint,1,opt,name=checksum" json:"checksum"` + TotalKvs uint64 `protobuf:"varint,2,opt,name=total_kvs,json=totalKvs" json:"total_kvs"` + TotalBytes uint64 `protobuf:"varint,3,opt,name=total_bytes,json=totalBytes" json:"total_bytes"` +} + +func (m *ChecksumResponse) Reset() { *m = ChecksumResponse{} } +func (m *ChecksumResponse) String() string { return proto.CompactTextString(m) } +func (*ChecksumResponse) ProtoMessage() {} +func (*ChecksumResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_843938c28b799986, []int{2} +} +func (m *ChecksumResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ChecksumResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ChecksumResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ChecksumResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChecksumResponse.Merge(m, src) +} +func (m *ChecksumResponse) XXX_Size() int { + return m.Size() +} +func (m *ChecksumResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ChecksumResponse.DiscardUnknown(m) } -func (m *ChecksumResponse) Reset() { *m = ChecksumResponse{} } -func (m *ChecksumResponse) String() string { return proto.CompactTextString(m) } -func (*ChecksumResponse) ProtoMessage() {} -func (*ChecksumResponse) Descriptor() ([]byte, []int) { return fileDescriptorChecksum, []int{2} } +var xxx_messageInfo_ChecksumResponse proto.InternalMessageInfo func (m *ChecksumResponse) GetChecksum() uint64 { if m != nil { @@ -184,16 +284,50 @@ func (m *ChecksumResponse) GetTotalBytes() uint64 { } func init() { + proto.RegisterEnum("tipb.ChecksumScanOn", ChecksumScanOn_name, ChecksumScanOn_value) + proto.RegisterEnum("tipb.ChecksumAlgorithm", ChecksumAlgorithm_name, ChecksumAlgorithm_value) proto.RegisterType((*ChecksumRewriteRule)(nil), "tipb.ChecksumRewriteRule") proto.RegisterType((*ChecksumRequest)(nil), "tipb.ChecksumRequest") proto.RegisterType((*ChecksumResponse)(nil), "tipb.ChecksumResponse") - proto.RegisterEnum("tipb.ChecksumScanOn", ChecksumScanOn_name, ChecksumScanOn_value) - proto.RegisterEnum("tipb.ChecksumAlgorithm", ChecksumAlgorithm_name, ChecksumAlgorithm_value) } + +func init() { proto.RegisterFile("checksum.proto", fileDescriptor_843938c28b799986) } + +var fileDescriptor_843938c28b799986 = []byte{ + // 422 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00,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0x9d, 0x2f, 0x03, 0x74, 0xb1, 0x0c, 0xd0, 0xdf, 0x65, 0x80, 0x7e, 0xd5, 0x81, 0xf3, 0xbb, 0x0e, + 0x9c, 0x8b, 0x3a, 0x70, 0x2e, 0xeb, 0xc0, 0x81, 0x47, 0x54, 0xce, 0xa3, 0xb2, 0x10, 0x39, 0x25, + 0x65, 0x64, 0x8a, 0x2c, 0xb5, 0xe7, 0x39, 0x40, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xa3, 0xe1, + 0xab, 0x6b, 0x7a, 0x02, 0x00, 0x00, +} + func (m *ChecksumRewriteRule) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -201,32 +335,36 @@ func (m *ChecksumRewriteRule) Marshal() (dAtA []byte, err error) { } func (m *ChecksumRewriteRule) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ChecksumRewriteRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.OldPrefix != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintChecksum(dAtA, i, uint64(len(m.OldPrefix))) - i += copy(dAtA[i:], m.OldPrefix) - } if m.NewPrefix != nil { - dAtA[i] = 0x12 - i++ + i -= len(m.NewPrefix) + copy(dAtA[i:], m.NewPrefix) i = encodeVarintChecksum(dAtA, i, uint64(len(m.NewPrefix))) - i += copy(dAtA[i:], m.NewPrefix) + i-- + dAtA[i] = 0x12 } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + if m.OldPrefix != nil { + i -= len(m.OldPrefix) + copy(dAtA[i:], m.OldPrefix) + i = encodeVarintChecksum(dAtA, i, uint64(len(m.OldPrefix))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ChecksumRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -234,41 +372,45 @@ func (m *ChecksumRequest) Marshal() (dAtA []byte, err error) { } func (m *ChecksumRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ChecksumRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.StartTsFallback != nil { - dAtA[i] = 0x8 - i++ - i = encodeVarintChecksum(dAtA, i, uint64(*m.StartTsFallback)) - } - dAtA[i] = 0x10 - i++ - i = encodeVarintChecksum(dAtA, i, uint64(m.ScanOn)) - dAtA[i] = 0x18 - i++ - i = encodeVarintChecksum(dAtA, i, uint64(m.Algorithm)) if m.Rule != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintChecksum(dAtA, i, uint64(m.Rule.Size())) - n1, err := m.Rule.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Rule.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChecksum(dAtA, i, uint64(size)) } - i += n1 + i-- + dAtA[i] = 0x22 } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + i = encodeVarintChecksum(dAtA, i, uint64(m.Algorithm)) + i-- + dAtA[i] = 0x18 + i = encodeVarintChecksum(dAtA, i, uint64(m.ScanOn)) + i-- + dAtA[i] = 0x10 + if m.StartTsFallback != nil { + i = encodeVarintChecksum(dAtA, i, uint64(*m.StartTsFallback)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *ChecksumResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -276,35 +418,42 @@ func (m *ChecksumResponse) Marshal() (dAtA []byte, err error) { } func (m *ChecksumResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ChecksumResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintChecksum(dAtA, i, uint64(m.Checksum)) - dAtA[i] = 0x10 - i++ - i = encodeVarintChecksum(dAtA, i, uint64(m.TotalKvs)) - dAtA[i] = 0x18 - i++ i = encodeVarintChecksum(dAtA, i, uint64(m.TotalBytes)) - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + i-- + dAtA[i] = 0x18 + i = encodeVarintChecksum(dAtA, i, uint64(m.TotalKvs)) + i-- + dAtA[i] = 0x10 + i = encodeVarintChecksum(dAtA, i, uint64(m.Checksum)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func encodeVarintChecksum(dAtA []byte, offset int, v uint64) int { + offset -= sovChecksum(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *ChecksumRewriteRule) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.OldPrefix != nil { @@ -315,13 +464,13 @@ func (m *ChecksumRewriteRule) Size() (n int) { l = len(m.NewPrefix) n += 1 + l + sovChecksum(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ChecksumRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StartTsFallback != nil { @@ -333,33 +482,23 @@ func (m *ChecksumRequest) Size() (n int) { l = m.Rule.Size() n += 1 + l + sovChecksum(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ChecksumResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovChecksum(uint64(m.Checksum)) n += 1 + sovChecksum(uint64(m.TotalKvs)) n += 1 + sovChecksum(uint64(m.TotalBytes)) - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovChecksum(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozChecksum(x uint64) (n int) { return sovChecksum(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -379,7 +518,7 @@ func (m *ChecksumRewriteRule) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -407,7 +546,7 @@ func (m *ChecksumRewriteRule) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -416,6 +555,9 @@ func (m *ChecksumRewriteRule) Unmarshal(dAtA []byte) error { return ErrInvalidLengthChecksum } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthChecksum + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -438,7 +580,7 @@ func (m *ChecksumRewriteRule) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -447,6 +589,9 @@ func (m *ChecksumRewriteRule) Unmarshal(dAtA []byte) error { return ErrInvalidLengthChecksum } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthChecksum + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -461,13 +606,12 @@ func (m *ChecksumRewriteRule) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthChecksum } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -492,7 +636,7 @@ func (m *ChecksumRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -520,7 +664,7 @@ func (m *ChecksumRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -540,7 +684,7 @@ func (m *ChecksumRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ScanOn |= (ChecksumScanOn(b) & 0x7F) << shift + m.ScanOn |= ChecksumScanOn(b&0x7F) << shift if b < 0x80 { break } @@ -559,7 +703,7 @@ func (m *ChecksumRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Algorithm |= (ChecksumAlgorithm(b) & 0x7F) << shift + m.Algorithm |= ChecksumAlgorithm(b&0x7F) << shift if b < 0x80 { break } @@ -578,7 +722,7 @@ func (m *ChecksumRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -587,6 +731,9 @@ func (m *ChecksumRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthChecksum } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthChecksum + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -603,13 +750,12 @@ func (m *ChecksumRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthChecksum } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -634,7 +780,7 @@ func (m *ChecksumResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -662,7 +808,7 @@ func (m *ChecksumResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Checksum |= (uint64(b) & 0x7F) << shift + m.Checksum |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -681,7 +827,7 @@ func (m *ChecksumResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalKvs |= (uint64(b) & 0x7F) << shift + m.TotalKvs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -700,7 +846,7 @@ func (m *ChecksumResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalBytes |= (uint64(b) & 0x7F) << shift + m.TotalBytes |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -711,13 +857,12 @@ func (m *ChecksumResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthChecksum } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -730,6 +875,7 @@ func (m *ChecksumResponse) Unmarshal(dAtA []byte) error { func skipChecksum(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -761,10 +907,8 @@ func skipChecksum(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -781,84 +925,34 @@ func skipChecksum(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthChecksum } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowChecksum - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipChecksum(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupChecksum + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthChecksum + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthChecksum = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowChecksum = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthChecksum = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowChecksum = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupChecksum = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("checksum.proto", fileDescriptorChecksum) } - -var fileDescriptorChecksum = []byte{ - // 395 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0xcf, 0x8e, 0xd3, 0x30, - 0x18, 0xc4, 0x63, 0x08, 0x7f, 0xf2, 0x2d, 0x74, 0xb3, 0x66, 0x11, 0x05, 0x89, 0x50, 0x22, 0x81, - 0x96, 0x4a, 0x04, 0x69, 0x41, 0x5c, 0x38, 0xd1, 0x95, 0x90, 0x10, 0x07, 0x56, 0xd9, 0x1e, 0xb8, - 0x45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 0xf0, 0xec, 0x63, 0x87, 0xdb, 0xcb, 0xbd, 0x1f, 0xbf, - 0x06, 0x57, 0x55, 0x9c, 0xf5, 0xdd, 0x01, 0x3a, 0x3b, 0x3a, 0x7f, 0x7c, 0x78, 0xf7, 0xdf, 0x30, - 0xb1, 0xb5, 0x85, 0x3f, 0xc1, 0xdf, 0x43, 0x5d, 0x4a, 0xa1, 0x19, 0x1e, 0xc0, 0xdd, 0x6e, 0xf7, - 0xa6, 0x57, 0xfb, 0x97, 0x9d, 0x8a, 0x9f, 0x83, 0x67, 0xa4, 0x21, 0x3c, 0x99, 0x2d, 0xb4, 0x2d, - 0xb6, 0xb3, 0x58, 0xf9, 0xcb, 0x42, 0xe3, 0x17, 0x70, 0xd4, 0x58, 0xd2, 0x1f, 0x86, 0x69, 0x5b, - 0xa3, 0x33, 0x81, 0x05, 0xa3, 0x5a, 0x1f, 0xbe, 0x84, 0xde, 0xe1, 0x16, 0xd8, 0x83, 0x5b, 0x63, - 0x92, 0x72, 0xe6, 0x3b, 0xf5, 0xf3, 0xb3, 0xc8, 0xd8, 0xca, 0x47, 0xc3, 0x10, 0x4e, 0xae, 0x95, - 0xc7, 0xf7, 0xc1, 0xbb, 0x50, 0xf4, 0xfd, 0xbb, 0xe4, 0x9b, 0x54, 0xbe, 0x33, 0x7a, 0xb5, 0xde, - 0x06, 0xe8, 0xf7, 0x36, 0x40, 0x7f, 0xb6, 0x01, 0xfa, 0xf5, 0x37, 0x70, 0xe0, 0x21, 0x95, 0xf3, - 0xa8, 0x2c, 0x44, 0x4e, 0x49, 0x19, 0x99, 0x22, 0x4b, 0xed, 0x1c, 0x97, 0xe8, 0x5f, 0x00, 0x00, - 0x00, 0xff, 0xff, 0x1d, 0x58, 0xa2, 0x7a, 0x59, 0x02, 0x00, 0x00, -} diff --git a/go-tipb/executor.pb.go b/go-tipb/executor.pb.go index 6be7851e0..ba97027dd 100644 --- a/go-tipb/executor.pb.go +++ b/go-tipb/executor.pb.go @@ -4,15 +4,15 @@ package tipb import ( + encoding_binary "encoding/binary" "fmt" + "io" + "math" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - math "math" - - encoding_binary "encoding/binary" - - io "io" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. @@ -20,6 +20,12 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + type ExecType int32 const ( @@ -61,6 +67,7 @@ var ExecType_name = map[int32]string{ 15: "TypeExpand", 16: "TypeExpand2", } + var ExecType_value = map[string]int32{ "TypeTableScan": 0, "TypeIndexScan": 1, @@ -86,9 +93,11 @@ func (x ExecType) Enum() *ExecType { *p = x return p } + func (x ExecType) String() string { return proto.EnumName(ExecType_name, int32(x)) } + func (x *ExecType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(ExecType_value, data, "ExecType") if err != nil { @@ -97,7 +106,10 @@ func (x *ExecType) UnmarshalJSON(data []byte) error { *x = ExecType(value) return nil } -func (ExecType) EnumDescriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{0} } + +func (ExecType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{0} +} type ExchangeType int32 @@ -112,6 +124,7 @@ var ExchangeType_name = map[int32]string{ 1: "Broadcast", 2: "Hash", } + var ExchangeType_value = map[string]int32{ "PassThrough": 0, "Broadcast": 1, @@ -123,9 +136,11 @@ func (x ExchangeType) Enum() *ExchangeType { *p = x return p } + func (x ExchangeType) String() string { return proto.EnumName(ExchangeType_name, int32(x)) } + func (x *ExchangeType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(ExchangeType_value, data, "ExchangeType") if err != nil { @@ -134,7 +149,10 @@ func (x *ExchangeType) UnmarshalJSON(data []byte) error { *x = ExchangeType(value) return nil } -func (ExchangeType) EnumDescriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{1} } + +func (ExchangeType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{1} +} // Data compression mode type CompressionMode int32 @@ -150,6 +168,7 @@ var CompressionMode_name = map[int32]string{ 1: "FAST", 2: "HIGH_COMPRESSION", } + var CompressionMode_value = map[string]int32{ "NONE": 0, "FAST": 1, @@ -161,9 +180,11 @@ func (x CompressionMode) Enum() *CompressionMode { *p = x return p } + func (x CompressionMode) String() string { return proto.EnumName(CompressionMode_name, int32(x)) } + func (x *CompressionMode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(CompressionMode_value, data, "CompressionMode") if err != nil { @@ -172,7 +193,10 @@ func (x *CompressionMode) UnmarshalJSON(data []byte) error { *x = CompressionMode(value) return nil } -func (CompressionMode) EnumDescriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{2} } + +func (CompressionMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{2} +} type EngineType int32 @@ -187,6 +211,7 @@ var EngineType_name = map[int32]string{ 1: "TiKV", 2: "TiFlash", } + var EngineType_value = map[string]int32{ "Local": 0, "TiKV": 1, @@ -198,9 +223,11 @@ func (x EngineType) Enum() *EngineType { *p = x return p } + func (x EngineType) String() string { return proto.EnumName(EngineType_name, int32(x)) } + func (x *EngineType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(EngineType_value, data, "EngineType") if err != nil { @@ -209,7 +236,10 @@ func (x *EngineType) UnmarshalJSON(data []byte) error { *x = EngineType(value) return nil } -func (EngineType) EnumDescriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{3} } + +func (EngineType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{3} +} // Note: The name of the enum is intentionally aligned with tidb/parser/index_vector.go. type VectorIndexKind int32 @@ -223,6 +253,7 @@ var VectorIndexKind_name = map[int32]string{ 0: "INVALID_INDEX_KIND", 1: "HNSW", } + var VectorIndexKind_value = map[string]int32{ "INVALID_INDEX_KIND": 0, "HNSW": 1, @@ -233,9 +264,11 @@ func (x VectorIndexKind) Enum() *VectorIndexKind { *p = x return p } + func (x VectorIndexKind) String() string { return proto.EnumName(VectorIndexKind_name, int32(x)) } + func (x *VectorIndexKind) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(VectorIndexKind_value, data, "VectorIndexKind") if err != nil { @@ -244,7 +277,10 @@ func (x *VectorIndexKind) UnmarshalJSON(data []byte) error { *x = VectorIndexKind(value) return nil } -func (VectorIndexKind) EnumDescriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{4} } + +func (VectorIndexKind) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{4} +} // Note: The name of the enum is intentionally aligned with tidb/parser/index_vector.go. type VectorDistanceMetric int32 @@ -264,6 +300,7 @@ var VectorDistanceMetric_name = map[int32]string{ 3: "COSINE", 4: "INNER_PRODUCT", } + var VectorDistanceMetric_value = map[string]int32{ "INVALID_DISTANCE_METRIC": 0, "L1": 1, @@ -277,9 +314,11 @@ func (x VectorDistanceMetric) Enum() *VectorDistanceMetric { *p = x return p } + func (x VectorDistanceMetric) String() string { return proto.EnumName(VectorDistanceMetric_name, int32(x)) } + func (x *VectorDistanceMetric) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(VectorDistanceMetric_value, data, "VectorDistanceMetric") if err != nil { @@ -288,7 +327,10 @@ func (x *VectorDistanceMetric) UnmarshalJSON(data []byte) error { *x = VectorDistanceMetric(value) return nil } -func (VectorDistanceMetric) EnumDescriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{5} } + +func (VectorDistanceMetric) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{5} +} type ANNQueryType int32 @@ -301,6 +343,7 @@ var ANNQueryType_name = map[int32]string{ 0: "InvalidQueryType", 1: "OrderBy", } + var ANNQueryType_value = map[string]int32{ "InvalidQueryType": 0, "OrderBy": 1, @@ -311,9 +354,11 @@ func (x ANNQueryType) Enum() *ANNQueryType { *p = x return p } + func (x ANNQueryType) String() string { return proto.EnumName(ANNQueryType_name, int32(x)) } + func (x *ANNQueryType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(ANNQueryType_value, data, "ANNQueryType") if err != nil { @@ -322,7 +367,10 @@ func (x *ANNQueryType) UnmarshalJSON(data []byte) error { *x = ANNQueryType(value) return nil } -func (ANNQueryType) EnumDescriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{6} } + +func (ANNQueryType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{6} +} type JoinType int32 @@ -345,6 +393,7 @@ var JoinType_name = map[int32]string{ 5: "TypeLeftOuterSemiJoin", 6: "TypeAntiLeftOuterSemiJoin", } + var JoinType_value = map[string]int32{ "TypeInnerJoin": 0, "TypeLeftOuterJoin": 1, @@ -360,9 +409,11 @@ func (x JoinType) Enum() *JoinType { *p = x return p } + func (x JoinType) String() string { return proto.EnumName(JoinType_name, int32(x)) } + func (x *JoinType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(JoinType_value, data, "JoinType") if err != nil { @@ -371,7 +422,10 @@ func (x *JoinType) UnmarshalJSON(data []byte) error { *x = JoinType(value) return nil } -func (JoinType) EnumDescriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{7} } + +func (JoinType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{7} +} type JoinExecType int32 @@ -382,6 +436,7 @@ const ( var JoinExecType_name = map[int32]string{ 0: "TypeHashJoin", } + var JoinExecType_value = map[string]int32{ "TypeHashJoin": 0, } @@ -391,9 +446,11 @@ func (x JoinExecType) Enum() *JoinExecType { *p = x return p } + func (x JoinExecType) String() string { return proto.EnumName(JoinExecType_name, int32(x)) } + func (x *JoinExecType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(JoinExecType_value, data, "JoinExecType") if err != nil { @@ -402,7 +459,10 @@ func (x *JoinExecType) UnmarshalJSON(data []byte) error { *x = JoinExecType(value) return nil } -func (JoinExecType) EnumDescriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{8} } + +func (JoinExecType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{8} +} type RuntimeFilterType int32 @@ -417,6 +477,7 @@ var RuntimeFilterType_name = map[int32]string{ 1: "MIN_MAX", 2: "BLOOM_FILTER", } + var RuntimeFilterType_value = map[string]int32{ "IN": 0, "MIN_MAX": 1, @@ -428,9 +489,11 @@ func (x RuntimeFilterType) Enum() *RuntimeFilterType { *p = x return p } + func (x RuntimeFilterType) String() string { return proto.EnumName(RuntimeFilterType_name, int32(x)) } + func (x *RuntimeFilterType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(RuntimeFilterType_value, data, "RuntimeFilterType") if err != nil { @@ -439,7 +502,10 @@ func (x *RuntimeFilterType) UnmarshalJSON(data []byte) error { *x = RuntimeFilterType(value) return nil } -func (RuntimeFilterType) EnumDescriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{9} } + +func (RuntimeFilterType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{9} +} type RuntimeFilterMode int32 @@ -452,6 +518,7 @@ var RuntimeFilterMode_name = map[int32]string{ 0: "LOCAL", 1: "GLOBAL", } + var RuntimeFilterMode_value = map[string]int32{ "LOCAL": 0, "GLOBAL": 1, @@ -462,9 +529,11 @@ func (x RuntimeFilterMode) Enum() *RuntimeFilterMode { *p = x return p } + func (x RuntimeFilterMode) String() string { return proto.EnumName(RuntimeFilterMode_name, int32(x)) } + func (x *RuntimeFilterMode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(RuntimeFilterMode_value, data, "RuntimeFilterMode") if err != nil { @@ -473,7 +542,10 @@ func (x *RuntimeFilterMode) UnmarshalJSON(data []byte) error { *x = RuntimeFilterMode(value) return nil } -func (RuntimeFilterMode) EnumDescriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{10} } + +func (RuntimeFilterMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{10} +} type TiFlashPreAggMode int32 @@ -488,6 +560,7 @@ var TiFlashPreAggMode_name = map[int32]string{ 1: "Auto", 2: "ForceStreaming", } + var TiFlashPreAggMode_value = map[string]int32{ "ForcePreAgg": 0, "Auto": 1, @@ -499,9 +572,11 @@ func (x TiFlashPreAggMode) Enum() *TiFlashPreAggMode { *p = x return p } + func (x TiFlashPreAggMode) String() string { return proto.EnumName(TiFlashPreAggMode_name, int32(x)) } + func (x *TiFlashPreAggMode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(TiFlashPreAggMode_value, data, "TiFlashPreAggMode") if err != nil { @@ -510,7 +585,10 @@ func (x *TiFlashPreAggMode) UnmarshalJSON(data []byte) error { *x = TiFlashPreAggMode(value) return nil } -func (TiFlashPreAggMode) EnumDescriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{11} } + +func (TiFlashPreAggMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{11} +} type WindowBoundType int32 @@ -525,6 +603,7 @@ var WindowBoundType_name = map[int32]string{ 1: "Preceding", 2: "CurrentRow", } + var WindowBoundType_value = map[string]int32{ "Following": 0, "Preceding": 1, @@ -536,9 +615,11 @@ func (x WindowBoundType) Enum() *WindowBoundType { *p = x return p } + func (x WindowBoundType) String() string { return proto.EnumName(WindowBoundType_name, int32(x)) } + func (x *WindowBoundType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(WindowBoundType_value, data, "WindowBoundType") if err != nil { @@ -547,7 +628,10 @@ func (x *WindowBoundType) UnmarshalJSON(data []byte) error { *x = WindowBoundType(value) return nil } -func (WindowBoundType) EnumDescriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{12} } + +func (WindowBoundType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{12} +} // Used for range frame's comparison when finding frame's boundary type RangeCmpDataType int32 @@ -567,6 +651,7 @@ var RangeCmpDataType_name = map[int32]string{ 3: "DateTime", 4: "Duration", } + var RangeCmpDataType_value = map[string]int32{ "Int": 0, "Float": 1, @@ -580,9 +665,11 @@ func (x RangeCmpDataType) Enum() *RangeCmpDataType { *p = x return p } + func (x RangeCmpDataType) String() string { return proto.EnumName(RangeCmpDataType_name, int32(x)) } + func (x *RangeCmpDataType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(RangeCmpDataType_value, data, "RangeCmpDataType") if err != nil { @@ -591,7 +678,10 @@ func (x *RangeCmpDataType) UnmarshalJSON(data []byte) error { *x = RangeCmpDataType(value) return nil } -func (RangeCmpDataType) EnumDescriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{13} } + +func (RangeCmpDataType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{13} +} type WindowFrameType int32 @@ -606,6 +696,7 @@ var WindowFrameType_name = map[int32]string{ 1: "Ranges", 2: "Groups", } + var WindowFrameType_value = map[string]int32{ "Rows": 0, "Ranges": 1, @@ -617,9 +708,11 @@ func (x WindowFrameType) Enum() *WindowFrameType { *p = x return p } + func (x WindowFrameType) String() string { return proto.EnumName(WindowFrameType_name, int32(x)) } + func (x *WindowFrameType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(WindowFrameType_value, data, "WindowFrameType") if err != nil { @@ -628,7 +721,10 @@ func (x *WindowFrameType) UnmarshalJSON(data []byte) error { *x = WindowFrameType(value) return nil } -func (WindowFrameType) EnumDescriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{14} } + +func (WindowFrameType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{14} +} // It represents a Executor. type Executor struct { @@ -652,13 +748,40 @@ type Executor struct { FineGrainedShuffleBatchSize uint64 `protobuf:"varint,18,opt,name=fine_grained_shuffle_batch_size,json=fineGrainedShuffleBatchSize" json:"fine_grained_shuffle_batch_size"` Expand *Expand `protobuf:"bytes,19,opt,name=expand" json:"expand,omitempty"` Expand2 *Expand2 `protobuf:"bytes,20,opt,name=expand2" json:"expand2,omitempty"` - XXX_unrecognized []byte `json:"-"` } -func (m *Executor) Reset() { *m = Executor{} } -func (m *Executor) String() string { return proto.CompactTextString(m) } -func (*Executor) ProtoMessage() {} -func (*Executor) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{0} } +func (m *Executor) Reset() { *m = Executor{} } +func (m *Executor) String() string { return proto.CompactTextString(m) } +func (*Executor) ProtoMessage() {} +func (*Executor) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{0} +} +func (m *Executor) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Executor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Executor.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Executor) XXX_Merge(src proto.Message) { + xxx_messageInfo_Executor.Merge(m, src) +} +func (m *Executor) XXX_Size() int { + return m.Size() +} +func (m *Executor) XXX_DiscardUnknown() { + xxx_messageInfo_Executor.DiscardUnknown(m) +} + +var xxx_messageInfo_Executor proto.InternalMessageInfo func (m *Executor) GetTp() ExecType { if m != nil { @@ -810,13 +933,40 @@ type ExchangeSender struct { AllFieldTypes []*FieldType `protobuf:"bytes,6,rep,name=all_field_types,json=allFieldTypes" json:"all_field_types,omitempty"` Compression CompressionMode `protobuf:"varint,7,opt,name=compression,enum=tipb.CompressionMode" json:"compression"` UpstreamCteTaskMeta []*EncodedBytesSlice `protobuf:"bytes,8,rep,name=upstream_cte_task_meta,json=upstreamCteTaskMeta" json:"upstream_cte_task_meta,omitempty"` - XXX_unrecognized []byte `json:"-"` } -func (m *ExchangeSender) Reset() { *m = ExchangeSender{} } -func (m *ExchangeSender) String() string { return proto.CompactTextString(m) } -func (*ExchangeSender) ProtoMessage() {} -func (*ExchangeSender) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{1} } +func (m *ExchangeSender) Reset() { *m = ExchangeSender{} } +func (m *ExchangeSender) String() string { return proto.CompactTextString(m) } +func (*ExchangeSender) ProtoMessage() {} +func (*ExchangeSender) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{1} +} +func (m *ExchangeSender) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExchangeSender) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExchangeSender.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ExchangeSender) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExchangeSender.Merge(m, src) +} +func (m *ExchangeSender) XXX_Size() int { + return m.Size() +} +func (m *ExchangeSender) XXX_DiscardUnknown() { + xxx_messageInfo_ExchangeSender.DiscardUnknown(m) +} + +var xxx_messageInfo_ExchangeSender proto.InternalMessageInfo func (m *ExchangeSender) GetTp() ExchangeType { if m != nil { @@ -875,14 +1025,41 @@ func (m *ExchangeSender) GetUpstreamCteTaskMeta() []*EncodedBytesSlice { } type EncodedBytesSlice struct { - EncodedTasks [][]byte `protobuf:"bytes,1,rep,name=encoded_tasks,json=encodedTasks" json:"encoded_tasks,omitempty"` - XXX_unrecognized []byte `json:"-"` + EncodedTasks [][]byte `protobuf:"bytes,1,rep,name=encoded_tasks,json=encodedTasks" json:"encoded_tasks,omitempty"` +} + +func (m *EncodedBytesSlice) Reset() { *m = EncodedBytesSlice{} } +func (m *EncodedBytesSlice) String() string { return proto.CompactTextString(m) } +func (*EncodedBytesSlice) ProtoMessage() {} +func (*EncodedBytesSlice) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{2} +} +func (m *EncodedBytesSlice) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EncodedBytesSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EncodedBytesSlice.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EncodedBytesSlice) XXX_Merge(src proto.Message) { + xxx_messageInfo_EncodedBytesSlice.Merge(m, src) +} +func (m *EncodedBytesSlice) XXX_Size() int { + return m.Size() +} +func (m *EncodedBytesSlice) XXX_DiscardUnknown() { + xxx_messageInfo_EncodedBytesSlice.DiscardUnknown(m) } -func (m *EncodedBytesSlice) Reset() { *m = EncodedBytesSlice{} } -func (m *EncodedBytesSlice) String() string { return proto.CompactTextString(m) } -func (*EncodedBytesSlice) ProtoMessage() {} -func (*EncodedBytesSlice) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{2} } +var xxx_messageInfo_EncodedBytesSlice proto.InternalMessageInfo func (m *EncodedBytesSlice) GetEncodedTasks() [][]byte { if m != nil { @@ -897,13 +1074,40 @@ type ExchangeReceiver struct { FieldTypes []*FieldType `protobuf:"bytes,2,rep,name=field_types,json=fieldTypes" json:"field_types,omitempty"` Tp *ExchangeType `protobuf:"varint,3,opt,name=tp,enum=tipb.ExchangeType" json:"tp,omitempty"` OriginalCtePrdocuerTaskMeta [][]byte `protobuf:"bytes,4,rep,name=original_cte_prdocuer_task_meta,json=originalCtePrdocuerTaskMeta" json:"original_cte_prdocuer_task_meta,omitempty"` - XXX_unrecognized []byte `json:"-"` } -func (m *ExchangeReceiver) Reset() { *m = ExchangeReceiver{} } -func (m *ExchangeReceiver) String() string { return proto.CompactTextString(m) } -func (*ExchangeReceiver) ProtoMessage() {} -func (*ExchangeReceiver) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{3} } +func (m *ExchangeReceiver) Reset() { *m = ExchangeReceiver{} } +func (m *ExchangeReceiver) String() string { return proto.CompactTextString(m) } +func (*ExchangeReceiver) ProtoMessage() {} +func (*ExchangeReceiver) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{3} +} +func (m *ExchangeReceiver) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExchangeReceiver) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExchangeReceiver.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ExchangeReceiver) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExchangeReceiver.Merge(m, src) +} +func (m *ExchangeReceiver) XXX_Size() int { + return m.Size() +} +func (m *ExchangeReceiver) XXX_DiscardUnknown() { + xxx_messageInfo_ExchangeReceiver.DiscardUnknown(m) +} + +var xxx_messageInfo_ExchangeReceiver proto.InternalMessageInfo func (m *ExchangeReceiver) GetEncodedTaskMeta() [][]byte { if m != nil { @@ -935,22 +1139,49 @@ func (m *ExchangeReceiver) GetOriginalCtePrdocuerTaskMeta() [][]byte { // ANN = Approximate Nearest Neighbor. For some queries, ANN index can be used. type ANNQueryInfo struct { - QueryType ANNQueryType `protobuf:"varint,1,opt,name=query_type,json=queryType,enum=tipb.ANNQueryType" json:"query_type"` - DistanceMetric VectorDistanceMetric `protobuf:"varint,2,opt,name=distance_metric,json=distanceMetric,enum=tipb.VectorDistanceMetric" json:"distance_metric"` - TopK uint32 `protobuf:"varint,3,opt,name=top_k,json=topK" json:"top_k"` - ColumnName string `protobuf:"bytes,4,opt,name=column_name,json=columnName" json:"column_name"` - ColumnId int64 `protobuf:"varint,5,opt,name=column_id,json=columnId" json:"column_id"` - RefVecF32 []byte `protobuf:"bytes,6,opt,name=ref_vec_f32,json=refVecF32" json:"ref_vec_f32,omitempty"` - IndexId int64 `protobuf:"varint,8,opt,name=index_id,json=indexId" json:"index_id"` - MaxDistance float64 `protobuf:"fixed64,10,opt,name=max_distance,json=maxDistance" json:"max_distance"` - HnswEfSearch uint32 `protobuf:"varint,20,opt,name=hnsw_ef_search,json=hnswEfSearch" json:"hnsw_ef_search"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *ANNQueryInfo) Reset() { *m = ANNQueryInfo{} } -func (m *ANNQueryInfo) String() string { return proto.CompactTextString(m) } -func (*ANNQueryInfo) ProtoMessage() {} -func (*ANNQueryInfo) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{4} } + QueryType ANNQueryType `protobuf:"varint,1,opt,name=query_type,json=queryType,enum=tipb.ANNQueryType" json:"query_type"` + DistanceMetric VectorDistanceMetric `protobuf:"varint,2,opt,name=distance_metric,json=distanceMetric,enum=tipb.VectorDistanceMetric" json:"distance_metric"` + TopK uint32 `protobuf:"varint,3,opt,name=top_k,json=topK" json:"top_k"` + ColumnName string `protobuf:"bytes,4,opt,name=column_name,json=columnName" json:"column_name"` + ColumnId int64 `protobuf:"varint,5,opt,name=column_id,json=columnId" json:"column_id"` + RefVecF32 []byte `protobuf:"bytes,6,opt,name=ref_vec_f32,json=refVecF32" json:"ref_vec_f32,omitempty"` + IndexId int64 `protobuf:"varint,8,opt,name=index_id,json=indexId" json:"index_id"` + MaxDistance float64 `protobuf:"fixed64,10,opt,name=max_distance,json=maxDistance" json:"max_distance"` + HnswEfSearch uint32 `protobuf:"varint,20,opt,name=hnsw_ef_search,json=hnswEfSearch" json:"hnsw_ef_search"` +} + +func (m *ANNQueryInfo) Reset() { *m = ANNQueryInfo{} } +func (m *ANNQueryInfo) String() string { return proto.CompactTextString(m) } +func (*ANNQueryInfo) ProtoMessage() {} +func (*ANNQueryInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{4} +} +func (m *ANNQueryInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ANNQueryInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ANNQueryInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ANNQueryInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ANNQueryInfo.Merge(m, src) +} +func (m *ANNQueryInfo) XXX_Size() int { + return m.Size() +} +func (m *ANNQueryInfo) XXX_DiscardUnknown() { + xxx_messageInfo_ANNQueryInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_ANNQueryInfo proto.InternalMessageInfo func (m *ANNQueryInfo) GetQueryType() ANNQueryType { if m != nil { @@ -1029,13 +1260,40 @@ type TableScan struct { AnnQuery *ANNQueryInfo `protobuf:"bytes,13,opt,name=ann_query,json=annQuery" json:"ann_query,omitempty"` RuntimeFilterList []*RuntimeFilter `protobuf:"bytes,11,rep,name=runtime_filter_list,json=runtimeFilterList" json:"runtime_filter_list,omitempty"` MaxWaitTimeMs int32 `protobuf:"varint,12,opt,name=max_wait_time_ms,json=maxWaitTimeMs" json:"max_wait_time_ms"` - XXX_unrecognized []byte `json:"-"` } -func (m *TableScan) Reset() { *m = TableScan{} } -func (m *TableScan) String() string { return proto.CompactTextString(m) } -func (*TableScan) ProtoMessage() {} -func (*TableScan) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{5} } +func (m *TableScan) Reset() { *m = TableScan{} } +func (m *TableScan) String() string { return proto.CompactTextString(m) } +func (*TableScan) ProtoMessage() {} +func (*TableScan) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{5} +} +func (m *TableScan) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TableScan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TableScan.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TableScan) XXX_Merge(src proto.Message) { + xxx_messageInfo_TableScan.Merge(m, src) +} +func (m *TableScan) XXX_Size() int { + return m.Size() +} +func (m *TableScan) XXX_DiscardUnknown() { + xxx_messageInfo_TableScan.DiscardUnknown(m) +} + +var xxx_messageInfo_TableScan proto.InternalMessageInfo func (m *TableScan) GetTableId() int64 { if m != nil { @@ -1140,13 +1398,40 @@ type PartitionTableScan struct { AnnQuery *ANNQueryInfo `protobuf:"bytes,11,opt,name=ann_query,json=annQuery" json:"ann_query,omitempty"` RuntimeFilterList []*RuntimeFilter `protobuf:"bytes,9,rep,name=runtime_filter_list,json=runtimeFilterList" json:"runtime_filter_list,omitempty"` MaxWaitTimeMs int32 `protobuf:"varint,10,opt,name=max_wait_time_ms,json=maxWaitTimeMs" json:"max_wait_time_ms"` - XXX_unrecognized []byte `json:"-"` } -func (m *PartitionTableScan) Reset() { *m = PartitionTableScan{} } -func (m *PartitionTableScan) String() string { return proto.CompactTextString(m) } -func (*PartitionTableScan) ProtoMessage() {} -func (*PartitionTableScan) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{6} } +func (m *PartitionTableScan) Reset() { *m = PartitionTableScan{} } +func (m *PartitionTableScan) String() string { return proto.CompactTextString(m) } +func (*PartitionTableScan) ProtoMessage() {} +func (*PartitionTableScan) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{6} +} +func (m *PartitionTableScan) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PartitionTableScan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PartitionTableScan.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PartitionTableScan) XXX_Merge(src proto.Message) { + xxx_messageInfo_PartitionTableScan.Merge(m, src) +} +func (m *PartitionTableScan) XXX_Size() int { + return m.Size() +} +func (m *PartitionTableScan) XXX_DiscardUnknown() { + xxx_messageInfo_PartitionTableScan.DiscardUnknown(m) +} + +var xxx_messageInfo_PartitionTableScan proto.InternalMessageInfo func (m *PartitionTableScan) GetTableId() int64 { if m != nil { @@ -1241,13 +1526,40 @@ type Join struct { OtherEqConditionsFromIn []*Expr `protobuf:"bytes,12,rep,name=other_eq_conditions_from_in,json=otherEqConditionsFromIn" json:"other_eq_conditions_from_in,omitempty"` IsNullAwareSemiJoin *bool `protobuf:"varint,13,opt,name=is_null_aware_semi_join,json=isNullAwareSemiJoin" json:"is_null_aware_semi_join,omitempty"` RuntimeFilterList []*RuntimeFilter `protobuf:"bytes,14,rep,name=runtime_filter_list,json=runtimeFilterList" json:"runtime_filter_list,omitempty"` - XXX_unrecognized []byte `json:"-"` } -func (m *Join) Reset() { *m = Join{} } -func (m *Join) String() string { return proto.CompactTextString(m) } -func (*Join) ProtoMessage() {} -func (*Join) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{7} } +func (m *Join) Reset() { *m = Join{} } +func (m *Join) String() string { return proto.CompactTextString(m) } +func (*Join) ProtoMessage() {} +func (*Join) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{7} +} +func (m *Join) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Join) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Join.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Join) XXX_Merge(src proto.Message) { + xxx_messageInfo_Join.Merge(m, src) +} +func (m *Join) XXX_Size() int { + return m.Size() +} +func (m *Join) XXX_DiscardUnknown() { + xxx_messageInfo_Join.DiscardUnknown(m) +} + +var xxx_messageInfo_Join proto.InternalMessageInfo func (m *Join) GetJoinType() JoinType { if m != nil { @@ -1355,13 +1667,40 @@ type RuntimeFilter struct { TargetExecutorId string `protobuf:"bytes,5,opt,name=target_executor_id,json=targetExecutorId" json:"target_executor_id"` RfType RuntimeFilterType `protobuf:"varint,6,opt,name=rf_type,json=rfType,enum=tipb.RuntimeFilterType" json:"rf_type"` RfMode RuntimeFilterMode `protobuf:"varint,7,opt,name=rf_mode,json=rfMode,enum=tipb.RuntimeFilterMode" json:"rf_mode"` - XXX_unrecognized []byte `json:"-"` } -func (m *RuntimeFilter) Reset() { *m = RuntimeFilter{} } -func (m *RuntimeFilter) String() string { return proto.CompactTextString(m) } -func (*RuntimeFilter) ProtoMessage() {} -func (*RuntimeFilter) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{8} } +func (m *RuntimeFilter) Reset() { *m = RuntimeFilter{} } +func (m *RuntimeFilter) String() string { return proto.CompactTextString(m) } +func (*RuntimeFilter) ProtoMessage() {} +func (*RuntimeFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{8} +} +func (m *RuntimeFilter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RuntimeFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RuntimeFilter.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RuntimeFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_RuntimeFilter.Merge(m, src) +} +func (m *RuntimeFilter) XXX_Size() int { + return m.Size() +} +func (m *RuntimeFilter) XXX_DiscardUnknown() { + xxx_messageInfo_RuntimeFilter.DiscardUnknown(m) +} + +var xxx_messageInfo_RuntimeFilter proto.InternalMessageInfo func (m *RuntimeFilter) GetId() int32 { if m != nil { @@ -1419,13 +1758,40 @@ type IndexScan struct { Desc bool `protobuf:"varint,4,opt,name=desc" json:"desc"` Unique *bool `protobuf:"varint,5,opt,name=unique" json:"unique,omitempty"` PrimaryColumnIds []int64 `protobuf:"varint,6,rep,name=primary_column_ids,json=primaryColumnIds" json:"primary_column_ids,omitempty"` - XXX_unrecognized []byte `json:"-"` } -func (m *IndexScan) Reset() { *m = IndexScan{} } -func (m *IndexScan) String() string { return proto.CompactTextString(m) } -func (*IndexScan) ProtoMessage() {} -func (*IndexScan) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{9} } +func (m *IndexScan) Reset() { *m = IndexScan{} } +func (m *IndexScan) String() string { return proto.CompactTextString(m) } +func (*IndexScan) ProtoMessage() {} +func (*IndexScan) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{9} +} +func (m *IndexScan) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IndexScan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IndexScan.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *IndexScan) XXX_Merge(src proto.Message) { + xxx_messageInfo_IndexScan.Merge(m, src) +} +func (m *IndexScan) XXX_Size() int { + return m.Size() +} +func (m *IndexScan) XXX_DiscardUnknown() { + xxx_messageInfo_IndexScan.DiscardUnknown(m) +} + +var xxx_messageInfo_IndexScan proto.InternalMessageInfo func (m *IndexScan) GetTableId() int64 { if m != nil { @@ -1471,16 +1837,43 @@ func (m *IndexScan) GetPrimaryColumnIds() []int64 { type Selection struct { // Where conditions. - Conditions []*Expr `protobuf:"bytes,1,rep,name=conditions" json:"conditions,omitempty"` - RpnConditions []*RpnExpr `protobuf:"bytes,2,rep,name=rpn_conditions,json=rpnConditions" json:"rpn_conditions,omitempty"` - Child *Executor `protobuf:"bytes,3,opt,name=child" json:"child,omitempty"` - XXX_unrecognized []byte `json:"-"` + Conditions []*Expr `protobuf:"bytes,1,rep,name=conditions" json:"conditions,omitempty"` + RpnConditions []*RpnExpr `protobuf:"bytes,2,rep,name=rpn_conditions,json=rpnConditions" json:"rpn_conditions,omitempty"` + Child *Executor `protobuf:"bytes,3,opt,name=child" json:"child,omitempty"` +} + +func (m *Selection) Reset() { *m = Selection{} } +func (m *Selection) String() string { return proto.CompactTextString(m) } +func (*Selection) ProtoMessage() {} +func (*Selection) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{10} +} +func (m *Selection) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Selection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Selection.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Selection) XXX_Merge(src proto.Message) { + xxx_messageInfo_Selection.Merge(m, src) +} +func (m *Selection) XXX_Size() int { + return m.Size() +} +func (m *Selection) XXX_DiscardUnknown() { + xxx_messageInfo_Selection.DiscardUnknown(m) } -func (m *Selection) Reset() { *m = Selection{} } -func (m *Selection) String() string { return proto.CompactTextString(m) } -func (*Selection) ProtoMessage() {} -func (*Selection) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{10} } +var xxx_messageInfo_Selection proto.InternalMessageInfo func (m *Selection) GetConditions() []*Expr { if m != nil { @@ -1505,16 +1898,43 @@ func (m *Selection) GetChild() *Executor { type Projection struct { // Projection expressions. - Exprs []*Expr `protobuf:"bytes,1,rep,name=exprs" json:"exprs,omitempty"` - RpnExprs []*RpnExpr `protobuf:"bytes,2,rep,name=rpn_exprs,json=rpnExprs" json:"rpn_exprs,omitempty"` - Child *Executor `protobuf:"bytes,3,opt,name=child" json:"child,omitempty"` - XXX_unrecognized []byte `json:"-"` + Exprs []*Expr `protobuf:"bytes,1,rep,name=exprs" json:"exprs,omitempty"` + RpnExprs []*RpnExpr `protobuf:"bytes,2,rep,name=rpn_exprs,json=rpnExprs" json:"rpn_exprs,omitempty"` + Child *Executor `protobuf:"bytes,3,opt,name=child" json:"child,omitempty"` +} + +func (m *Projection) Reset() { *m = Projection{} } +func (m *Projection) String() string { return proto.CompactTextString(m) } +func (*Projection) ProtoMessage() {} +func (*Projection) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{11} +} +func (m *Projection) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Projection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Projection.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Projection) XXX_Merge(src proto.Message) { + xxx_messageInfo_Projection.Merge(m, src) +} +func (m *Projection) XXX_Size() int { + return m.Size() +} +func (m *Projection) XXX_DiscardUnknown() { + xxx_messageInfo_Projection.DiscardUnknown(m) } -func (m *Projection) Reset() { *m = Projection{} } -func (m *Projection) String() string { return proto.CompactTextString(m) } -func (*Projection) ProtoMessage() {} -func (*Projection) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{11} } +var xxx_messageInfo_Projection proto.InternalMessageInfo func (m *Projection) GetExprs() []*Expr { if m != nil { @@ -1545,16 +1965,43 @@ type Aggregation struct { AggFunc []*Expr `protobuf:"bytes,2,rep,name=agg_func,json=aggFunc" json:"agg_func,omitempty"` RpnAggFunc []*RpnExpr `protobuf:"bytes,5,rep,name=rpn_agg_func,json=rpnAggFunc" json:"rpn_agg_func,omitempty"` // If it is a stream aggregation. - Streamed bool `protobuf:"varint,3,opt,name=streamed" json:"streamed"` - Child *Executor `protobuf:"bytes,6,opt,name=child" json:"child,omitempty"` - PreAggMode *TiFlashPreAggMode `protobuf:"varint,7,opt,name=pre_agg_mode,json=preAggMode,enum=tipb.TiFlashPreAggMode" json:"pre_agg_mode,omitempty"` - XXX_unrecognized []byte `json:"-"` + Streamed bool `protobuf:"varint,3,opt,name=streamed" json:"streamed"` + Child *Executor `protobuf:"bytes,6,opt,name=child" json:"child,omitempty"` + PreAggMode *TiFlashPreAggMode `protobuf:"varint,7,opt,name=pre_agg_mode,json=preAggMode,enum=tipb.TiFlashPreAggMode" json:"pre_agg_mode,omitempty"` +} + +func (m *Aggregation) Reset() { *m = Aggregation{} } +func (m *Aggregation) String() string { return proto.CompactTextString(m) } +func (*Aggregation) ProtoMessage() {} +func (*Aggregation) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{12} +} +func (m *Aggregation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Aggregation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Aggregation.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Aggregation) XXX_Merge(src proto.Message) { + xxx_messageInfo_Aggregation.Merge(m, src) +} +func (m *Aggregation) XXX_Size() int { + return m.Size() +} +func (m *Aggregation) XXX_DiscardUnknown() { + xxx_messageInfo_Aggregation.DiscardUnknown(m) } -func (m *Aggregation) Reset() { *m = Aggregation{} } -func (m *Aggregation) String() string { return proto.CompactTextString(m) } -func (*Aggregation) ProtoMessage() {} -func (*Aggregation) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{12} } +var xxx_messageInfo_Aggregation proto.InternalMessageInfo func (m *Aggregation) GetGroupBy() []*Expr { if m != nil { @@ -1612,14 +2059,41 @@ type TopN struct { Child *Executor `protobuf:"bytes,3,opt,name=child" json:"child,omitempty"` // If partition_by is not empty, it means need to return topN of each partition. // Generally used in sqls like `where row_number() over (partition by ... order by ...) < X` - PartitionBy []*ByItem `protobuf:"bytes,4,rep,name=partition_by,json=partitionBy" json:"partition_by,omitempty"` - XXX_unrecognized []byte `json:"-"` + PartitionBy []*ByItem `protobuf:"bytes,4,rep,name=partition_by,json=partitionBy" json:"partition_by,omitempty"` +} + +func (m *TopN) Reset() { *m = TopN{} } +func (m *TopN) String() string { return proto.CompactTextString(m) } +func (*TopN) ProtoMessage() {} +func (*TopN) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{13} +} +func (m *TopN) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopN) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopN.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopN) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopN.Merge(m, src) +} +func (m *TopN) XXX_Size() int { + return m.Size() +} +func (m *TopN) XXX_DiscardUnknown() { + xxx_messageInfo_TopN.DiscardUnknown(m) } -func (m *TopN) Reset() { *m = TopN{} } -func (m *TopN) String() string { return proto.CompactTextString(m) } -func (*TopN) ProtoMessage() {} -func (*TopN) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{13} } +var xxx_messageInfo_TopN proto.InternalMessageInfo func (m *TopN) GetOrderBy() []*ByItem { if m != nil { @@ -1655,14 +2129,41 @@ type Limit struct { Child *Executor `protobuf:"bytes,2,opt,name=child" json:"child,omitempty"` // If partition_by is not empty, it means need to return limitN of each partition. // Generally used in sqls like `where row_number() over (partition by ...) < X` - PartitionBy []*ByItem `protobuf:"bytes,3,rep,name=partition_by,json=partitionBy" json:"partition_by,omitempty"` - XXX_unrecognized []byte `json:"-"` + PartitionBy []*ByItem `protobuf:"bytes,3,rep,name=partition_by,json=partitionBy" json:"partition_by,omitempty"` +} + +func (m *Limit) Reset() { *m = Limit{} } +func (m *Limit) String() string { return proto.CompactTextString(m) } +func (*Limit) ProtoMessage() {} +func (*Limit) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{14} +} +func (m *Limit) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Limit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Limit.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Limit) XXX_Merge(src proto.Message) { + xxx_messageInfo_Limit.Merge(m, src) +} +func (m *Limit) XXX_Size() int { + return m.Size() +} +func (m *Limit) XXX_DiscardUnknown() { + xxx_messageInfo_Limit.DiscardUnknown(m) } -func (m *Limit) Reset() { *m = Limit{} } -func (m *Limit) String() string { return proto.CompactTextString(m) } -func (*Limit) ProtoMessage() {} -func (*Limit) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{14} } +var xxx_messageInfo_Limit proto.InternalMessageInfo func (m *Limit) GetLimit() uint64 { if m != nil { @@ -1688,17 +2189,45 @@ func (m *Limit) GetPartitionBy() []*ByItem { type Kill struct { ConnID uint64 `protobuf:"varint,1,opt,name=connID" json:"connID"` // Query indicates whether terminate a single query on this connection or the whole connection. - // If Query is true, terminates the statement the connection is currently executing, but leaves the connection itself intact. - // If Query is false, terminates the connection associated with the given ConnectionID, after terminating any statement the connection is executing. - // See https://dev.mysql.com/doc/refman/8.0/en/kill.html. - Query bool `protobuf:"varint,2,opt,name=query" json:"query"` - XXX_unrecognized []byte `json:"-"` + // + // If Query is true, terminates the statement the connection is currently executing, but leaves the connection itself intact. + // If Query is false, terminates the connection associated with the given ConnectionID, after terminating any statement the connection is executing. + // See https://dev.mysql.com/doc/refman/8.0/en/kill.html. + Query bool `protobuf:"varint,2,opt,name=query" json:"query"` +} + +func (m *Kill) Reset() { *m = Kill{} } +func (m *Kill) String() string { return proto.CompactTextString(m) } +func (*Kill) ProtoMessage() {} +func (*Kill) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{15} +} +func (m *Kill) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Kill) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Kill.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Kill) XXX_Merge(src proto.Message) { + xxx_messageInfo_Kill.Merge(m, src) +} +func (m *Kill) XXX_Size() int { + return m.Size() +} +func (m *Kill) XXX_DiscardUnknown() { + xxx_messageInfo_Kill.DiscardUnknown(m) } -func (m *Kill) Reset() { *m = Kill{} } -func (m *Kill) String() string { return proto.CompactTextString(m) } -func (*Kill) ProtoMessage() {} -func (*Kill) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{15} } +var xxx_messageInfo_Kill proto.InternalMessageInfo func (m *Kill) GetConnID() uint64 { if m != nil { @@ -1726,6 +2255,7 @@ type ExecutorExecutionSummary struct { // The execution concurrency for this executor Concurrency *uint64 `protobuf:"varint,5,opt,name=concurrency" json:"concurrency,omitempty"` // Types that are valid to be assigned to DetailInfo: + // // *ExecutorExecutionSummary_TiflashScanContext DetailInfo isExecutorExecutionSummary_DetailInfo `protobuf_oneof:"DetailInfo"` // Serialize kvproto resource_manager.Consumption to tell tidb the consumption info. For now it's only for tiflash. @@ -1733,24 +2263,49 @@ type ExecutorExecutionSummary struct { RuConsumption []byte `protobuf:"bytes,7,opt,name=ru_consumption,json=ruConsumption" json:"ru_consumption,omitempty"` // Only for tiflash, records the wait info. TiflashWaitSummary *TiFlashWaitSummary `protobuf:"bytes,8,opt,name=tiflash_wait_summary,json=tiflashWaitSummary" json:"tiflash_wait_summary,omitempty"` - XXX_unrecognized []byte `json:"-"` } func (m *ExecutorExecutionSummary) Reset() { *m = ExecutorExecutionSummary{} } func (m *ExecutorExecutionSummary) String() string { return proto.CompactTextString(m) } func (*ExecutorExecutionSummary) ProtoMessage() {} func (*ExecutorExecutionSummary) Descriptor() ([]byte, []int) { - return fileDescriptorExecutor, []int{16} + return fileDescriptor_12d1cdcda51e000f, []int{16} } - -type isExecutorExecutionSummary_DetailInfo interface { +func (m *ExecutorExecutionSummary) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExecutorExecutionSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExecutorExecutionSummary.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ExecutorExecutionSummary) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutorExecutionSummary.Merge(m, src) +} +func (m *ExecutorExecutionSummary) XXX_Size() int { + return m.Size() +} +func (m *ExecutorExecutionSummary) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutorExecutionSummary.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutorExecutionSummary proto.InternalMessageInfo + +type isExecutorExecutionSummary_DetailInfo interface { isExecutorExecutionSummary_DetailInfo() MarshalTo([]byte) (int, error) Size() int } type ExecutorExecutionSummary_TiflashScanContext struct { - TiflashScanContext *TiFlashScanContext `protobuf:"bytes,6,opt,name=tiflash_scan_context,json=tiflashScanContext,oneof"` + TiflashScanContext *TiFlashScanContext `protobuf:"bytes,6,opt,name=tiflash_scan_context,json=tiflashScanContext,oneof" json:"tiflash_scan_context,omitempty"` } func (*ExecutorExecutionSummary_TiflashScanContext) isExecutorExecutionSummary_DetailInfo() {} @@ -1818,71 +2373,50 @@ func (m *ExecutorExecutionSummary) GetTiflashWaitSummary() *TiFlashWaitSummary { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*ExecutorExecutionSummary) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _ExecutorExecutionSummary_OneofMarshaler, _ExecutorExecutionSummary_OneofUnmarshaler, _ExecutorExecutionSummary_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ExecutorExecutionSummary) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*ExecutorExecutionSummary_TiflashScanContext)(nil), } } -func _ExecutorExecutionSummary_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*ExecutorExecutionSummary) - // DetailInfo - switch x := m.DetailInfo.(type) { - case *ExecutorExecutionSummary_TiflashScanContext: - _ = b.EncodeVarint(6<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.TiflashScanContext); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("ExecutorExecutionSummary.DetailInfo has unexpected type %T", x) - } - return nil +type TiFlashExecutionInfo struct { + // The execution summary of each executor, no order limitation. + ExecutionSummaries []*ExecutorExecutionSummary `protobuf:"bytes,1,rep,name=execution_summaries,json=executionSummaries" json:"execution_summaries,omitempty"` } -func _ExecutorExecutionSummary_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*ExecutorExecutionSummary) - switch tag { - case 6: // DetailInfo.tiflash_scan_context - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType +func (m *TiFlashExecutionInfo) Reset() { *m = TiFlashExecutionInfo{} } +func (m *TiFlashExecutionInfo) String() string { return proto.CompactTextString(m) } +func (*TiFlashExecutionInfo) ProtoMessage() {} +func (*TiFlashExecutionInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{17} +} +func (m *TiFlashExecutionInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TiFlashExecutionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TiFlashExecutionInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } - msg := new(TiFlashScanContext) - err := b.DecodeMessage(msg) - m.DetailInfo = &ExecutorExecutionSummary_TiflashScanContext{msg} - return true, err - default: - return false, nil + return b[:n], nil } } - -func _ExecutorExecutionSummary_OneofSizer(msg proto.Message) (n int) { - m := msg.(*ExecutorExecutionSummary) - // DetailInfo - switch x := m.DetailInfo.(type) { - case *ExecutorExecutionSummary_TiflashScanContext: - s := proto.Size(x.TiflashScanContext) - n += proto.SizeVarint(6<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n +func (m *TiFlashExecutionInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TiFlashExecutionInfo.Merge(m, src) } - -type TiFlashExecutionInfo struct { - // The execution summary of each executor, no order limitation. - ExecutionSummaries []*ExecutorExecutionSummary `protobuf:"bytes,1,rep,name=execution_summaries,json=executionSummaries" json:"execution_summaries,omitempty"` - XXX_unrecognized []byte `json:"-"` +func (m *TiFlashExecutionInfo) XXX_Size() int { + return m.Size() +} +func (m *TiFlashExecutionInfo) XXX_DiscardUnknown() { + xxx_messageInfo_TiFlashExecutionInfo.DiscardUnknown(m) } -func (m *TiFlashExecutionInfo) Reset() { *m = TiFlashExecutionInfo{} } -func (m *TiFlashExecutionInfo) String() string { return proto.CompactTextString(m) } -func (*TiFlashExecutionInfo) ProtoMessage() {} -func (*TiFlashExecutionInfo) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{17} } +var xxx_messageInfo_TiFlashExecutionInfo proto.InternalMessageInfo func (m *TiFlashExecutionInfo) GetExecutionSummaries() []*ExecutorExecutionSummary { if m != nil { @@ -1892,17 +2426,42 @@ func (m *TiFlashExecutionInfo) GetExecutionSummaries() []*ExecutorExecutionSumma } type TiFlashRegionNumOfInstance struct { - InstanceId *string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId" json:"instance_id,omitempty"` - RegionNum *uint64 `protobuf:"varint,2,opt,name=region_num,json=regionNum" json:"region_num,omitempty"` - XXX_unrecognized []byte `json:"-"` + InstanceId *string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId" json:"instance_id,omitempty"` + RegionNum *uint64 `protobuf:"varint,2,opt,name=region_num,json=regionNum" json:"region_num,omitempty"` } func (m *TiFlashRegionNumOfInstance) Reset() { *m = TiFlashRegionNumOfInstance{} } func (m *TiFlashRegionNumOfInstance) String() string { return proto.CompactTextString(m) } func (*TiFlashRegionNumOfInstance) ProtoMessage() {} func (*TiFlashRegionNumOfInstance) Descriptor() ([]byte, []int) { - return fileDescriptorExecutor, []int{18} + return fileDescriptor_12d1cdcda51e000f, []int{18} +} +func (m *TiFlashRegionNumOfInstance) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TiFlashRegionNumOfInstance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TiFlashRegionNumOfInstance.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } +func (m *TiFlashRegionNumOfInstance) XXX_Merge(src proto.Message) { + xxx_messageInfo_TiFlashRegionNumOfInstance.Merge(m, src) +} +func (m *TiFlashRegionNumOfInstance) XXX_Size() int { + return m.Size() +} +func (m *TiFlashRegionNumOfInstance) XXX_DiscardUnknown() { + xxx_messageInfo_TiFlashRegionNumOfInstance.DiscardUnknown(m) +} + +var xxx_messageInfo_TiFlashRegionNumOfInstance proto.InternalMessageInfo func (m *TiFlashRegionNumOfInstance) GetInstanceId() string { if m != nil && m.InstanceId != nil { @@ -1919,11 +2478,11 @@ func (m *TiFlashRegionNumOfInstance) GetRegionNum() uint64 { } type TiFlashScanContext struct { - DmfileScannedPacks *uint64 `protobuf:"varint,1,opt,name=dmfile_scanned_packs,json=dmfileScannedPacks" json:"dmfile_scanned_packs,omitempty"` - DmfileSkippedPacks *uint64 `protobuf:"varint,2,opt,name=dmfile_skipped_packs,json=dmfileSkippedPacks" json:"dmfile_skipped_packs,omitempty"` + DmfileScannedPacks *uint64 `protobuf:"varint,1,opt,name=dmfile_scanned_packs,json=dmfileScannedPacks" json:"dmfile_scanned_packs,omitempty"` // Deprecated: Do not use. + DmfileSkippedPacks *uint64 `protobuf:"varint,2,opt,name=dmfile_skipped_packs,json=dmfileSkippedPacks" json:"dmfile_skipped_packs,omitempty"` // Deprecated: Do not use. DmfileDataScannedRows *uint64 `protobuf:"varint,3,opt,name=dmfile_data_scanned_rows,json=dmfileDataScannedRows" json:"dmfile_data_scanned_rows,omitempty"` DmfileDataSkippedRows *uint64 `protobuf:"varint,4,opt,name=dmfile_data_skipped_rows,json=dmfileDataSkippedRows" json:"dmfile_data_skipped_rows,omitempty"` - TotalDmfileRsLoadMs *uint64 `protobuf:"varint,5,opt,name=total_dmfile_rs_load_ms,json=totalDmfileRsLoadMs" json:"total_dmfile_rs_load_ms,omitempty"` + TotalDmfileRsLoadMs *uint64 `protobuf:"varint,5,opt,name=total_dmfile_rs_load_ms,json=totalDmfileRsLoadMs" json:"total_dmfile_rs_load_ms,omitempty"` // Deprecated: Do not use. TotalDmfileReadMs *uint64 `protobuf:"varint,6,opt,name=total_dmfile_read_ms,json=totalDmfileReadMs" json:"total_dmfile_read_ms,omitempty"` TotalBuildSnapshotMs *uint64 `protobuf:"varint,7,opt,name=total_build_snapshot_ms,json=totalBuildSnapshotMs" json:"total_build_snapshot_ms,omitempty"` LocalRegions *uint64 `protobuf:"varint,8,opt,name=local_regions,json=localRegions" json:"local_regions,omitempty"` @@ -1962,14 +2521,42 @@ type TiFlashScanContext struct { TotalVectorIdxSearchDiscardedNodes *uint64 `protobuf:"varint,106,opt,name=total_vector_idx_search_discarded_nodes,json=totalVectorIdxSearchDiscardedNodes" json:"total_vector_idx_search_discarded_nodes,omitempty"` TotalVectorIdxReadVecTimeMs *uint64 `protobuf:"varint,107,opt,name=total_vector_idx_read_vec_time_ms,json=totalVectorIdxReadVecTimeMs" json:"total_vector_idx_read_vec_time_ms,omitempty"` TotalVectorIdxReadOthersTimeMs *uint64 `protobuf:"varint,108,opt,name=total_vector_idx_read_others_time_ms,json=totalVectorIdxReadOthersTimeMs" json:"total_vector_idx_read_others_time_ms,omitempty"` - XXX_unrecognized []byte `json:"-"` } -func (m *TiFlashScanContext) Reset() { *m = TiFlashScanContext{} } -func (m *TiFlashScanContext) String() string { return proto.CompactTextString(m) } -func (*TiFlashScanContext) ProtoMessage() {} -func (*TiFlashScanContext) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{19} } +func (m *TiFlashScanContext) Reset() { *m = TiFlashScanContext{} } +func (m *TiFlashScanContext) String() string { return proto.CompactTextString(m) } +func (*TiFlashScanContext) ProtoMessage() {} +func (*TiFlashScanContext) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{19} +} +func (m *TiFlashScanContext) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TiFlashScanContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TiFlashScanContext.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TiFlashScanContext) XXX_Merge(src proto.Message) { + xxx_messageInfo_TiFlashScanContext.Merge(m, src) +} +func (m *TiFlashScanContext) XXX_Size() int { + return m.Size() +} +func (m *TiFlashScanContext) XXX_DiscardUnknown() { + xxx_messageInfo_TiFlashScanContext.DiscardUnknown(m) +} + +var xxx_messageInfo_TiFlashScanContext proto.InternalMessageInfo +// Deprecated: Do not use. func (m *TiFlashScanContext) GetDmfileScannedPacks() uint64 { if m != nil && m.DmfileScannedPacks != nil { return *m.DmfileScannedPacks @@ -1977,6 +2564,7 @@ func (m *TiFlashScanContext) GetDmfileScannedPacks() uint64 { return 0 } +// Deprecated: Do not use. func (m *TiFlashScanContext) GetDmfileSkippedPacks() uint64 { if m != nil && m.DmfileSkippedPacks != nil { return *m.DmfileSkippedPacks @@ -1998,6 +2586,7 @@ func (m *TiFlashScanContext) GetDmfileDataSkippedRows() uint64 { return 0 } +// Deprecated: Do not use. func (m *TiFlashScanContext) GetTotalDmfileRsLoadMs() uint64 { if m != nil && m.TotalDmfileRsLoadMs != nil { return *m.TotalDmfileRsLoadMs @@ -2275,13 +2864,40 @@ type TiFlashWaitSummary struct { MinTSOWaitNs *uint64 `protobuf:"varint,1,opt,name=minTSO_wait_ns,json=minTSOWaitNs" json:"minTSO_wait_ns,omitempty"` PipelineQueueWaitNs *uint64 `protobuf:"varint,2,opt,name=pipeline_queue_wait_ns,json=pipelineQueueWaitNs" json:"pipeline_queue_wait_ns,omitempty"` PipelineBreakerWaitNs *uint64 `protobuf:"varint,3,opt,name=pipeline_breaker_wait_ns,json=pipelineBreakerWaitNs" json:"pipeline_breaker_wait_ns,omitempty"` - XXX_unrecognized []byte `json:"-"` } -func (m *TiFlashWaitSummary) Reset() { *m = TiFlashWaitSummary{} } -func (m *TiFlashWaitSummary) String() string { return proto.CompactTextString(m) } -func (*TiFlashWaitSummary) ProtoMessage() {} -func (*TiFlashWaitSummary) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{20} } +func (m *TiFlashWaitSummary) Reset() { *m = TiFlashWaitSummary{} } +func (m *TiFlashWaitSummary) String() string { return proto.CompactTextString(m) } +func (*TiFlashWaitSummary) ProtoMessage() {} +func (*TiFlashWaitSummary) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{20} +} +func (m *TiFlashWaitSummary) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TiFlashWaitSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TiFlashWaitSummary.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TiFlashWaitSummary) XXX_Merge(src proto.Message) { + xxx_messageInfo_TiFlashWaitSummary.Merge(m, src) +} +func (m *TiFlashWaitSummary) XXX_Size() int { + return m.Size() +} +func (m *TiFlashWaitSummary) XXX_DiscardUnknown() { + xxx_messageInfo_TiFlashWaitSummary.DiscardUnknown(m) +} + +var xxx_messageInfo_TiFlashWaitSummary proto.InternalMessageInfo func (m *TiFlashWaitSummary) GetMinTSOWaitNs() uint64 { if m != nil && m.MinTSOWaitNs != nil { @@ -2305,16 +2921,43 @@ func (m *TiFlashWaitSummary) GetPipelineBreakerWaitNs() uint64 { } type Sort struct { - ByItems []*ByItem `protobuf:"bytes,1,rep,name=byItems" json:"byItems,omitempty"` - IsPartialSort *bool `protobuf:"varint,2,opt,name=isPartialSort" json:"isPartialSort,omitempty"` - Child *Executor `protobuf:"bytes,3,opt,name=child" json:"child,omitempty"` - XXX_unrecognized []byte `json:"-"` + ByItems []*ByItem `protobuf:"bytes,1,rep,name=byItems" json:"byItems,omitempty"` + IsPartialSort *bool `protobuf:"varint,2,opt,name=isPartialSort" json:"isPartialSort,omitempty"` + Child *Executor `protobuf:"bytes,3,opt,name=child" json:"child,omitempty"` +} + +func (m *Sort) Reset() { *m = Sort{} } +func (m *Sort) String() string { return proto.CompactTextString(m) } +func (*Sort) ProtoMessage() {} +func (*Sort) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{21} +} +func (m *Sort) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Sort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Sort.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Sort) XXX_Merge(src proto.Message) { + xxx_messageInfo_Sort.Merge(m, src) +} +func (m *Sort) XXX_Size() int { + return m.Size() +} +func (m *Sort) XXX_DiscardUnknown() { + xxx_messageInfo_Sort.DiscardUnknown(m) } -func (m *Sort) Reset() { *m = Sort{} } -func (m *Sort) String() string { return proto.CompactTextString(m) } -func (*Sort) ProtoMessage() {} -func (*Sort) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{21} } +var xxx_messageInfo_Sort proto.InternalMessageInfo func (m *Sort) GetByItems() []*ByItem { if m != nil { @@ -2338,19 +2981,46 @@ func (m *Sort) GetChild() *Executor { } type WindowFrameBound struct { - Type WindowBoundType `protobuf:"varint,1,opt,name=type,enum=tipb.WindowBoundType" json:"type"` - Unbounded bool `protobuf:"varint,2,opt,name=unbounded" json:"unbounded"` - Offset *uint64 `protobuf:"varint,3,opt,name=offset" json:"offset,omitempty"` - CalcFuncs []*Expr `protobuf:"bytes,4,rep,name=calcFuncs" json:"calcFuncs,omitempty"` - FrameRange *Expr `protobuf:"bytes,5,opt,name=frame_range,json=frameRange" json:"frame_range,omitempty"` - CmpDataType *RangeCmpDataType `protobuf:"varint,6,opt,name=cmp_data_type,json=cmpDataType,enum=tipb.RangeCmpDataType" json:"cmp_data_type,omitempty"` - XXX_unrecognized []byte `json:"-"` + Type WindowBoundType `protobuf:"varint,1,opt,name=type,enum=tipb.WindowBoundType" json:"type"` + Unbounded bool `protobuf:"varint,2,opt,name=unbounded" json:"unbounded"` + Offset *uint64 `protobuf:"varint,3,opt,name=offset" json:"offset,omitempty"` + CalcFuncs []*Expr `protobuf:"bytes,4,rep,name=calcFuncs" json:"calcFuncs,omitempty"` + FrameRange *Expr `protobuf:"bytes,5,opt,name=frame_range,json=frameRange" json:"frame_range,omitempty"` + CmpDataType *RangeCmpDataType `protobuf:"varint,6,opt,name=cmp_data_type,json=cmpDataType,enum=tipb.RangeCmpDataType" json:"cmp_data_type,omitempty"` +} + +func (m *WindowFrameBound) Reset() { *m = WindowFrameBound{} } +func (m *WindowFrameBound) String() string { return proto.CompactTextString(m) } +func (*WindowFrameBound) ProtoMessage() {} +func (*WindowFrameBound) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{22} +} +func (m *WindowFrameBound) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WindowFrameBound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WindowFrameBound.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WindowFrameBound) XXX_Merge(src proto.Message) { + xxx_messageInfo_WindowFrameBound.Merge(m, src) +} +func (m *WindowFrameBound) XXX_Size() int { + return m.Size() +} +func (m *WindowFrameBound) XXX_DiscardUnknown() { + xxx_messageInfo_WindowFrameBound.DiscardUnknown(m) } -func (m *WindowFrameBound) Reset() { *m = WindowFrameBound{} } -func (m *WindowFrameBound) String() string { return proto.CompactTextString(m) } -func (*WindowFrameBound) ProtoMessage() {} -func (*WindowFrameBound) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{22} } +var xxx_messageInfo_WindowFrameBound proto.InternalMessageInfo func (m *WindowFrameBound) GetType() WindowBoundType { if m != nil { @@ -2395,16 +3065,43 @@ func (m *WindowFrameBound) GetCmpDataType() RangeCmpDataType { } type WindowFrame struct { - Type WindowFrameType `protobuf:"varint,1,opt,name=type,enum=tipb.WindowFrameType" json:"type"` - Start *WindowFrameBound `protobuf:"bytes,2,opt,name=start" json:"start,omitempty"` - End *WindowFrameBound `protobuf:"bytes,3,opt,name=end" json:"end,omitempty"` - XXX_unrecognized []byte `json:"-"` + Type WindowFrameType `protobuf:"varint,1,opt,name=type,enum=tipb.WindowFrameType" json:"type"` + Start *WindowFrameBound `protobuf:"bytes,2,opt,name=start" json:"start,omitempty"` + End *WindowFrameBound `protobuf:"bytes,3,opt,name=end" json:"end,omitempty"` } -func (m *WindowFrame) Reset() { *m = WindowFrame{} } -func (m *WindowFrame) String() string { return proto.CompactTextString(m) } -func (*WindowFrame) ProtoMessage() {} -func (*WindowFrame) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{23} } +func (m *WindowFrame) Reset() { *m = WindowFrame{} } +func (m *WindowFrame) String() string { return proto.CompactTextString(m) } +func (*WindowFrame) ProtoMessage() {} +func (*WindowFrame) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{23} +} +func (m *WindowFrame) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WindowFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WindowFrame.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WindowFrame) XXX_Merge(src proto.Message) { + xxx_messageInfo_WindowFrame.Merge(m, src) +} +func (m *WindowFrame) XXX_Size() int { + return m.Size() +} +func (m *WindowFrame) XXX_DiscardUnknown() { + xxx_messageInfo_WindowFrame.DiscardUnknown(m) +} + +var xxx_messageInfo_WindowFrame proto.InternalMessageInfo func (m *WindowFrame) GetType() WindowFrameType { if m != nil { @@ -2428,18 +3125,45 @@ func (m *WindowFrame) GetEnd() *WindowFrameBound { } type Window struct { - FuncDesc []*Expr `protobuf:"bytes,1,rep,name=func_desc,json=funcDesc" json:"func_desc,omitempty"` - PartitionBy []*ByItem `protobuf:"bytes,2,rep,name=partition_by,json=partitionBy" json:"partition_by,omitempty"` - OrderBy []*ByItem `protobuf:"bytes,3,rep,name=order_by,json=orderBy" json:"order_by,omitempty"` - Frame *WindowFrame `protobuf:"bytes,4,opt,name=frame" json:"frame,omitempty"` - Child *Executor `protobuf:"bytes,5,opt,name=child" json:"child,omitempty"` - XXX_unrecognized []byte `json:"-"` + FuncDesc []*Expr `protobuf:"bytes,1,rep,name=func_desc,json=funcDesc" json:"func_desc,omitempty"` + PartitionBy []*ByItem `protobuf:"bytes,2,rep,name=partition_by,json=partitionBy" json:"partition_by,omitempty"` + OrderBy []*ByItem `protobuf:"bytes,3,rep,name=order_by,json=orderBy" json:"order_by,omitempty"` + Frame *WindowFrame `protobuf:"bytes,4,opt,name=frame" json:"frame,omitempty"` + Child *Executor `protobuf:"bytes,5,opt,name=child" json:"child,omitempty"` +} + +func (m *Window) Reset() { *m = Window{} } +func (m *Window) String() string { return proto.CompactTextString(m) } +func (*Window) ProtoMessage() {} +func (*Window) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{24} +} +func (m *Window) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Window) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Window.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Window) XXX_Merge(src proto.Message) { + xxx_messageInfo_Window.Merge(m, src) +} +func (m *Window) XXX_Size() int { + return m.Size() +} +func (m *Window) XXX_DiscardUnknown() { + xxx_messageInfo_Window.DiscardUnknown(m) } -func (m *Window) Reset() { *m = Window{} } -func (m *Window) String() string { return proto.CompactTextString(m) } -func (*Window) ProtoMessage() {} -func (*Window) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{24} } +var xxx_messageInfo_Window proto.InternalMessageInfo func (m *Window) GetFuncDesc() []*Expr { if m != nil { @@ -2477,14 +3201,41 @@ func (m *Window) GetChild() *Executor { } type GroupingExpr struct { - GroupingExpr []*Expr `protobuf:"bytes,1,rep,name=grouping_expr,json=groupingExpr" json:"grouping_expr,omitempty"` - XXX_unrecognized []byte `json:"-"` + GroupingExpr []*Expr `protobuf:"bytes,1,rep,name=grouping_expr,json=groupingExpr" json:"grouping_expr,omitempty"` +} + +func (m *GroupingExpr) Reset() { *m = GroupingExpr{} } +func (m *GroupingExpr) String() string { return proto.CompactTextString(m) } +func (*GroupingExpr) ProtoMessage() {} +func (*GroupingExpr) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{25} +} +func (m *GroupingExpr) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GroupingExpr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GroupingExpr.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GroupingExpr) XXX_Merge(src proto.Message) { + xxx_messageInfo_GroupingExpr.Merge(m, src) +} +func (m *GroupingExpr) XXX_Size() int { + return m.Size() +} +func (m *GroupingExpr) XXX_DiscardUnknown() { + xxx_messageInfo_GroupingExpr.DiscardUnknown(m) } -func (m *GroupingExpr) Reset() { *m = GroupingExpr{} } -func (m *GroupingExpr) String() string { return proto.CompactTextString(m) } -func (*GroupingExpr) ProtoMessage() {} -func (*GroupingExpr) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{25} } +var xxx_messageInfo_GroupingExpr proto.InternalMessageInfo func (m *GroupingExpr) GetGroupingExpr() []*Expr { if m != nil { @@ -2494,14 +3245,41 @@ func (m *GroupingExpr) GetGroupingExpr() []*Expr { } type GroupingSet struct { - GroupingExprs []*GroupingExpr `protobuf:"bytes,1,rep,name=grouping_exprs,json=groupingExprs" json:"grouping_exprs,omitempty"` - XXX_unrecognized []byte `json:"-"` + GroupingExprs []*GroupingExpr `protobuf:"bytes,1,rep,name=grouping_exprs,json=groupingExprs" json:"grouping_exprs,omitempty"` +} + +func (m *GroupingSet) Reset() { *m = GroupingSet{} } +func (m *GroupingSet) String() string { return proto.CompactTextString(m) } +func (*GroupingSet) ProtoMessage() {} +func (*GroupingSet) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{26} +} +func (m *GroupingSet) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GroupingSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GroupingSet.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GroupingSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_GroupingSet.Merge(m, src) +} +func (m *GroupingSet) XXX_Size() int { + return m.Size() +} +func (m *GroupingSet) XXX_DiscardUnknown() { + xxx_messageInfo_GroupingSet.DiscardUnknown(m) } -func (m *GroupingSet) Reset() { *m = GroupingSet{} } -func (m *GroupingSet) String() string { return proto.CompactTextString(m) } -func (*GroupingSet) ProtoMessage() {} -func (*GroupingSet) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{26} } +var xxx_messageInfo_GroupingSet proto.InternalMessageInfo func (m *GroupingSet) GetGroupingExprs() []*GroupingExpr { if m != nil { @@ -2512,16 +3290,43 @@ func (m *GroupingSet) GetGroupingExprs() []*GroupingExpr { // Deprecated in the nearly feature usage type Expand struct { - GroupingSets []*GroupingSet `protobuf:"bytes,1,rep,name=grouping_sets,json=groupingSets" json:"grouping_sets,omitempty"` - Child *Executor `protobuf:"bytes,2,opt,name=child" json:"child,omitempty"` - Version *uint64 `protobuf:"varint,3,opt,name=version" json:"version,omitempty"` - XXX_unrecognized []byte `json:"-"` + GroupingSets []*GroupingSet `protobuf:"bytes,1,rep,name=grouping_sets,json=groupingSets" json:"grouping_sets,omitempty"` + Child *Executor `protobuf:"bytes,2,opt,name=child" json:"child,omitempty"` + Version *uint64 `protobuf:"varint,3,opt,name=version" json:"version,omitempty"` +} + +func (m *Expand) Reset() { *m = Expand{} } +func (m *Expand) String() string { return proto.CompactTextString(m) } +func (*Expand) ProtoMessage() {} +func (*Expand) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{27} +} +func (m *Expand) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Expand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Expand.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Expand) XXX_Merge(src proto.Message) { + xxx_messageInfo_Expand.Merge(m, src) +} +func (m *Expand) XXX_Size() int { + return m.Size() +} +func (m *Expand) XXX_DiscardUnknown() { + xxx_messageInfo_Expand.DiscardUnknown(m) } -func (m *Expand) Reset() { *m = Expand{} } -func (m *Expand) String() string { return proto.CompactTextString(m) } -func (*Expand) ProtoMessage() {} -func (*Expand) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{27} } +var xxx_messageInfo_Expand proto.InternalMessageInfo func (m *Expand) GetGroupingSets() []*GroupingSet { if m != nil { @@ -2545,14 +3350,41 @@ func (m *Expand) GetVersion() uint64 { } type ExprSlice struct { - Exprs []*Expr `protobuf:"bytes,1,rep,name=exprs" json:"exprs,omitempty"` - XXX_unrecognized []byte `json:"-"` + Exprs []*Expr `protobuf:"bytes,1,rep,name=exprs" json:"exprs,omitempty"` +} + +func (m *ExprSlice) Reset() { *m = ExprSlice{} } +func (m *ExprSlice) String() string { return proto.CompactTextString(m) } +func (*ExprSlice) ProtoMessage() {} +func (*ExprSlice) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{28} +} +func (m *ExprSlice) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExprSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExprSlice.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ExprSlice) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExprSlice.Merge(m, src) +} +func (m *ExprSlice) XXX_Size() int { + return m.Size() +} +func (m *ExprSlice) XXX_DiscardUnknown() { + xxx_messageInfo_ExprSlice.DiscardUnknown(m) } -func (m *ExprSlice) Reset() { *m = ExprSlice{} } -func (m *ExprSlice) String() string { return proto.CompactTextString(m) } -func (*ExprSlice) ProtoMessage() {} -func (*ExprSlice) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{28} } +var xxx_messageInfo_ExprSlice proto.InternalMessageInfo func (m *ExprSlice) GetExprs() []*Expr { if m != nil { @@ -2565,13 +3397,40 @@ type Expand2 struct { ProjExprs []*ExprSlice `protobuf:"bytes,1,rep,name=proj_exprs,json=projExprs" json:"proj_exprs,omitempty"` GeneratedOutputNames []string `protobuf:"bytes,2,rep,name=generated_output_names,json=generatedOutputNames" json:"generated_output_names,omitempty"` Child *Executor `protobuf:"bytes,3,opt,name=child" json:"child,omitempty"` - XXX_unrecognized []byte `json:"-"` } -func (m *Expand2) Reset() { *m = Expand2{} } -func (m *Expand2) String() string { return proto.CompactTextString(m) } -func (*Expand2) ProtoMessage() {} -func (*Expand2) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{29} } +func (m *Expand2) Reset() { *m = Expand2{} } +func (m *Expand2) String() string { return proto.CompactTextString(m) } +func (*Expand2) ProtoMessage() {} +func (*Expand2) Descriptor() ([]byte, []int) { + return fileDescriptor_12d1cdcda51e000f, []int{29} +} +func (m *Expand2) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Expand2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Expand2.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Expand2) XXX_Merge(src proto.Message) { + xxx_messageInfo_Expand2.Merge(m, src) +} +func (m *Expand2) XXX_Size() int { + return m.Size() +} +func (m *Expand2) XXX_DiscardUnknown() { + xxx_messageInfo_Expand2.DiscardUnknown(m) +} + +var xxx_messageInfo_Expand2 proto.InternalMessageInfo func (m *Expand2) GetProjExprs() []*ExprSlice { if m != nil { @@ -2595,6 +3454,21 @@ func (m *Expand2) GetChild() *Executor { } func init() { + proto.RegisterEnum("tipb.ExecType", ExecType_name, ExecType_value) + proto.RegisterEnum("tipb.ExchangeType", ExchangeType_name, ExchangeType_value) + proto.RegisterEnum("tipb.CompressionMode", CompressionMode_name, CompressionMode_value) + proto.RegisterEnum("tipb.EngineType", EngineType_name, EngineType_value) + proto.RegisterEnum("tipb.VectorIndexKind", VectorIndexKind_name, VectorIndexKind_value) + proto.RegisterEnum("tipb.VectorDistanceMetric", VectorDistanceMetric_name, VectorDistanceMetric_value) + proto.RegisterEnum("tipb.ANNQueryType", ANNQueryType_name, ANNQueryType_value) + proto.RegisterEnum("tipb.JoinType", JoinType_name, JoinType_value) + proto.RegisterEnum("tipb.JoinExecType", JoinExecType_name, JoinExecType_value) + proto.RegisterEnum("tipb.RuntimeFilterType", RuntimeFilterType_name, RuntimeFilterType_value) + proto.RegisterEnum("tipb.RuntimeFilterMode", RuntimeFilterMode_name, RuntimeFilterMode_value) + proto.RegisterEnum("tipb.TiFlashPreAggMode", TiFlashPreAggMode_name, TiFlashPreAggMode_value) + proto.RegisterEnum("tipb.WindowBoundType", WindowBoundType_name, WindowBoundType_value) + proto.RegisterEnum("tipb.RangeCmpDataType", RangeCmpDataType_name, RangeCmpDataType_value) + proto.RegisterEnum("tipb.WindowFrameType", WindowFrameType_name, WindowFrameType_value) proto.RegisterType((*Executor)(nil), "tipb.Executor") proto.RegisterType((*ExchangeSender)(nil), "tipb.ExchangeSender") proto.RegisterType((*EncodedBytesSlice)(nil), "tipb.EncodedBytesSlice") @@ -2625,26 +3499,291 @@ func init() { proto.RegisterType((*Expand)(nil), "tipb.Expand") proto.RegisterType((*ExprSlice)(nil), "tipb.ExprSlice") proto.RegisterType((*Expand2)(nil), "tipb.Expand2") - proto.RegisterEnum("tipb.ExecType", ExecType_name, ExecType_value) - proto.RegisterEnum("tipb.ExchangeType", ExchangeType_name, ExchangeType_value) - proto.RegisterEnum("tipb.CompressionMode", CompressionMode_name, CompressionMode_value) - proto.RegisterEnum("tipb.EngineType", EngineType_name, EngineType_value) - proto.RegisterEnum("tipb.VectorIndexKind", VectorIndexKind_name, VectorIndexKind_value) - proto.RegisterEnum("tipb.VectorDistanceMetric", VectorDistanceMetric_name, VectorDistanceMetric_value) - proto.RegisterEnum("tipb.ANNQueryType", ANNQueryType_name, ANNQueryType_value) - proto.RegisterEnum("tipb.JoinType", JoinType_name, JoinType_value) - proto.RegisterEnum("tipb.JoinExecType", JoinExecType_name, JoinExecType_value) - proto.RegisterEnum("tipb.RuntimeFilterType", RuntimeFilterType_name, RuntimeFilterType_value) - proto.RegisterEnum("tipb.RuntimeFilterMode", RuntimeFilterMode_name, RuntimeFilterMode_value) - proto.RegisterEnum("tipb.TiFlashPreAggMode", TiFlashPreAggMode_name, TiFlashPreAggMode_value) - proto.RegisterEnum("tipb.WindowBoundType", WindowBoundType_name, WindowBoundType_value) - proto.RegisterEnum("tipb.RangeCmpDataType", RangeCmpDataType_name, RangeCmpDataType_value) - proto.RegisterEnum("tipb.WindowFrameType", WindowFrameType_name, WindowFrameType_value) } + +func init() { proto.RegisterFile("executor.proto", fileDescriptor_12d1cdcda51e000f) } + +var fileDescriptor_12d1cdcda51e000f = []byte{ + // 4367 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0xcd, 0x6f, 0x1b, 0x49, + 0x76, 0x17, 0x29, 0x7e, 0x3e, 0x52, 0x64, 0xab, 0x24, 0xdb, 0x6d, 0x79, 0x2d, 0x6b, 0xb8, 0xf6, + 0x8e, 0xc1, 0xcc, 0x78, 0x66, 0x64, 0xef, 0x7c, 0xec, 0x66, 0x77, 0x46, 0x9f, 0x63, 0xda, 0x12, + 0xa5, 0x6d, 0x2a, 0x9e, 0x3d, 0x04, 0x68, 0xb4, 0xba, 0x8b, 0x54, 0x59, 0xfd, 0xe5, 0xae, 0x6e, + 0x9b, 0x9a, 0xd3, 0xfc, 0x09, 0x41, 0x16, 0x09, 0x72, 0x0b, 0x90, 0xd3, 0x02, 0x09, 0xf2, 0x2f, + 0x24, 0x40, 0x10, 0x60, 0x8f, 0x7b, 0xdc, 0xec, 0x21, 0x08, 0x66, 0x4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83, 0x90, 0x8f, 0x73, 0xbd, 0xe0, 0x34, 0x4e, 0x8d, 0x2c, 0x4f, 0x1b, 0x19, 0xd0, 0x78, 0xd2, + 0x99, 0x01, 0x8d, 0xf9, 0x5b, 0xd6, 0x33, 0x74, 0xa8, 0xbe, 0xa6, 0x11, 0x7e, 0x3b, 0x21, 0x77, + 0x45, 0xfa, 0xd8, 0x79, 0x1f, 0xea, 0xa2, 0x2f, 0xf2, 0x23, 0x86, 0xef, 0xad, 0xce, 0x75, 0xfe, + 0xa6, 0x00, 0x55, 0xf5, 0xfd, 0x0a, 0x79, 0x04, 0x10, 0x46, 0xc1, 0xcb, 0xa9, 0x41, 0xb7, 0x27, + 0x14, 0xf9, 0x05, 0x45, 0x5d, 0x40, 0x64, 0xb5, 0xee, 0x09, 0xdc, 0x1c, 0x51, 0x9f, 0x46, 0x96, + 0x38, 0x50, 0x54, 0x0a, 0xea, 0x5b, 0x9e, 0xfa, 0x8e, 0xa1, 0x6e, 0xac, 0x66, 0x5a, 0x99, 0x88, + 0xf6, 0x85, 0xee, 0xed, 0xe2, 0x4b, 0xf7, 0xdf, 0x8b, 0xf2, 0x43, 0x38, 0xac, 0x0e, 0x2f, 0xc3, + 0x92, 0xf8, 0xcd, 0x5e, 0x35, 0x6a, 0x0b, 0xa9, 0x28, 0xab, 0xfd, 0x6a, 0x85, 0x54, 0x94, 0x95, + 0x4c, 0xb5, 0x22, 0x59, 0x81, 0xb6, 0x10, 0xe5, 0x8a, 0x85, 0xda, 0x22, 0x69, 0x42, 0x0d, 0xad, + 0x05, 0x61, 0x5f, 0x2b, 0x91, 0x25, 0xa8, 0x8b, 0x27, 0x2c, 0x34, 0x69, 0xe5, 0xcc, 0x08, 0x66, + 0x79, 0x5b, 0xa3, 0x91, 0x56, 0x49, 0xf1, 0xcf, 0x02, 0xe6, 0x6b, 0xd5, 0xf4, 0xe9, 0x39, 0x73, + 0x5d, 0xad, 0x46, 0x6e, 0x02, 0x11, 0x4f, 0xd3, 0x1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fa, 0x62, 0x08, 0xe2, 0xf2, 0x23, 0x87, 0x8f, 0xad, 0x71, + 0xad, 0x80, 0x53, 0x21, 0xce, 0x02, 0xae, 0x15, 0xb7, 0x3f, 0xfb, 0xc3, 0x6f, 0x6b, 0x85, 0xdf, + 0x7d, 0xbb, 0x5e, 0xf8, 0xfd, 0xb7, 0xeb, 0x85, 0xff, 0xfa, 0x76, 0xbd, 0xf0, 0x57, 0xdf, 0xad, + 0x2f, 0xfc, 0xdd, 0x77, 0xeb, 0x0b, 0xbf, 0xff, 0x6e, 0x7d, 0xe1, 0x0f, 0xdf, 0xad, 0x2f, 0xc0, + 0x0d, 0x3b, 0xf0, 0x1e, 0x89, 0x73, 0xc3, 0xb6, 0xc2, 0x47, 0x31, 0x73, 0x4e, 0x31, 0x92, 0x1e, + 0x17, 0xfe, 0x37, 0x00, 0x00, 0xff, 0xff, 0x0b, 0x1a, 0x18, 0x2d, 0xa2, 0x2c, 0x00, 0x00, +} + func (m *Executor) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2652,205 +3791,240 @@ func (m *Executor) Marshal() (dAtA []byte, err error) { } func (m *Executor) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Executor) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Tp)) - if m.TblScan != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.TblScan.Size())) - n1, err := m.TblScan.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Expand2 != nil { + { + size, err := m.Expand2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n1 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 } - if m.IdxScan != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.IdxScan.Size())) - n2, err := m.IdxScan.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Expand != nil { + { + size, err := m.Expand.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n2 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a } - if m.Selection != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Selection.Size())) - n3, err := m.Selection.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + i = encodeVarintExecutor(dAtA, i, uint64(m.FineGrainedShuffleBatchSize)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 + i = encodeVarintExecutor(dAtA, i, uint64(m.FineGrainedShuffleStreamCount)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 + if m.Window != nil { + { + size, err := m.Window.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n3 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 } - if m.Aggregation != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Aggregation.Size())) - n4, err := m.Aggregation.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Sort != nil { + { + size, err := m.Sort.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n4 + i-- + dAtA[i] = 0x7a } - if m.TopN != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.TopN.Size())) - n5, err := m.TopN.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.PartitionTableScan != nil { + { + size, err := m.PartitionTableScan.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n5 + i-- + dAtA[i] = 0x72 } - if m.Limit != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Limit.Size())) - n6, err := m.Limit.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Projection != nil { + { + size, err := m.Projection.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n6 + i-- + dAtA[i] = 0x6a } - if m.ExchangeReceiver != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.ExchangeReceiver.Size())) - n7, err := m.ExchangeReceiver.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 + if m.ExchangeSender != nil { + { + size, err := m.ExchangeSender.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 } - if m.Join != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Join.Size())) - n8, err := m.Join.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Kill != nil { + { + size, err := m.Kill.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n8 + i-- + dAtA[i] = 0x5a } if m.ExecutorId != nil { - dAtA[i] = 0x52 - i++ + i -= len(*m.ExecutorId) + copy(dAtA[i:], *m.ExecutorId) i = encodeVarintExecutor(dAtA, i, uint64(len(*m.ExecutorId))) - i += copy(dAtA[i:], *m.ExecutorId) + i-- + dAtA[i] = 0x52 } - if m.Kill != nil { - dAtA[i] = 0x5a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Kill.Size())) - n9, err := m.Kill.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Join != nil { + { + size, err := m.Join.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n9 + i-- + dAtA[i] = 0x4a } - if m.ExchangeSender != nil { - dAtA[i] = 0x62 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.ExchangeSender.Size())) - n10, err := m.ExchangeSender.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ExchangeReceiver != nil { + { + size, err := m.ExchangeReceiver.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n10 + i-- + dAtA[i] = 0x42 } - if m.Projection != nil { - dAtA[i] = 0x6a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Projection.Size())) - n11, err := m.Projection.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Limit != nil { + { + size, err := m.Limit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n11 + i-- + dAtA[i] = 0x3a } - if m.PartitionTableScan != nil { - dAtA[i] = 0x72 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.PartitionTableScan.Size())) - n12, err := m.PartitionTableScan.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.TopN != nil { + { + size, err := m.TopN.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n12 + i-- + dAtA[i] = 0x32 } - if m.Sort != nil { - dAtA[i] = 0x7a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Sort.Size())) - n13, err := m.Sort.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Aggregation != nil { + { + size, err := m.Aggregation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n13 + i-- + dAtA[i] = 0x2a } - if m.Window != nil { - dAtA[i] = 0x82 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Window.Size())) - n14, err := m.Window.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Selection != nil { + { + size, err := m.Selection.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n14 + i-- + dAtA[i] = 0x22 } - dAtA[i] = 0x88 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.FineGrainedShuffleStreamCount)) - dAtA[i] = 0x90 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.FineGrainedShuffleBatchSize)) - if m.Expand != nil { - dAtA[i] = 0x9a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Expand.Size())) - n15, err := m.Expand.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.IdxScan != nil { + { + size, err := m.IdxScan.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n15 + i-- + dAtA[i] = 0x1a } - if m.Expand2 != nil { - dAtA[i] = 0xa2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Expand2.Size())) - n16, err := m.Expand2.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.TblScan != nil { + { + size, err := m.TblScan.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n16 - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + i-- + dAtA[i] = 0x12 } - return i, nil + i = encodeVarintExecutor(dAtA, i, uint64(m.Tp)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *ExchangeSender) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2858,92 +4032,105 @@ func (m *ExchangeSender) Marshal() (dAtA []byte, err error) { } func (m *ExchangeSender) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExchangeSender) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Tp)) - if len(m.EncodedTaskMeta) > 0 { - for _, b := range m.EncodedTaskMeta { - dAtA[i] = 0x12 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) - } - } - if len(m.PartitionKeys) > 0 { - for _, msg := range m.PartitionKeys { - dAtA[i] = 0x1a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.UpstreamCteTaskMeta) > 0 { + for iNdEx := len(m.UpstreamCteTaskMeta) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UpstreamCteTaskMeta[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x42 } } - if m.Child != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Child.Size())) - n17, err := m.Child.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + i = encodeVarintExecutor(dAtA, i, uint64(m.Compression)) + i-- + dAtA[i] = 0x38 + if len(m.AllFieldTypes) > 0 { + for iNdEx := len(m.AllFieldTypes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AllFieldTypes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 } - i += n17 } if len(m.Types) > 0 { - for _, msg := range m.Types { - dAtA[i] = 0x2a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Types) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Types[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x2a } } - if len(m.AllFieldTypes) > 0 { - for _, msg := range m.AllFieldTypes { - dAtA[i] = 0x32 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Child != nil { + { + size, err := m.Child.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x22 } - dAtA[i] = 0x38 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Compression)) - if len(m.UpstreamCteTaskMeta) > 0 { - for _, msg := range m.UpstreamCteTaskMeta { - dAtA[i] = 0x42 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.PartitionKeys) > 0 { + for iNdEx := len(m.PartitionKeys) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PartitionKeys[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x1a } } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + if len(m.EncodedTaskMeta) > 0 { + for iNdEx := len(m.EncodedTaskMeta) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.EncodedTaskMeta[iNdEx]) + copy(dAtA[i:], m.EncodedTaskMeta[iNdEx]) + i = encodeVarintExecutor(dAtA, i, uint64(len(m.EncodedTaskMeta[iNdEx]))) + i-- + dAtA[i] = 0x12 + } } - return i, nil + i = encodeVarintExecutor(dAtA, i, uint64(m.Tp)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *EncodedBytesSlice) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2951,28 +4138,31 @@ func (m *EncodedBytesSlice) Marshal() (dAtA []byte, err error) { } func (m *EncodedBytesSlice) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EncodedBytesSlice) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.EncodedTasks) > 0 { - for _, b := range m.EncodedTasks { + for iNdEx := len(m.EncodedTasks) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.EncodedTasks[iNdEx]) + copy(dAtA[i:], m.EncodedTasks[iNdEx]) + i = encodeVarintExecutor(dAtA, i, uint64(len(m.EncodedTasks[iNdEx]))) + i-- dAtA[i] = 0xa - i++ - i = encodeVarintExecutor(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) } } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + return len(dAtA) - i, nil } func (m *ExchangeReceiver) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2980,53 +4170,59 @@ func (m *ExchangeReceiver) Marshal() (dAtA []byte, err error) { } func (m *ExchangeReceiver) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExchangeReceiver) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.EncodedTaskMeta) > 0 { - for _, b := range m.EncodedTaskMeta { - dAtA[i] = 0xa - i++ - i = encodeVarintExecutor(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) - } - } - if len(m.FieldTypes) > 0 { - for _, msg := range m.FieldTypes { - dAtA[i] = 0x12 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if len(m.OriginalCtePrdocuerTaskMeta) > 0 { + for iNdEx := len(m.OriginalCtePrdocuerTaskMeta) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.OriginalCtePrdocuerTaskMeta[iNdEx]) + copy(dAtA[i:], m.OriginalCtePrdocuerTaskMeta[iNdEx]) + i = encodeVarintExecutor(dAtA, i, uint64(len(m.OriginalCtePrdocuerTaskMeta[iNdEx]))) + i-- + dAtA[i] = 0x22 } } if m.Tp != nil { - dAtA[i] = 0x18 - i++ i = encodeVarintExecutor(dAtA, i, uint64(*m.Tp)) + i-- + dAtA[i] = 0x18 } - if len(m.OriginalCtePrdocuerTaskMeta) > 0 { - for _, b := range m.OriginalCtePrdocuerTaskMeta { - dAtA[i] = 0x22 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) + if len(m.FieldTypes) > 0 { + for iNdEx := len(m.FieldTypes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FieldTypes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + if len(m.EncodedTaskMeta) > 0 { + for iNdEx := len(m.EncodedTaskMeta) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.EncodedTaskMeta[iNdEx]) + copy(dAtA[i:], m.EncodedTaskMeta[iNdEx]) + i = encodeVarintExecutor(dAtA, i, uint64(len(m.EncodedTaskMeta[iNdEx]))) + i-- + dAtA[i] = 0xa + } } - return i, nil + return len(dAtA) - i, nil } func (m *ANNQueryInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3034,54 +4230,58 @@ func (m *ANNQueryInfo) Marshal() (dAtA []byte, err error) { } func (m *ANNQueryInfo) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ANNQueryInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.QueryType)) - dAtA[i] = 0x10 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.DistanceMetric)) - dAtA[i] = 0x18 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.TopK)) - dAtA[i] = 0x22 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(len(m.ColumnName))) - i += copy(dAtA[i:], m.ColumnName) - dAtA[i] = 0x28 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.ColumnId)) + i = encodeVarintExecutor(dAtA, i, uint64(m.HnswEfSearch)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa0 + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.MaxDistance)))) + i-- + dAtA[i] = 0x51 + i = encodeVarintExecutor(dAtA, i, uint64(m.IndexId)) + i-- + dAtA[i] = 0x40 if m.RefVecF32 != nil { - dAtA[i] = 0x32 - i++ + i -= len(m.RefVecF32) + copy(dAtA[i:], m.RefVecF32) i = encodeVarintExecutor(dAtA, i, uint64(len(m.RefVecF32))) - i += copy(dAtA[i:], m.RefVecF32) - } - dAtA[i] = 0x40 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.IndexId)) - dAtA[i] = 0x51 - i++ - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.MaxDistance)))) - i += 8 - dAtA[i] = 0xa0 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.HnswEfSearch)) - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + i-- + dAtA[i] = 0x32 } - return i, nil + i = encodeVarintExecutor(dAtA, i, uint64(m.ColumnId)) + i-- + dAtA[i] = 0x28 + i -= len(m.ColumnName) + copy(dAtA[i:], m.ColumnName) + i = encodeVarintExecutor(dAtA, i, uint64(len(m.ColumnName))) + i-- + dAtA[i] = 0x22 + i = encodeVarintExecutor(dAtA, i, uint64(m.TopK)) + i-- + dAtA[i] = 0x18 + i = encodeVarintExecutor(dAtA, i, uint64(m.DistanceMetric)) + i-- + dAtA[i] = 0x10 + i = encodeVarintExecutor(dAtA, i, uint64(m.QueryType)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *TableScan) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3089,129 +4289,141 @@ func (m *TableScan) Marshal() (dAtA []byte, err error) { } func (m *TableScan) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TableScan) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.TableId)) - if len(m.Columns) > 0 { - for _, msg := range m.Columns { - dAtA[i] = 0x12 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.AnnQuery != nil { + { + size, err := m.AnnQuery.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n - } - } - dAtA[i] = 0x18 - i++ - if m.Desc { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - if len(m.PrimaryColumnIds) > 0 { - for _, num := range m.PrimaryColumnIds { - dAtA[i] = 0x20 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(num)) + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x6a } - dAtA[i] = 0x28 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.NextReadEngine)) - if len(m.Ranges) > 0 { - for _, msg := range m.Ranges { - dAtA[i] = 0x32 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + i = encodeVarintExecutor(dAtA, i, uint64(m.MaxWaitTimeMs)) + i-- + dAtA[i] = 0x60 + if len(m.RuntimeFilterList) > 0 { + for iNdEx := len(m.RuntimeFilterList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RuntimeFilterList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x5a } } - if len(m.PrimaryPrefixColumnIds) > 0 { - for _, num := range m.PrimaryPrefixColumnIds { - dAtA[i] = 0x38 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(num)) + if len(m.PushedDownFilterConditions) > 0 { + for iNdEx := len(m.PushedDownFilterConditions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PushedDownFilterConditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 } } - if m.KeepOrder != nil { - dAtA[i] = 0x40 - i++ - if *m.KeepOrder { + if m.IsFastScan != nil { + i-- + if *m.IsFastScan { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.IsFastScan != nil { + i-- dAtA[i] = 0x48 - i++ - if *m.IsFastScan { + } + if m.KeepOrder != nil { + i-- + if *m.KeepOrder { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x40 } - if len(m.PushedDownFilterConditions) > 0 { - for _, msg := range m.PushedDownFilterConditions { - dAtA[i] = 0x52 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if len(m.PrimaryPrefixColumnIds) > 0 { + for iNdEx := len(m.PrimaryPrefixColumnIds) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintExecutor(dAtA, i, uint64(m.PrimaryPrefixColumnIds[iNdEx])) + i-- + dAtA[i] = 0x38 } } - if len(m.RuntimeFilterList) > 0 { - for _, msg := range m.RuntimeFilterList { - dAtA[i] = 0x5a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Ranges) > 0 { + for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x32 } } - dAtA[i] = 0x60 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.MaxWaitTimeMs)) - if m.AnnQuery != nil { - dAtA[i] = 0x6a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.AnnQuery.Size())) - n18, err := m.AnnQuery.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + i = encodeVarintExecutor(dAtA, i, uint64(m.NextReadEngine)) + i-- + dAtA[i] = 0x28 + if len(m.PrimaryColumnIds) > 0 { + for iNdEx := len(m.PrimaryColumnIds) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintExecutor(dAtA, i, uint64(m.PrimaryColumnIds[iNdEx])) + i-- + dAtA[i] = 0x20 } - i += n18 } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + i-- + if m.Desc { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + if len(m.Columns) > 0 { + for iNdEx := len(m.Columns) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Columns[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } } - return i, nil + i = encodeVarintExecutor(dAtA, i, uint64(m.TableId)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *PartitionTableScan) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3219,111 +4431,121 @@ func (m *PartitionTableScan) Marshal() (dAtA []byte, err error) { } func (m *PartitionTableScan) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PartitionTableScan) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.TableId)) - if len(m.Columns) > 0 { - for _, msg := range m.Columns { - dAtA[i] = 0x12 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.AnnQuery != nil { + { + size, err := m.AnnQuery.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n - } - } - dAtA[i] = 0x18 - i++ - if m.Desc { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - if len(m.PrimaryColumnIds) > 0 { - for _, num := range m.PrimaryColumnIds { - dAtA[i] = 0x20 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(num)) + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x5a } - if len(m.PrimaryPrefixColumnIds) > 0 { - for _, num := range m.PrimaryPrefixColumnIds { - dAtA[i] = 0x28 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(num)) + i = encodeVarintExecutor(dAtA, i, uint64(m.MaxWaitTimeMs)) + i-- + dAtA[i] = 0x50 + if len(m.RuntimeFilterList) > 0 { + for iNdEx := len(m.RuntimeFilterList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RuntimeFilterList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a } } - if len(m.PartitionIds) > 0 { - for _, num := range m.PartitionIds { - dAtA[i] = 0x30 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(num)) + if len(m.PushedDownFilterConditions) > 0 { + for iNdEx := len(m.PushedDownFilterConditions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PushedDownFilterConditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 } } if m.IsFastScan != nil { - dAtA[i] = 0x38 - i++ + i-- if *m.IsFastScan { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x38 } - if len(m.PushedDownFilterConditions) > 0 { - for _, msg := range m.PushedDownFilterConditions { - dAtA[i] = 0x42 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if len(m.PartitionIds) > 0 { + for iNdEx := len(m.PartitionIds) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintExecutor(dAtA, i, uint64(m.PartitionIds[iNdEx])) + i-- + dAtA[i] = 0x30 } } - if len(m.RuntimeFilterList) > 0 { - for _, msg := range m.RuntimeFilterList { - dAtA[i] = 0x4a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if len(m.PrimaryPrefixColumnIds) > 0 { + for iNdEx := len(m.PrimaryPrefixColumnIds) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintExecutor(dAtA, i, uint64(m.PrimaryPrefixColumnIds[iNdEx])) + i-- + dAtA[i] = 0x28 } } - dAtA[i] = 0x50 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.MaxWaitTimeMs)) - if m.AnnQuery != nil { - dAtA[i] = 0x5a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.AnnQuery.Size())) - n19, err := m.AnnQuery.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.PrimaryColumnIds) > 0 { + for iNdEx := len(m.PrimaryColumnIds) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintExecutor(dAtA, i, uint64(m.PrimaryColumnIds[iNdEx])) + i-- + dAtA[i] = 0x20 } - i += n19 } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + i-- + if m.Desc { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + if len(m.Columns) > 0 { + for iNdEx := len(m.Columns) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Columns[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } } - return i, nil + i = encodeVarintExecutor(dAtA, i, uint64(m.TableId)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *Join) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3331,159 +4553,181 @@ func (m *Join) Marshal() (dAtA []byte, err error) { } func (m *Join) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Join) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.JoinType)) - dAtA[i] = 0x10 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.JoinExecType)) - if len(m.Children) > 0 { - for _, msg := range m.Children { - dAtA[i] = 0x1a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.RuntimeFilterList) > 0 { + for iNdEx := len(m.RuntimeFilterList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RuntimeFilterList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x72 } } - dAtA[i] = 0x20 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.InnerIdx)) - if len(m.LeftJoinKeys) > 0 { - for _, msg := range m.LeftJoinKeys { - dAtA[i] = 0x2a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if m.IsNullAwareSemiJoin != nil { + i-- + if *m.IsNullAwareSemiJoin { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x68 } - if len(m.RightJoinKeys) > 0 { - for _, msg := range m.RightJoinKeys { - dAtA[i] = 0x32 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.OtherEqConditionsFromIn) > 0 { + for iNdEx := len(m.OtherEqConditionsFromIn) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OtherEqConditionsFromIn[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x62 } } - if len(m.ProbeTypes) > 0 { - for _, msg := range m.ProbeTypes { - dAtA[i] = 0x3a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.OtherConditions) > 0 { + for iNdEx := len(m.OtherConditions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OtherConditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x5a } } - if len(m.BuildTypes) > 0 { - for _, msg := range m.BuildTypes { - dAtA[i] = 0x42 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.RightConditions) > 0 { + for iNdEx := len(m.RightConditions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RightConditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x52 } } if len(m.LeftConditions) > 0 { - for _, msg := range m.LeftConditions { - dAtA[i] = 0x4a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.LeftConditions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LeftConditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x4a } } - if len(m.RightConditions) > 0 { - for _, msg := range m.RightConditions { - dAtA[i] = 0x52 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.BuildTypes) > 0 { + for iNdEx := len(m.BuildTypes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.BuildTypes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x42 } } - if len(m.OtherConditions) > 0 { - for _, msg := range m.OtherConditions { - dAtA[i] = 0x5a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.ProbeTypes) > 0 { + for iNdEx := len(m.ProbeTypes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ProbeTypes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x3a } } - if len(m.OtherEqConditionsFromIn) > 0 { - for _, msg := range m.OtherEqConditionsFromIn { - dAtA[i] = 0x62 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.RightJoinKeys) > 0 { + for iNdEx := len(m.RightJoinKeys) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RightJoinKeys[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x32 } } - if m.IsNullAwareSemiJoin != nil { - dAtA[i] = 0x68 - i++ - if *m.IsNullAwareSemiJoin { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.LeftJoinKeys) > 0 { + for iNdEx := len(m.LeftJoinKeys) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LeftJoinKeys[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a } - i++ } - if len(m.RuntimeFilterList) > 0 { - for _, msg := range m.RuntimeFilterList { - dAtA[i] = 0x72 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + i = encodeVarintExecutor(dAtA, i, uint64(m.InnerIdx)) + i-- + dAtA[i] = 0x20 + if len(m.Children) > 0 { + for iNdEx := len(m.Children) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Children[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x1a } } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + i = encodeVarintExecutor(dAtA, i, uint64(m.JoinExecType)) + i-- + dAtA[i] = 0x10 + i = encodeVarintExecutor(dAtA, i, uint64(m.JoinType)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *RuntimeFilter) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3491,61 +4735,69 @@ func (m *RuntimeFilter) Marshal() (dAtA []byte, err error) { } func (m *RuntimeFilter) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RuntimeFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Id)) - if len(m.SourceExprList) > 0 { - for _, msg := range m.SourceExprList { - dAtA[i] = 0x12 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + i = encodeVarintExecutor(dAtA, i, uint64(m.RfMode)) + i-- + dAtA[i] = 0x38 + i = encodeVarintExecutor(dAtA, i, uint64(m.RfType)) + i-- + dAtA[i] = 0x30 + i -= len(m.TargetExecutorId) + copy(dAtA[i:], m.TargetExecutorId) + i = encodeVarintExecutor(dAtA, i, uint64(len(m.TargetExecutorId))) + i-- + dAtA[i] = 0x2a + i -= len(m.SourceExecutorId) + copy(dAtA[i:], m.SourceExecutorId) + i = encodeVarintExecutor(dAtA, i, uint64(len(m.SourceExecutorId))) + i-- + dAtA[i] = 0x22 + if len(m.TargetExprList) > 0 { + for iNdEx := len(m.TargetExprList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TargetExprList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x1a } } - if len(m.TargetExprList) > 0 { - for _, msg := range m.TargetExprList { - dAtA[i] = 0x1a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.SourceExprList) > 0 { + for iNdEx := len(m.SourceExprList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SourceExprList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - dAtA[i] = 0x22 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(len(m.SourceExecutorId))) - i += copy(dAtA[i:], m.SourceExecutorId) - dAtA[i] = 0x2a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(len(m.TargetExecutorId))) - i += copy(dAtA[i:], m.TargetExecutorId) - dAtA[i] = 0x30 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.RfType)) - dAtA[i] = 0x38 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.RfMode)) - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + i = encodeVarintExecutor(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *IndexScan) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3553,63 +4805,67 @@ func (m *IndexScan) Marshal() (dAtA []byte, err error) { } func (m *IndexScan) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IndexScan) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.TableId)) - dAtA[i] = 0x10 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.IndexId)) - if len(m.Columns) > 0 { - for _, msg := range m.Columns { - dAtA[i] = 0x1a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if len(m.PrimaryColumnIds) > 0 { + for iNdEx := len(m.PrimaryColumnIds) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintExecutor(dAtA, i, uint64(m.PrimaryColumnIds[iNdEx])) + i-- + dAtA[i] = 0x30 } } - dAtA[i] = 0x20 - i++ - if m.Desc { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ if m.Unique != nil { - dAtA[i] = 0x28 - i++ + i-- if *m.Unique { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x28 } - if len(m.PrimaryColumnIds) > 0 { - for _, num := range m.PrimaryColumnIds { - dAtA[i] = 0x30 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(num)) - } + i-- + if m.Desc { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + i-- + dAtA[i] = 0x20 + if len(m.Columns) > 0 { + for iNdEx := len(m.Columns) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Columns[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } } - return i, nil + i = encodeVarintExecutor(dAtA, i, uint64(m.IndexId)) + i-- + dAtA[i] = 0x10 + i = encodeVarintExecutor(dAtA, i, uint64(m.TableId)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *Selection) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3617,54 +4873,62 @@ func (m *Selection) Marshal() (dAtA []byte, err error) { } func (m *Selection) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Selection) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Conditions) > 0 { - for _, msg := range m.Conditions { - dAtA[i] = 0xa - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Child != nil { + { + size, err := m.Child.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x1a } if len(m.RpnConditions) > 0 { - for _, msg := range m.RpnConditions { - dAtA[i] = 0x12 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.RpnConditions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RpnConditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - if m.Child != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Child.Size())) - n20, err := m.Child.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - i += n20 } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + return len(dAtA) - i, nil } func (m *Projection) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3672,54 +4936,62 @@ func (m *Projection) Marshal() (dAtA []byte, err error) { } func (m *Projection) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Projection) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Exprs) > 0 { - for _, msg := range m.Exprs { - dAtA[i] = 0xa - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Child != nil { + { + size, err := m.Child.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x1a } if len(m.RpnExprs) > 0 { - for _, msg := range m.RpnExprs { - dAtA[i] = 0x12 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.RpnExprs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RpnExprs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - if m.Child != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Child.Size())) - n21, err := m.Child.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Exprs) > 0 { + for iNdEx := len(m.Exprs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Exprs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - i += n21 } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + return len(dAtA) - i, nil } func (m *Aggregation) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3727,91 +4999,103 @@ func (m *Aggregation) Marshal() (dAtA []byte, err error) { } func (m *Aggregation) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Aggregation) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.GroupBy) > 0 { - for _, msg := range m.GroupBy { - dAtA[i] = 0xa - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.PreAggMode != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.PreAggMode)) + i-- + dAtA[i] = 0x38 + } + if m.Child != nil { + { + size, err := m.Child.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x32 } - if len(m.AggFunc) > 0 { - for _, msg := range m.AggFunc { - dAtA[i] = 0x12 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.RpnAggFunc) > 0 { + for iNdEx := len(m.RpnAggFunc) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RpnAggFunc[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x2a } } - dAtA[i] = 0x18 - i++ + if len(m.RpnGroupBy) > 0 { + for iNdEx := len(m.RpnGroupBy) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RpnGroupBy[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + i-- if m.Streamed { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - if len(m.RpnGroupBy) > 0 { - for _, msg := range m.RpnGroupBy { - dAtA[i] = 0x22 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + i-- + dAtA[i] = 0x18 + if len(m.AggFunc) > 0 { + for iNdEx := len(m.AggFunc) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AggFunc[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - if len(m.RpnAggFunc) > 0 { - for _, msg := range m.RpnAggFunc { - dAtA[i] = 0x2a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.GroupBy) > 0 { + for iNdEx := len(m.GroupBy) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.GroupBy[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n - } - } - if m.Child != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Child.Size())) - n22, err := m.Child.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + i-- + dAtA[i] = 0xa } - i += n22 - } - if m.PreAggMode != nil { - dAtA[i] = 0x38 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.PreAggMode)) } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + return len(dAtA) - i, nil } func (m *TopN) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3819,57 +5103,65 @@ func (m *TopN) Marshal() (dAtA []byte, err error) { } func (m *TopN) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopN) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.OrderBy) > 0 { - for _, msg := range m.OrderBy { - dAtA[i] = 0xa - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.PartitionBy) > 0 { + for iNdEx := len(m.PartitionBy) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PartitionBy[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x22 } } - dAtA[i] = 0x10 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Limit)) if m.Child != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Child.Size())) - n23, err := m.Child.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n23 - } - if len(m.PartitionBy) > 0 { - for _, msg := range m.PartitionBy { - dAtA[i] = 0x22 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + { + size, err := m.Child.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x1a } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + i = encodeVarintExecutor(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x10 + if len(m.OrderBy) > 0 { + for iNdEx := len(m.OrderBy) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OrderBy[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } - return i, nil + return len(dAtA) - i, nil } func (m *Limit) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3877,45 +5169,51 @@ func (m *Limit) Marshal() (dAtA []byte, err error) { } func (m *Limit) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Limit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Limit)) - if m.Child != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Child.Size())) - n24, err := m.Child.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n24 - } if len(m.PartitionBy) > 0 { - for _, msg := range m.PartitionBy { + for iNdEx := len(m.PartitionBy) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PartitionBy[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.Child != nil { + { + size, err := m.Child.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + i = encodeVarintExecutor(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *Kill) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3923,31 +5221,33 @@ func (m *Kill) Marshal() (dAtA []byte, err error) { } func (m *Kill) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Kill) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.ConnID)) - dAtA[i] = 0x10 - i++ + i-- if m.Query { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + i-- + dAtA[i] = 0x10 + i = encodeVarintExecutor(dAtA, i, uint64(m.ConnID)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *ExecutorExecutionSummary) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3955,83 +5255,98 @@ func (m *ExecutorExecutionSummary) Marshal() (dAtA []byte, err error) { } func (m *ExecutorExecutionSummary) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExecutorExecutionSummary) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.TimeProcessedNs != nil { - dAtA[i] = 0x8 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.TimeProcessedNs)) - } - if m.NumProducedRows != nil { - dAtA[i] = 0x10 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.NumProducedRows)) + if m.TiflashWaitSummary != nil { + { + size, err := m.TiflashWaitSummary.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 } - if m.NumIterations != nil { - dAtA[i] = 0x18 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.NumIterations)) + if m.RuConsumption != nil { + i -= len(m.RuConsumption) + copy(dAtA[i:], m.RuConsumption) + i = encodeVarintExecutor(dAtA, i, uint64(len(m.RuConsumption))) + i-- + dAtA[i] = 0x3a } - if m.ExecutorId != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(len(*m.ExecutorId))) - i += copy(dAtA[i:], *m.ExecutorId) + if m.DetailInfo != nil { + { + size := m.DetailInfo.Size() + i -= size + if _, err := m.DetailInfo.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } } if m.Concurrency != nil { - dAtA[i] = 0x28 - i++ i = encodeVarintExecutor(dAtA, i, uint64(*m.Concurrency)) + i-- + dAtA[i] = 0x28 } - if m.DetailInfo != nil { - nn25, err := m.DetailInfo.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += nn25 + if m.ExecutorId != nil { + i -= len(*m.ExecutorId) + copy(dAtA[i:], *m.ExecutorId) + i = encodeVarintExecutor(dAtA, i, uint64(len(*m.ExecutorId))) + i-- + dAtA[i] = 0x22 } - if m.RuConsumption != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(len(m.RuConsumption))) - i += copy(dAtA[i:], m.RuConsumption) + if m.NumIterations != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.NumIterations)) + i-- + dAtA[i] = 0x18 } - if m.TiflashWaitSummary != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.TiflashWaitSummary.Size())) - n26, err := m.TiflashWaitSummary.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n26 + if m.NumProducedRows != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.NumProducedRows)) + i-- + dAtA[i] = 0x10 } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + if m.TimeProcessedNs != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.TimeProcessedNs)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *ExecutorExecutionSummary_TiflashScanContext) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExecutorExecutionSummary_TiflashScanContext) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.TiflashScanContext != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.TiflashScanContext.Size())) - n27, err := m.TiflashScanContext.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.TiflashScanContext.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n27 + i-- + dAtA[i] = 0x32 } - return i, nil + return len(dAtA) - i, nil } func (m *TiFlashExecutionInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4039,32 +5354,36 @@ func (m *TiFlashExecutionInfo) Marshal() (dAtA []byte, err error) { } func (m *TiFlashExecutionInfo) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TiFlashExecutionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.ExecutionSummaries) > 0 { - for _, msg := range m.ExecutionSummaries { - dAtA[i] = 0xa - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.ExecutionSummaries) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ExecutionSummaries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + return len(dAtA) - i, nil } func (m *TiFlashRegionNumOfInstance) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4072,31 +5391,34 @@ func (m *TiFlashRegionNumOfInstance) Marshal() (dAtA []byte, err error) { } func (m *TiFlashRegionNumOfInstance) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TiFlashRegionNumOfInstance) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.InstanceId != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintExecutor(dAtA, i, uint64(len(*m.InstanceId))) - i += copy(dAtA[i:], *m.InstanceId) - } if m.RegionNum != nil { - dAtA[i] = 0x10 - i++ i = encodeVarintExecutor(dAtA, i, uint64(*m.RegionNum)) + i-- + dAtA[i] = 0x10 } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + if m.InstanceId != nil { + i -= len(*m.InstanceId) + copy(dAtA[i:], *m.InstanceId) + i = encodeVarintExecutor(dAtA, i, uint64(len(*m.InstanceId))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TiFlashScanContext) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4104,298 +5426,302 @@ func (m *TiFlashScanContext) Marshal() (dAtA []byte, err error) { } func (m *TiFlashScanContext) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TiFlashScanContext) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.DmfileScannedPacks != nil { - dAtA[i] = 0x8 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.DmfileScannedPacks)) + if m.TotalVectorIdxReadOthersTimeMs != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalVectorIdxReadOthersTimeMs)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xe0 } - if m.DmfileSkippedPacks != nil { - dAtA[i] = 0x10 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.DmfileSkippedPacks)) + if m.TotalVectorIdxReadVecTimeMs != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalVectorIdxReadVecTimeMs)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xd8 } - if m.DmfileDataScannedRows != nil { - dAtA[i] = 0x18 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.DmfileDataScannedRows)) + if m.TotalVectorIdxSearchDiscardedNodes != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalVectorIdxSearchDiscardedNodes)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xd0 } - if m.DmfileDataSkippedRows != nil { - dAtA[i] = 0x20 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.DmfileDataSkippedRows)) + if m.TotalVectorIdxSearchVisitedNodes != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalVectorIdxSearchVisitedNodes)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xc8 } - if m.TotalDmfileRsLoadMs != nil { - dAtA[i] = 0x28 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalDmfileRsLoadMs)) + if m.TotalVectorIdxSearchTimeMs != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalVectorIdxSearchTimeMs)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xc0 } - if m.TotalDmfileReadMs != nil { - dAtA[i] = 0x30 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalDmfileReadMs)) + if m.TotalVectorIdxLoadTimeMs != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalVectorIdxLoadTimeMs)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xb8 } - if m.TotalBuildSnapshotMs != nil { - dAtA[i] = 0x38 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalBuildSnapshotMs)) + if m.TotalVectorIdxLoadFromCache != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalVectorIdxLoadFromCache)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xb0 } - if m.LocalRegions != nil { - dAtA[i] = 0x40 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.LocalRegions)) + if m.TotalVectorIdxLoadFromDisk != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalVectorIdxLoadFromDisk)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa8 } - if m.RemoteRegions != nil { - dAtA[i] = 0x48 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.RemoteRegions)) + if m.TotalVectorIdxLoadFromS3 != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalVectorIdxLoadFromS3)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa0 } - if m.UserReadBytes != nil { - dAtA[i] = 0x50 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.UserReadBytes)) + if m.DmfileLmFilterSkippedRows != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.DmfileLmFilterSkippedRows)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x90 } - if m.TotalLearnerReadMs != nil { - dAtA[i] = 0x58 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalLearnerReadMs)) + if m.DmfileLmFilterScannedRows != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.DmfileLmFilterScannedRows)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x88 } - if m.DisaggReadCacheHitBytes != nil { - dAtA[i] = 0x60 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.DisaggReadCacheHitBytes)) + if m.DmfileMvccSkippedRows != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.DmfileMvccSkippedRows)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x80 } - if m.DisaggReadCacheMissBytes != nil { - dAtA[i] = 0x68 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.DisaggReadCacheMissBytes)) + if m.DmfileMvccScannedRows != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.DmfileMvccScannedRows)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xf8 } - if m.TotalDmfileRsCheckMs != nil { - dAtA[i] = 0x70 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalDmfileRsCheckMs)) + if len(m.RegionsOfInstance) > 0 { + for iNdEx := len(m.RegionsOfInstance) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RegionsOfInstance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xf2 + } } - if m.StaleReadRegions != nil { - dAtA[i] = 0x78 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.StaleReadRegions)) + if m.MaxRemoteStreamMs != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.MaxRemoteStreamMs)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe8 } - if m.Segments != nil { - dAtA[i] = 0x80 - i++ + if m.MinRemoteStreamMs != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.MinRemoteStreamMs)) + i-- dAtA[i] = 0x1 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.Segments)) + i-- + dAtA[i] = 0xe0 } - if m.ReadTasks != nil { - dAtA[i] = 0x88 - i++ + if m.MaxLocalStreamMs != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.MaxLocalStreamMs)) + i-- dAtA[i] = 0x1 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.ReadTasks)) + i-- + dAtA[i] = 0xd8 } - if m.DeltaRows != nil { - dAtA[i] = 0x90 - i++ + if m.MinLocalStreamMs != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.MinLocalStreamMs)) + i-- dAtA[i] = 0x1 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.DeltaRows)) + i-- + dAtA[i] = 0xd0 } - if m.DeltaBytes != nil { - dAtA[i] = 0x98 - i++ + if m.TotalBuildBitmapMs != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalBuildBitmapMs)) + i-- dAtA[i] = 0x1 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.DeltaBytes)) + i-- + dAtA[i] = 0xc8 } - if m.MvccInputRows != nil { - dAtA[i] = 0xa0 - i++ + if m.TotalBuildInputstreamMs != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalBuildInputstreamMs)) + i-- dAtA[i] = 0x1 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.MvccInputRows)) + i-- + dAtA[i] = 0xc0 } - if m.MvccInputBytes != nil { - dAtA[i] = 0xa8 - i++ + if m.LmSkipRows != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.LmSkipRows)) + i-- dAtA[i] = 0x1 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.MvccInputBytes)) + i-- + dAtA[i] = 0xb8 } if m.MvccOutputRows != nil { - dAtA[i] = 0xb0 - i++ - dAtA[i] = 0x1 - i++ i = encodeVarintExecutor(dAtA, i, uint64(*m.MvccOutputRows)) - } - if m.LmSkipRows != nil { - dAtA[i] = 0xb8 - i++ + i-- dAtA[i] = 0x1 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.LmSkipRows)) + i-- + dAtA[i] = 0xb0 } - if m.TotalBuildInputstreamMs != nil { - dAtA[i] = 0xc0 - i++ + if m.MvccInputBytes != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.MvccInputBytes)) + i-- dAtA[i] = 0x1 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalBuildInputstreamMs)) + i-- + dAtA[i] = 0xa8 } - if m.TotalBuildBitmapMs != nil { - dAtA[i] = 0xc8 - i++ + if m.MvccInputRows != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.MvccInputRows)) + i-- dAtA[i] = 0x1 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalBuildBitmapMs)) + i-- + dAtA[i] = 0xa0 } - if m.MinLocalStreamMs != nil { - dAtA[i] = 0xd0 - i++ + if m.DeltaBytes != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.DeltaBytes)) + i-- dAtA[i] = 0x1 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.MinLocalStreamMs)) + i-- + dAtA[i] = 0x98 } - if m.MaxLocalStreamMs != nil { - dAtA[i] = 0xd8 - i++ + if m.DeltaRows != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.DeltaRows)) + i-- dAtA[i] = 0x1 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.MaxLocalStreamMs)) + i-- + dAtA[i] = 0x90 } - if m.MinRemoteStreamMs != nil { - dAtA[i] = 0xe0 - i++ + if m.ReadTasks != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.ReadTasks)) + i-- dAtA[i] = 0x1 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.MinRemoteStreamMs)) + i-- + dAtA[i] = 0x88 } - if m.MaxRemoteStreamMs != nil { - dAtA[i] = 0xe8 - i++ + if m.Segments != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.Segments)) + i-- dAtA[i] = 0x1 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.MaxRemoteStreamMs)) + i-- + dAtA[i] = 0x80 } - if len(m.RegionsOfInstance) > 0 { - for _, msg := range m.RegionsOfInstance { - dAtA[i] = 0xf2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if m.StaleReadRegions != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.StaleReadRegions)) + i-- + dAtA[i] = 0x78 } - if m.DmfileMvccScannedRows != nil { - dAtA[i] = 0xf8 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.DmfileMvccScannedRows)) + if m.TotalDmfileRsCheckMs != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalDmfileRsCheckMs)) + i-- + dAtA[i] = 0x70 } - if m.DmfileMvccSkippedRows != nil { - dAtA[i] = 0x80 - i++ - dAtA[i] = 0x2 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.DmfileMvccSkippedRows)) + if m.DisaggReadCacheMissBytes != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.DisaggReadCacheMissBytes)) + i-- + dAtA[i] = 0x68 } - if m.DmfileLmFilterScannedRows != nil { - dAtA[i] = 0x88 - i++ - dAtA[i] = 0x2 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.DmfileLmFilterScannedRows)) + if m.DisaggReadCacheHitBytes != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.DisaggReadCacheHitBytes)) + i-- + dAtA[i] = 0x60 } - if m.DmfileLmFilterSkippedRows != nil { - dAtA[i] = 0x90 - i++ - dAtA[i] = 0x2 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.DmfileLmFilterSkippedRows)) + if m.TotalLearnerReadMs != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalLearnerReadMs)) + i-- + dAtA[i] = 0x58 } - if m.TotalVectorIdxLoadFromS3 != nil { - dAtA[i] = 0xa0 - i++ - dAtA[i] = 0x6 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalVectorIdxLoadFromS3)) + if m.UserReadBytes != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.UserReadBytes)) + i-- + dAtA[i] = 0x50 } - if m.TotalVectorIdxLoadFromDisk != nil { - dAtA[i] = 0xa8 - i++ - dAtA[i] = 0x6 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalVectorIdxLoadFromDisk)) + if m.RemoteRegions != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.RemoteRegions)) + i-- + dAtA[i] = 0x48 } - if m.TotalVectorIdxLoadFromCache != nil { - dAtA[i] = 0xb0 - i++ - dAtA[i] = 0x6 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalVectorIdxLoadFromCache)) + if m.LocalRegions != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.LocalRegions)) + i-- + dAtA[i] = 0x40 } - if m.TotalVectorIdxLoadTimeMs != nil { - dAtA[i] = 0xb8 - i++ - dAtA[i] = 0x6 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalVectorIdxLoadTimeMs)) + if m.TotalBuildSnapshotMs != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalBuildSnapshotMs)) + i-- + dAtA[i] = 0x38 } - if m.TotalVectorIdxSearchTimeMs != nil { - dAtA[i] = 0xc0 - i++ - dAtA[i] = 0x6 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalVectorIdxSearchTimeMs)) + if m.TotalDmfileReadMs != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalDmfileReadMs)) + i-- + dAtA[i] = 0x30 } - if m.TotalVectorIdxSearchVisitedNodes != nil { - dAtA[i] = 0xc8 - i++ - dAtA[i] = 0x6 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalVectorIdxSearchVisitedNodes)) + if m.TotalDmfileRsLoadMs != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalDmfileRsLoadMs)) + i-- + dAtA[i] = 0x28 } - if m.TotalVectorIdxSearchDiscardedNodes != nil { - dAtA[i] = 0xd0 - i++ - dAtA[i] = 0x6 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalVectorIdxSearchDiscardedNodes)) + if m.DmfileDataSkippedRows != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.DmfileDataSkippedRows)) + i-- + dAtA[i] = 0x20 } - if m.TotalVectorIdxReadVecTimeMs != nil { - dAtA[i] = 0xd8 - i++ - dAtA[i] = 0x6 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalVectorIdxReadVecTimeMs)) + if m.DmfileDataScannedRows != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.DmfileDataScannedRows)) + i-- + dAtA[i] = 0x18 } - if m.TotalVectorIdxReadOthersTimeMs != nil { - dAtA[i] = 0xe0 - i++ - dAtA[i] = 0x6 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.TotalVectorIdxReadOthersTimeMs)) + if m.DmfileSkippedPacks != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.DmfileSkippedPacks)) + i-- + dAtA[i] = 0x10 } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + if m.DmfileScannedPacks != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.DmfileScannedPacks)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *TiFlashWaitSummary) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4403,35 +5729,37 @@ func (m *TiFlashWaitSummary) Marshal() (dAtA []byte, err error) { } func (m *TiFlashWaitSummary) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TiFlashWaitSummary) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.MinTSOWaitNs != nil { - dAtA[i] = 0x8 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.MinTSOWaitNs)) + if m.PipelineBreakerWaitNs != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.PipelineBreakerWaitNs)) + i-- + dAtA[i] = 0x18 } if m.PipelineQueueWaitNs != nil { - dAtA[i] = 0x10 - i++ i = encodeVarintExecutor(dAtA, i, uint64(*m.PipelineQueueWaitNs)) + i-- + dAtA[i] = 0x10 } - if m.PipelineBreakerWaitNs != nil { - dAtA[i] = 0x18 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.PipelineBreakerWaitNs)) - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + if m.MinTSOWaitNs != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.MinTSOWaitNs)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *Sort) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4439,52 +5767,58 @@ func (m *Sort) Marshal() (dAtA []byte, err error) { } func (m *Sort) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Sort) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ByItems) > 0 { - for _, msg := range m.ByItems { - dAtA[i] = 0xa - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Child != nil { + { + size, err := m.Child.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x1a } if m.IsPartialSort != nil { - dAtA[i] = 0x10 - i++ + i-- if *m.IsPartialSort { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x10 } - if m.Child != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Child.Size())) - n28, err := m.Child.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.ByItems) > 0 { + for iNdEx := len(m.ByItems) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ByItems[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - i += n28 } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + return len(dAtA) - i, nil } func (m *WindowFrameBound) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4492,63 +5826,69 @@ func (m *WindowFrameBound) Marshal() (dAtA []byte, err error) { } func (m *WindowFrameBound) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WindowFrameBound) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Type)) - dAtA[i] = 0x10 - i++ - if m.Unbounded { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - if m.Offset != nil { - dAtA[i] = 0x18 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.Offset)) + if m.CmpDataType != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.CmpDataType)) + i-- + dAtA[i] = 0x30 } - if len(m.CalcFuncs) > 0 { - for _, msg := range m.CalcFuncs { - dAtA[i] = 0x22 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.FrameRange != nil { + { + size, err := m.FrameRange.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - } - if m.FrameRange != nil { + i-- dAtA[i] = 0x2a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.FrameRange.Size())) - n29, err := m.FrameRange.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if len(m.CalcFuncs) > 0 { + for iNdEx := len(m.CalcFuncs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CalcFuncs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 } - i += n29 } - if m.CmpDataType != nil { - dAtA[i] = 0x30 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.CmpDataType)) + if m.Offset != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.Offset)) + i-- + dAtA[i] = 0x18 } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + i-- + if m.Unbounded { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - return i, nil + i-- + dAtA[i] = 0x10 + i = encodeVarintExecutor(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *WindowFrame) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4556,43 +5896,49 @@ func (m *WindowFrame) Marshal() (dAtA []byte, err error) { } func (m *WindowFrame) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WindowFrame) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Type)) - if m.Start != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Start.Size())) - n30, err := m.Start.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n30 - } if m.End != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.End.Size())) - n31, err := m.End.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.End.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n31 + i-- + dAtA[i] = 0x1a } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + if m.Start != nil { + { + size, err := m.Start.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - return i, nil + i = encodeVarintExecutor(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *Window) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4600,76 +5946,88 @@ func (m *Window) Marshal() (dAtA []byte, err error) { } func (m *Window) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Window) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.FuncDesc) > 0 { - for _, msg := range m.FuncDesc { - dAtA[i] = 0xa - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Child != nil { + { + size, err := m.Child.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x2a } - if len(m.PartitionBy) > 0 { - for _, msg := range m.PartitionBy { - dAtA[i] = 0x12 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Frame != nil { + { + size, err := m.Frame.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x22 } if len(m.OrderBy) > 0 { - for _, msg := range m.OrderBy { - dAtA[i] = 0x1a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.OrderBy) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OrderBy[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x1a } } - if m.Frame != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Frame.Size())) - n32, err := m.Frame.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.PartitionBy) > 0 { + for iNdEx := len(m.PartitionBy) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PartitionBy[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - i += n32 } - if m.Child != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Child.Size())) - n33, err := m.Child.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.FuncDesc) > 0 { + for iNdEx := len(m.FuncDesc) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FuncDesc[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - i += n33 } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + return len(dAtA) - i, nil } func (m *GroupingExpr) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4677,32 +6035,36 @@ func (m *GroupingExpr) Marshal() (dAtA []byte, err error) { } func (m *GroupingExpr) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GroupingExpr) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.GroupingExpr) > 0 { - for _, msg := range m.GroupingExpr { - dAtA[i] = 0xa - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.GroupingExpr) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.GroupingExpr[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + return len(dAtA) - i, nil } func (m *GroupingSet) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4710,32 +6072,36 @@ func (m *GroupingSet) Marshal() (dAtA []byte, err error) { } func (m *GroupingSet) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GroupingSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.GroupingExprs) > 0 { - for _, msg := range m.GroupingExprs { - dAtA[i] = 0xa - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.GroupingExprs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.GroupingExprs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + return len(dAtA) - i, nil } func (m *Expand) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4743,47 +6109,53 @@ func (m *Expand) Marshal() (dAtA []byte, err error) { } func (m *Expand) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Expand) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.GroupingSets) > 0 { - for _, msg := range m.GroupingSets { - dAtA[i] = 0xa - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Version != nil { + i = encodeVarintExecutor(dAtA, i, uint64(*m.Version)) + i-- + dAtA[i] = 0x18 + } + if m.Child != nil { + { + size, err := m.Child.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - } - if m.Child != nil { + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Child.Size())) - n34, err := m.Child.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n34 - } - if m.Version != nil { - dAtA[i] = 0x18 - i++ - i = encodeVarintExecutor(dAtA, i, uint64(*m.Version)) } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + if len(m.GroupingSets) > 0 { + for iNdEx := len(m.GroupingSets) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.GroupingSets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } - return i, nil + return len(dAtA) - i, nil } func (m *ExprSlice) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4791,32 +6163,36 @@ func (m *ExprSlice) Marshal() (dAtA []byte, err error) { } func (m *ExprSlice) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExprSlice) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Exprs) > 0 { - for _, msg := range m.Exprs { - dAtA[i] = 0xa - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Exprs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Exprs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + return len(dAtA) - i, nil } func (m *Expand2) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4824,63 +6200,68 @@ func (m *Expand2) Marshal() (dAtA []byte, err error) { } func (m *Expand2) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Expand2) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ProjExprs) > 0 { - for _, msg := range m.ProjExprs { - dAtA[i] = 0xa - i++ - i = encodeVarintExecutor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Child != nil { + { + size, err := m.Child.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x1a } if len(m.GeneratedOutputNames) > 0 { - for _, s := range m.GeneratedOutputNames { + for iNdEx := len(m.GeneratedOutputNames) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.GeneratedOutputNames[iNdEx]) + copy(dAtA[i:], m.GeneratedOutputNames[iNdEx]) + i = encodeVarintExecutor(dAtA, i, uint64(len(m.GeneratedOutputNames[iNdEx]))) + i-- dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) } } - if m.Child != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintExecutor(dAtA, i, uint64(m.Child.Size())) - n35, err := m.Child.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.ProjExprs) > 0 { + for iNdEx := len(m.ProjExprs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ProjExprs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExecutor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - i += n35 } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + return len(dAtA) - i, nil } func encodeVarintExecutor(dAtA []byte, offset int, v uint64) int { + offset -= sovExecutor(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *Executor) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovExecutor(uint64(m.Tp)) @@ -4954,13 +6335,13 @@ func (m *Executor) Size() (n int) { l = m.Expand2.Size() n += 2 + l + sovExecutor(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ExchangeSender) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovExecutor(uint64(m.Tp)) @@ -4999,13 +6380,13 @@ func (m *ExchangeSender) Size() (n int) { n += 1 + l + sovExecutor(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *EncodedBytesSlice) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.EncodedTasks) > 0 { @@ -5014,13 +6395,13 @@ func (m *EncodedBytesSlice) Size() (n int) { n += 1 + l + sovExecutor(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ExchangeReceiver) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.EncodedTaskMeta) > 0 { @@ -5044,13 +6425,13 @@ func (m *ExchangeReceiver) Size() (n int) { n += 1 + l + sovExecutor(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ANNQueryInfo) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovExecutor(uint64(m.QueryType)) @@ -5066,13 +6447,13 @@ func (m *ANNQueryInfo) Size() (n int) { n += 1 + sovExecutor(uint64(m.IndexId)) n += 9 n += 2 + sovExecutor(uint64(m.HnswEfSearch)) - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TableScan) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovExecutor(uint64(m.TableId)) @@ -5123,13 +6504,13 @@ func (m *TableScan) Size() (n int) { l = m.AnnQuery.Size() n += 1 + l + sovExecutor(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PartitionTableScan) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovExecutor(uint64(m.TableId)) @@ -5175,13 +6556,13 @@ func (m *PartitionTableScan) Size() (n int) { l = m.AnnQuery.Size() n += 1 + l + sovExecutor(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Join) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovExecutor(uint64(m.JoinType)) @@ -5250,13 +6631,13 @@ func (m *Join) Size() (n int) { n += 1 + l + sovExecutor(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RuntimeFilter) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovExecutor(uint64(m.Id)) @@ -5278,13 +6659,13 @@ func (m *RuntimeFilter) Size() (n int) { n += 1 + l + sovExecutor(uint64(l)) n += 1 + sovExecutor(uint64(m.RfType)) n += 1 + sovExecutor(uint64(m.RfMode)) - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *IndexScan) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovExecutor(uint64(m.TableId)) @@ -5304,13 +6685,13 @@ func (m *IndexScan) Size() (n int) { n += 1 + sovExecutor(uint64(e)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Selection) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Conditions) > 0 { @@ -5329,13 +6710,13 @@ func (m *Selection) Size() (n int) { l = m.Child.Size() n += 1 + l + sovExecutor(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Projection) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Exprs) > 0 { @@ -5354,13 +6735,13 @@ func (m *Projection) Size() (n int) { l = m.Child.Size() n += 1 + l + sovExecutor(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Aggregation) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.GroupBy) > 0 { @@ -5395,13 +6776,13 @@ func (m *Aggregation) Size() (n int) { if m.PreAggMode != nil { n += 1 + sovExecutor(uint64(*m.PreAggMode)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TopN) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.OrderBy) > 0 { @@ -5421,13 +6802,13 @@ func (m *TopN) Size() (n int) { n += 1 + l + sovExecutor(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Limit) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovExecutor(uint64(m.Limit)) @@ -5441,24 +6822,24 @@ func (m *Limit) Size() (n int) { n += 1 + l + sovExecutor(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Kill) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovExecutor(uint64(m.ConnID)) n += 2 - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ExecutorExecutionSummary) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.TimeProcessedNs != nil { @@ -5488,13 +6869,13 @@ func (m *ExecutorExecutionSummary) Size() (n int) { l = m.TiflashWaitSummary.Size() n += 1 + l + sovExecutor(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ExecutorExecutionSummary_TiflashScanContext) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.TiflashScanContext != nil { @@ -5504,6 +6885,9 @@ func (m *ExecutorExecutionSummary_TiflashScanContext) Size() (n int) { return n } func (m *TiFlashExecutionInfo) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.ExecutionSummaries) > 0 { @@ -5512,13 +6896,13 @@ func (m *TiFlashExecutionInfo) Size() (n int) { n += 1 + l + sovExecutor(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TiFlashRegionNumOfInstance) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.InstanceId != nil { @@ -5528,13 +6912,13 @@ func (m *TiFlashRegionNumOfInstance) Size() (n int) { if m.RegionNum != nil { n += 1 + sovExecutor(uint64(*m.RegionNum)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TiFlashScanContext) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.DmfileScannedPacks != nil { @@ -5669,13 +7053,13 @@ func (m *TiFlashScanContext) Size() (n int) { if m.TotalVectorIdxReadOthersTimeMs != nil { n += 2 + sovExecutor(uint64(*m.TotalVectorIdxReadOthersTimeMs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TiFlashWaitSummary) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.MinTSOWaitNs != nil { @@ -5687,13 +7071,13 @@ func (m *TiFlashWaitSummary) Size() (n int) { if m.PipelineBreakerWaitNs != nil { n += 1 + sovExecutor(uint64(*m.PipelineBreakerWaitNs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Sort) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.ByItems) > 0 { @@ -5709,13 +7093,13 @@ func (m *Sort) Size() (n int) { l = m.Child.Size() n += 1 + l + sovExecutor(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WindowFrameBound) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovExecutor(uint64(m.Type)) @@ -5736,13 +7120,13 @@ func (m *WindowFrameBound) Size() (n int) { if m.CmpDataType != nil { n += 1 + sovExecutor(uint64(*m.CmpDataType)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WindowFrame) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovExecutor(uint64(m.Type)) @@ -5754,13 +7138,13 @@ func (m *WindowFrame) Size() (n int) { l = m.End.Size() n += 1 + l + sovExecutor(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Window) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.FuncDesc) > 0 { @@ -5789,13 +7173,13 @@ func (m *Window) Size() (n int) { l = m.Child.Size() n += 1 + l + sovExecutor(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GroupingExpr) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.GroupingExpr) > 0 { @@ -5804,13 +7188,13 @@ func (m *GroupingExpr) Size() (n int) { n += 1 + l + sovExecutor(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GroupingSet) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.GroupingExprs) > 0 { @@ -5819,13 +7203,13 @@ func (m *GroupingSet) Size() (n int) { n += 1 + l + sovExecutor(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Expand) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.GroupingSets) > 0 { @@ -5841,13 +7225,13 @@ func (m *Expand) Size() (n int) { if m.Version != nil { n += 1 + sovExecutor(uint64(*m.Version)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ExprSlice) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Exprs) > 0 { @@ -5856,13 +7240,13 @@ func (m *ExprSlice) Size() (n int) { n += 1 + l + sovExecutor(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Expand2) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.ProjExprs) > 0 { @@ -5881,21 +7265,11 @@ func (m *Expand2) Size() (n int) { l = m.Child.Size() n += 1 + l + sovExecutor(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovExecutor(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozExecutor(x uint64) (n int) { return sovExecutor(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -5915,7 +7289,7 @@ func (m *Executor) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5943,7 +7317,7 @@ func (m *Executor) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Tp |= (ExecType(b) & 0x7F) << shift + m.Tp |= ExecType(b&0x7F) << shift if b < 0x80 { break } @@ -5962,7 +7336,7 @@ func (m *Executor) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5971,6 +7345,9 @@ func (m *Executor) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5995,7 +7372,7 @@ func (m *Executor) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6004,6 +7381,9 @@ func (m *Executor) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6028,7 +7408,7 @@ func (m *Executor) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6037,6 +7417,9 @@ func (m *Executor) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6061,7 +7444,7 @@ func (m *Executor) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6070,6 +7453,9 @@ func (m *Executor) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6094,7 +7480,7 @@ func (m *Executor) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6103,6 +7489,9 @@ func (m *Executor) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6127,7 +7516,7 @@ func (m *Executor) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6136,6 +7525,9 @@ func (m *Executor) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6160,7 +7552,7 @@ func (m *Executor) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6169,6 +7561,9 @@ func (m *Executor) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6193,7 +7588,7 @@ func (m *Executor) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6202,6 +7597,9 @@ func (m *Executor) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6226,7 +7624,7 @@ func (m *Executor) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6236,6 +7634,9 @@ func (m *Executor) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6256,7 +7657,7 @@ func (m *Executor) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6265,6 +7666,9 @@ func (m *Executor) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6289,7 +7693,7 @@ func (m *Executor) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6298,6 +7702,9 @@ func (m *Executor) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6322,7 +7729,7 @@ func (m *Executor) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6331,6 +7738,9 @@ func (m *Executor) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6355,7 +7765,7 @@ func (m *Executor) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6364,6 +7774,9 @@ func (m *Executor) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6388,7 +7801,7 @@ func (m *Executor) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6397,6 +7810,9 @@ func (m *Executor) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6421,7 +7837,7 @@ func (m *Executor) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6430,6 +7846,9 @@ func (m *Executor) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6454,7 +7873,7 @@ func (m *Executor) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FineGrainedShuffleStreamCount |= (uint64(b) & 0x7F) << shift + m.FineGrainedShuffleStreamCount |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6473,7 +7892,7 @@ func (m *Executor) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FineGrainedShuffleBatchSize |= (uint64(b) & 0x7F) << shift + m.FineGrainedShuffleBatchSize |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6492,7 +7911,7 @@ func (m *Executor) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6501,6 +7920,9 @@ func (m *Executor) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6525,7 +7947,7 @@ func (m *Executor) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6534,6 +7956,9 @@ func (m *Executor) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6550,13 +7975,12 @@ func (m *Executor) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6581,7 +8005,7 @@ func (m *ExchangeSender) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6609,7 +8033,7 @@ func (m *ExchangeSender) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Tp |= (ExchangeType(b) & 0x7F) << shift + m.Tp |= ExchangeType(b&0x7F) << shift if b < 0x80 { break } @@ -6628,7 +8052,7 @@ func (m *ExchangeSender) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6637,6 +8061,9 @@ func (m *ExchangeSender) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6657,7 +8084,7 @@ func (m *ExchangeSender) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6666,6 +8093,9 @@ func (m *ExchangeSender) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6688,7 +8118,7 @@ func (m *ExchangeSender) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6697,6 +8127,9 @@ func (m *ExchangeSender) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6721,7 +8154,7 @@ func (m *ExchangeSender) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6730,6 +8163,9 @@ func (m *ExchangeSender) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6752,7 +8188,7 @@ func (m *ExchangeSender) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6761,6 +8197,9 @@ func (m *ExchangeSender) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6783,7 +8222,7 @@ func (m *ExchangeSender) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Compression |= (CompressionMode(b) & 0x7F) << shift + m.Compression |= CompressionMode(b&0x7F) << shift if b < 0x80 { break } @@ -6802,7 +8241,7 @@ func (m *ExchangeSender) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6811,6 +8250,9 @@ func (m *ExchangeSender) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6825,13 +8267,12 @@ func (m *ExchangeSender) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6856,7 +8297,7 @@ func (m *EncodedBytesSlice) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6884,7 +8325,7 @@ func (m *EncodedBytesSlice) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6893,6 +8334,9 @@ func (m *EncodedBytesSlice) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6905,13 +8349,12 @@ func (m *EncodedBytesSlice) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6936,7 +8379,7 @@ func (m *ExchangeReceiver) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6964,7 +8407,7 @@ func (m *ExchangeReceiver) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6973,6 +8416,9 @@ func (m *ExchangeReceiver) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6993,7 +8439,7 @@ func (m *ExchangeReceiver) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7002,6 +8448,9 @@ func (m *ExchangeReceiver) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7024,7 +8473,7 @@ func (m *ExchangeReceiver) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (ExchangeType(b) & 0x7F) << shift + v |= ExchangeType(b&0x7F) << shift if b < 0x80 { break } @@ -7044,7 +8493,7 @@ func (m *ExchangeReceiver) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7053,6 +8502,9 @@ func (m *ExchangeReceiver) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7065,13 +8517,12 @@ func (m *ExchangeReceiver) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7096,7 +8547,7 @@ func (m *ANNQueryInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7124,7 +8575,7 @@ func (m *ANNQueryInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.QueryType |= (ANNQueryType(b) & 0x7F) << shift + m.QueryType |= ANNQueryType(b&0x7F) << shift if b < 0x80 { break } @@ -7143,7 +8594,7 @@ func (m *ANNQueryInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DistanceMetric |= (VectorDistanceMetric(b) & 0x7F) << shift + m.DistanceMetric |= VectorDistanceMetric(b&0x7F) << shift if b < 0x80 { break } @@ -7162,7 +8613,7 @@ func (m *ANNQueryInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TopK |= (uint32(b) & 0x7F) << shift + m.TopK |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -7181,7 +8632,7 @@ func (m *ANNQueryInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7191,6 +8642,9 @@ func (m *ANNQueryInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7210,7 +8664,7 @@ func (m *ANNQueryInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ColumnId |= (int64(b) & 0x7F) << shift + m.ColumnId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -7229,7 +8683,7 @@ func (m *ANNQueryInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7238,6 +8692,9 @@ func (m *ANNQueryInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7260,7 +8717,7 @@ func (m *ANNQueryInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.IndexId |= (int64(b) & 0x7F) << shift + m.IndexId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -7290,7 +8747,7 @@ func (m *ANNQueryInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.HnswEfSearch |= (uint32(b) & 0x7F) << shift + m.HnswEfSearch |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -7301,13 +8758,12 @@ func (m *ANNQueryInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7332,7 +8788,7 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7360,7 +8816,7 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TableId |= (int64(b) & 0x7F) << shift + m.TableId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -7379,7 +8835,7 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7388,6 +8844,9 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7410,7 +8869,7 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7428,7 +8887,7 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -7445,7 +8904,7 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7454,9 +8913,23 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.PrimaryColumnIds) == 0 { + m.PrimaryColumnIds = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 for shift := uint(0); ; shift += 7 { @@ -7468,7 +8941,7 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -7492,7 +8965,7 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NextReadEngine |= (EngineType(b) & 0x7F) << shift + m.NextReadEngine |= EngineType(b&0x7F) << shift if b < 0x80 { break } @@ -7511,7 +8984,7 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7520,6 +8993,9 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7540,7 +9016,7 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -7557,7 +9033,7 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7566,9 +9042,23 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.PrimaryPrefixColumnIds) == 0 { + m.PrimaryPrefixColumnIds = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 for shift := uint(0); ; shift += 7 { @@ -7580,7 +9070,7 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -7604,7 +9094,7 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7625,7 +9115,7 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7646,7 +9136,7 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7655,6 +9145,9 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7677,7 +9170,7 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7686,6 +9179,9 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7708,7 +9204,7 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxWaitTimeMs |= (int32(b) & 0x7F) << shift + m.MaxWaitTimeMs |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -7727,7 +9223,7 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7736,6 +9232,9 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7752,13 +9251,12 @@ func (m *TableScan) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7783,7 +9281,7 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7811,7 +9309,7 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TableId |= (int64(b) & 0x7F) << shift + m.TableId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -7830,7 +9328,7 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7839,6 +9337,9 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7861,7 +9362,7 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7879,7 +9380,7 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -7896,7 +9397,7 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7905,9 +9406,23 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.PrimaryColumnIds) == 0 { + m.PrimaryColumnIds = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 for shift := uint(0); ; shift += 7 { @@ -7919,7 +9434,7 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -7941,7 +9456,7 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -7958,7 +9473,7 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7967,9 +9482,23 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.PrimaryPrefixColumnIds) == 0 { + m.PrimaryPrefixColumnIds = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 for shift := uint(0); ; shift += 7 { @@ -7981,7 +9510,7 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -8003,7 +9532,7 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -8020,7 +9549,7 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8029,9 +9558,23 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.PartitionIds) == 0 { + m.PartitionIds = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 for shift := uint(0); ; shift += 7 { @@ -8043,7 +9586,7 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -8067,7 +9610,7 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8088,7 +9631,7 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8097,6 +9640,9 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8119,7 +9665,7 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8128,6 +9674,9 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8150,7 +9699,7 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxWaitTimeMs |= (int32(b) & 0x7F) << shift + m.MaxWaitTimeMs |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -8169,7 +9718,7 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8178,6 +9727,9 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8194,13 +9746,12 @@ func (m *PartitionTableScan) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8225,7 +9776,7 @@ func (m *Join) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8253,7 +9804,7 @@ func (m *Join) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.JoinType |= (JoinType(b) & 0x7F) << shift + m.JoinType |= JoinType(b&0x7F) << shift if b < 0x80 { break } @@ -8272,7 +9823,7 @@ func (m *Join) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.JoinExecType |= (JoinExecType(b) & 0x7F) << shift + m.JoinExecType |= JoinExecType(b&0x7F) << shift if b < 0x80 { break } @@ -8291,7 +9842,7 @@ func (m *Join) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8300,6 +9851,9 @@ func (m *Join) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8322,7 +9876,7 @@ func (m *Join) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.InnerIdx |= (int64(b) & 0x7F) << shift + m.InnerIdx |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -8341,7 +9895,7 @@ func (m *Join) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8350,6 +9904,9 @@ func (m *Join) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8372,7 +9929,7 @@ func (m *Join) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8381,6 +9938,9 @@ func (m *Join) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8403,7 +9963,7 @@ func (m *Join) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8412,6 +9972,9 @@ func (m *Join) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8434,7 +9997,7 @@ func (m *Join) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8443,6 +10006,9 @@ func (m *Join) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8465,7 +10031,7 @@ func (m *Join) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8474,6 +10040,9 @@ func (m *Join) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8496,7 +10065,7 @@ func (m *Join) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8505,6 +10074,9 @@ func (m *Join) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8527,7 +10099,7 @@ func (m *Join) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8536,6 +10108,9 @@ func (m *Join) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8558,7 +10133,7 @@ func (m *Join) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8567,6 +10142,9 @@ func (m *Join) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8589,7 +10167,7 @@ func (m *Join) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8610,7 +10188,7 @@ func (m *Join) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8619,6 +10197,9 @@ func (m *Join) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8633,13 +10214,12 @@ func (m *Join) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8664,7 +10244,7 @@ func (m *RuntimeFilter) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8692,7 +10272,7 @@ func (m *RuntimeFilter) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= (int32(b) & 0x7F) << shift + m.Id |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -8711,7 +10291,7 @@ func (m *RuntimeFilter) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8720,6 +10300,9 @@ func (m *RuntimeFilter) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8742,7 +10325,7 @@ func (m *RuntimeFilter) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8751,6 +10334,9 @@ func (m *RuntimeFilter) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8773,7 +10359,7 @@ func (m *RuntimeFilter) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8783,6 +10369,9 @@ func (m *RuntimeFilter) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8802,7 +10391,7 @@ func (m *RuntimeFilter) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8812,6 +10401,9 @@ func (m *RuntimeFilter) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8831,7 +10423,7 @@ func (m *RuntimeFilter) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RfType |= (RuntimeFilterType(b) & 0x7F) << shift + m.RfType |= RuntimeFilterType(b&0x7F) << shift if b < 0x80 { break } @@ -8850,7 +10442,7 @@ func (m *RuntimeFilter) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RfMode |= (RuntimeFilterMode(b) & 0x7F) << shift + m.RfMode |= RuntimeFilterMode(b&0x7F) << shift if b < 0x80 { break } @@ -8861,13 +10453,12 @@ func (m *RuntimeFilter) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8892,7 +10483,7 @@ func (m *IndexScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8920,7 +10511,7 @@ func (m *IndexScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TableId |= (int64(b) & 0x7F) << shift + m.TableId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -8939,7 +10530,7 @@ func (m *IndexScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.IndexId |= (int64(b) & 0x7F) << shift + m.IndexId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -8958,7 +10549,7 @@ func (m *IndexScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8967,6 +10558,9 @@ func (m *IndexScan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8989,7 +10583,7 @@ func (m *IndexScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9009,7 +10603,7 @@ func (m *IndexScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9028,7 +10622,7 @@ func (m *IndexScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -9045,7 +10639,7 @@ func (m *IndexScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9054,9 +10648,23 @@ func (m *IndexScan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.PrimaryColumnIds) == 0 { + m.PrimaryColumnIds = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 for shift := uint(0); ; shift += 7 { @@ -9068,7 +10676,7 @@ func (m *IndexScan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -9084,13 +10692,12 @@ func (m *IndexScan) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9115,7 +10722,7 @@ func (m *Selection) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9143,7 +10750,7 @@ func (m *Selection) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9152,6 +10759,9 @@ func (m *Selection) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9174,7 +10784,7 @@ func (m *Selection) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9183,6 +10793,9 @@ func (m *Selection) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9205,7 +10818,7 @@ func (m *Selection) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9214,6 +10827,9 @@ func (m *Selection) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9230,13 +10846,12 @@ func (m *Selection) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9261,7 +10876,7 @@ func (m *Projection) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9289,7 +10904,7 @@ func (m *Projection) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9298,6 +10913,9 @@ func (m *Projection) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9320,7 +10938,7 @@ func (m *Projection) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9329,6 +10947,9 @@ func (m *Projection) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9351,7 +10972,7 @@ func (m *Projection) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9360,6 +10981,9 @@ func (m *Projection) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9376,13 +11000,12 @@ func (m *Projection) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9407,7 +11030,7 @@ func (m *Aggregation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9435,7 +11058,7 @@ func (m *Aggregation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9444,6 +11067,9 @@ func (m *Aggregation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9466,7 +11092,7 @@ func (m *Aggregation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9475,6 +11101,9 @@ func (m *Aggregation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9497,7 +11126,7 @@ func (m *Aggregation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9517,7 +11146,7 @@ func (m *Aggregation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9526,6 +11155,9 @@ func (m *Aggregation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9548,7 +11180,7 @@ func (m *Aggregation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9557,6 +11189,9 @@ func (m *Aggregation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9579,7 +11214,7 @@ func (m *Aggregation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9588,6 +11223,9 @@ func (m *Aggregation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9612,7 +11250,7 @@ func (m *Aggregation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (TiFlashPreAggMode(b) & 0x7F) << shift + v |= TiFlashPreAggMode(b&0x7F) << shift if b < 0x80 { break } @@ -9624,13 +11262,12 @@ func (m *Aggregation) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9655,7 +11292,7 @@ func (m *TopN) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9683,7 +11320,7 @@ func (m *TopN) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9692,6 +11329,9 @@ func (m *TopN) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9714,7 +11354,7 @@ func (m *TopN) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= (uint64(b) & 0x7F) << shift + m.Limit |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9733,7 +11373,7 @@ func (m *TopN) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9742,6 +11382,9 @@ func (m *TopN) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9766,7 +11409,7 @@ func (m *TopN) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9775,6 +11418,9 @@ func (m *TopN) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9789,13 +11435,12 @@ func (m *TopN) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9820,7 +11465,7 @@ func (m *Limit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9848,7 +11493,7 @@ func (m *Limit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= (uint64(b) & 0x7F) << shift + m.Limit |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9867,7 +11512,7 @@ func (m *Limit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9876,6 +11521,9 @@ func (m *Limit) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9900,7 +11548,7 @@ func (m *Limit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9909,6 +11557,9 @@ func (m *Limit) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9923,13 +11574,12 @@ func (m *Limit) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9954,7 +11604,7 @@ func (m *Kill) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9982,7 +11632,7 @@ func (m *Kill) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ConnID |= (uint64(b) & 0x7F) << shift + m.ConnID |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10001,7 +11651,7 @@ func (m *Kill) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10013,13 +11663,12 @@ func (m *Kill) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10044,7 +11693,7 @@ func (m *ExecutorExecutionSummary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10072,7 +11721,7 @@ func (m *ExecutorExecutionSummary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10092,7 +11741,7 @@ func (m *ExecutorExecutionSummary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10112,7 +11761,7 @@ func (m *ExecutorExecutionSummary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10132,7 +11781,7 @@ func (m *ExecutorExecutionSummary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10142,6 +11791,9 @@ func (m *ExecutorExecutionSummary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10162,7 +11814,7 @@ func (m *ExecutorExecutionSummary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10182,7 +11834,7 @@ func (m *ExecutorExecutionSummary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10191,6 +11843,9 @@ func (m *ExecutorExecutionSummary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10214,7 +11869,7 @@ func (m *ExecutorExecutionSummary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10223,6 +11878,9 @@ func (m *ExecutorExecutionSummary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10245,7 +11903,7 @@ func (m *ExecutorExecutionSummary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10254,6 +11912,9 @@ func (m *ExecutorExecutionSummary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10270,13 +11931,12 @@ func (m *ExecutorExecutionSummary) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10301,7 +11961,7 @@ func (m *TiFlashExecutionInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10329,7 +11989,7 @@ func (m *TiFlashExecutionInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10338,6 +11998,9 @@ func (m *TiFlashExecutionInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10352,13 +12015,12 @@ func (m *TiFlashExecutionInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10383,7 +12045,7 @@ func (m *TiFlashRegionNumOfInstance) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10411,7 +12073,7 @@ func (m *TiFlashRegionNumOfInstance) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10421,6 +12083,9 @@ func (m *TiFlashRegionNumOfInstance) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10441,7 +12106,7 @@ func (m *TiFlashRegionNumOfInstance) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10453,13 +12118,12 @@ func (m *TiFlashRegionNumOfInstance) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10484,7 +12148,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10512,7 +12176,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10532,7 +12196,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10552,7 +12216,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10572,7 +12236,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10592,7 +12256,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10612,7 +12276,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10632,7 +12296,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10652,7 +12316,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10672,7 +12336,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10692,7 +12356,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10712,7 +12376,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10732,7 +12396,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10752,7 +12416,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10772,7 +12436,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10792,7 +12456,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10812,7 +12476,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10832,7 +12496,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10852,7 +12516,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10872,7 +12536,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10892,7 +12556,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10912,7 +12576,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10932,7 +12596,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10952,7 +12616,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10972,7 +12636,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10992,7 +12656,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11012,7 +12676,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11032,7 +12696,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11052,7 +12716,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11072,7 +12736,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11092,7 +12756,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11101,6 +12765,9 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11123,7 +12790,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11143,7 +12810,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11163,7 +12830,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11183,7 +12850,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11203,7 +12870,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11223,7 +12890,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11243,7 +12910,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11263,7 +12930,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11283,7 +12950,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11303,7 +12970,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11323,7 +12990,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11343,7 +13010,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11363,7 +13030,7 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11375,13 +13042,12 @@ func (m *TiFlashScanContext) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11406,7 +13072,7 @@ func (m *TiFlashWaitSummary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11434,7 +13100,7 @@ func (m *TiFlashWaitSummary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11454,7 +13120,7 @@ func (m *TiFlashWaitSummary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11474,7 +13140,7 @@ func (m *TiFlashWaitSummary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11486,13 +13152,12 @@ func (m *TiFlashWaitSummary) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11517,7 +13182,7 @@ func (m *Sort) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11545,7 +13210,7 @@ func (m *Sort) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11554,6 +13219,9 @@ func (m *Sort) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11576,7 +13244,7 @@ func (m *Sort) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11597,7 +13265,7 @@ func (m *Sort) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11606,6 +13274,9 @@ func (m *Sort) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11622,13 +13293,12 @@ func (m *Sort) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11653,7 +13323,7 @@ func (m *WindowFrameBound) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11681,7 +13351,7 @@ func (m *WindowFrameBound) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= (WindowBoundType(b) & 0x7F) << shift + m.Type |= WindowBoundType(b&0x7F) << shift if b < 0x80 { break } @@ -11700,7 +13370,7 @@ func (m *WindowFrameBound) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11720,7 +13390,7 @@ func (m *WindowFrameBound) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11740,7 +13410,7 @@ func (m *WindowFrameBound) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11749,6 +13419,9 @@ func (m *WindowFrameBound) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11771,7 +13444,7 @@ func (m *WindowFrameBound) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11780,6 +13453,9 @@ func (m *WindowFrameBound) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11804,7 +13480,7 @@ func (m *WindowFrameBound) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (RangeCmpDataType(b) & 0x7F) << shift + v |= RangeCmpDataType(b&0x7F) << shift if b < 0x80 { break } @@ -11816,13 +13492,12 @@ func (m *WindowFrameBound) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11847,7 +13522,7 @@ func (m *WindowFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11875,7 +13550,7 @@ func (m *WindowFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= (WindowFrameType(b) & 0x7F) << shift + m.Type |= WindowFrameType(b&0x7F) << shift if b < 0x80 { break } @@ -11894,7 +13569,7 @@ func (m *WindowFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11903,6 +13578,9 @@ func (m *WindowFrame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11927,7 +13605,7 @@ func (m *WindowFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11936,6 +13614,9 @@ func (m *WindowFrame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11952,13 +13633,12 @@ func (m *WindowFrame) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11983,7 +13663,7 @@ func (m *Window) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12011,7 +13691,7 @@ func (m *Window) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12020,6 +13700,9 @@ func (m *Window) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12042,7 +13725,7 @@ func (m *Window) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12051,6 +13734,9 @@ func (m *Window) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12073,7 +13759,7 @@ func (m *Window) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12082,6 +13768,9 @@ func (m *Window) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12104,7 +13793,7 @@ func (m *Window) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12113,6 +13802,9 @@ func (m *Window) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12137,7 +13829,7 @@ func (m *Window) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12146,6 +13838,9 @@ func (m *Window) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12162,13 +13857,12 @@ func (m *Window) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12193,7 +13887,7 @@ func (m *GroupingExpr) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12221,7 +13915,7 @@ func (m *GroupingExpr) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12230,6 +13924,9 @@ func (m *GroupingExpr) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12244,13 +13941,12 @@ func (m *GroupingExpr) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12275,7 +13971,7 @@ func (m *GroupingSet) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12303,7 +13999,7 @@ func (m *GroupingSet) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12312,6 +14008,9 @@ func (m *GroupingSet) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12326,13 +14025,12 @@ func (m *GroupingSet) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12357,7 +14055,7 @@ func (m *Expand) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12385,7 +14083,7 @@ func (m *Expand) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12394,6 +14092,9 @@ func (m *Expand) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12416,7 +14117,7 @@ func (m *Expand) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12425,6 +14126,9 @@ func (m *Expand) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12449,7 +14153,7 @@ func (m *Expand) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12461,13 +14165,12 @@ func (m *Expand) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12492,7 +14195,7 @@ func (m *ExprSlice) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12520,7 +14223,7 @@ func (m *ExprSlice) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12529,6 +14232,9 @@ func (m *ExprSlice) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12543,13 +14249,12 @@ func (m *ExprSlice) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12574,7 +14279,7 @@ func (m *Expand2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12602,7 +14307,7 @@ func (m *Expand2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12611,6 +14316,9 @@ func (m *Expand2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12633,7 +14341,7 @@ func (m *Expand2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12643,6 +14351,9 @@ func (m *Expand2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12662,7 +14373,7 @@ func (m *Expand2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12671,6 +14382,9 @@ func (m *Expand2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExecutor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExecutor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12687,13 +14401,12 @@ func (m *Expand2) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExecutor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12706,6 +14419,7 @@ func (m *Expand2) Unmarshal(dAtA []byte) error { func skipExecutor(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -12737,10 +14451,8 @@ func skipExecutor(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -12757,331 +14469,34 @@ func skipExecutor(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthExecutor } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowExecutor - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipExecutor(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupExecutor + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthExecutor + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthExecutor = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowExecutor = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthExecutor = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowExecutor = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupExecutor = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("executor.proto", fileDescriptorExecutor) } - -var fileDescriptorExecutor = []byte{ - // 4340 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0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, 0x14, 0x69, 0x67, 0xa2, 0x38, 0x0c, 0xdc, 0x74, 0x6a, 0xf2, 0x78, 0x72, 0x00, - 0x37, 0x93, 0x30, 0x75, 0x9c, 0x98, 0xe6, 0x26, 0xaa, 0x86, 0xcd, 0xdf, 0xd2, 0xa3, 0x52, 0xd3, - 0xb5, 0x7d, 0x11, 0x53, 0x31, 0xf0, 0x98, 0x43, 0xcd, 0xd5, 0x94, 0xb6, 0x13, 0xd3, 0x74, 0x16, - 0x3b, 0x5f, 0xc0, 0xca, 0x0c, 0x92, 0xfc, 0x0c, 0x96, 0xf2, 0xcb, 0x20, 0xda, 0x05, 0x5c, 0x82, - 0x66, 0x6e, 0x09, 0x44, 0xe7, 0x0f, 0x05, 0x30, 0x2e, 0x87, 0x97, 0xf9, 0x0b, 0x58, 0x98, 0xbf, - 0x80, 0x9f, 0x40, 0x23, 0x3f, 0x79, 0xc5, 0xf9, 0x93, 0x07, 0xc3, 0xc9, 0xcc, 0x75, 0xd0, 0x91, - 0x16, 0xaf, 0x72, 0x24, 0x74, 0xa1, 0x5d, 0xb8, 0x1f, 0x44, 0x6c, 0xc4, 0xb8, 0xed, 0xe1, 0xf4, - 0x84, 0x91, 0x1b, 0x38, 0x09, 0x8d, 0x72, 0xfd, 0x29, 0x61, 0x7f, 0xee, 0xa4, 0xb0, 0x9d, 0x98, - 0x1e, 0x6b, 0x50, 0x36, 0x2d, 0xbf, 0x5b, 0x84, 0xe6, 0x56, 0xbf, 0xff, 0x9b, 0x84, 0x46, 0x17, - 0x3d, 0x3e, 0x0c, 0xc8, 0xe7, 0x00, 0xaf, 0xe4, 0x03, 0x76, 0x76, 0xda, 0x97, 0x53, 0x5c, 0xce, - 0x97, 0xeb, 0xaf, 0x52, 0x01, 0xe9, 0xc1, 0xb2, 0xcb, 0x44, 0x6c, 0x73, 0x87, 0xca, 0xd6, 0x23, - 0xe6, 0xe0, 0x49, 0xd5, 0xda, 0x5c, 0x57, 0xec, 0x17, 0xd4, 0x89, 0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 0x54, 0x98, 0x59, - 0xf1, 0x9c, 0x96, 0x3c, 0x81, 0x56, 0x14, 0xf2, 0xfc, 0xde, 0x53, 0x7e, 0xa5, 0xef, 0xab, 0x66, - 0xc8, 0x75, 0x0c, 0x0a, 0x79, 0x6e, 0xf3, 0x65, 0x37, 0xc3, 0xc5, 0x6b, 0x6e, 0x86, 0x9d, 0xef, - 0x0b, 0xf9, 0x5a, 0x04, 0xd9, 0x80, 0xb2, 0xf4, 0xc3, 0x79, 0x3d, 0x52, 0x0a, 0xd2, 0x85, 0xba, - 0xec, 0x8c, 0x42, 0xcd, 0xed, 0x47, 0x2d, 0x52, 0x7f, 0xde, 0xb6, 0x0b, 0xff, 0x54, 0x84, 0x46, - 0xae, 0xa4, 0x44, 0xde, 0x83, 0xda, 0x28, 0x0a, 0x92, 0xd0, 0x3a, 0xbd, 0x98, 0xd3, 0x8d, 0x2a, - 0xea, 0xb6, 0x2f, 0x24, 0xcc, 0x1e, 0x8d, 0xac, 0x61, 0xc2, 0x9d, 0x39, 0xfb, 0xac, 0x6a, 0x8f, - 0x46, 0xfb, 0x09, 0x77, 0xc8, 0x06, 0xd4, 0xd4, 0x15, 0x91, 0xba, 0x53, 0xd9, 0x47, 0x26, 0x25, - 0x1f, 0x43, 0x53, 0x8e, 0x28, 0x6b, 0xb3, 0x34, 0x6f, 0x50, 0x10, 0x85, 0xfc, 0x1b, 0xdd, 0xb2, - 0x26, 0x64, 0xad, 0x97, 0xaf, 0x22, 0x6c, 0xe9, 0x3e, 0x64, 0xf3, 0x50, 0xb9, 0xee, 0x92, 0xfe, - 0x25, 0x34, 0xc3, 0x88, 0xa2, 0xd9, 0xd9, 0x9d, 0x73, 0xc2, 0xf6, 0x3d, 0x5b, 0x9c, 0x1d, 0x47, - 0x74, 0x6b, 0x34, 0x92, 0x7b, 0x45, 0x9e, 0x1e, 0xe9, 0xff, 0xce, 0xdf, 0x14, 0xa0, 0x74, 0x12, - 0x84, 0x7d, 0xf2, 0x01, 0xd4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cd, 0xf5, 0x87, 0x4c, 0x17, 0x81, 0x39, 0x75, 0xad, 0xd0, 0x76, 0xce, 0xb5, 0xc7, 0x6d, 0x17, - 0xdb, 0x05, 0x93, 0x28, 0xfd, 0x40, 0xa9, 0x8f, 0xa5, 0x36, 0xcf, 0x3a, 0x67, 0x61, 0x98, 0xb1, - 0x8a, 0x33, 0x2c, 0xa5, 0x56, 0xac, 0xcf, 0xa1, 0xad, 0x59, 0xae, 0x1d, 0xdb, 0x59, 0x83, 0xe8, - 0xb5, 0xca, 0x19, 0x6f, 0x28, 0xfd, 0xae, 0x1d, 0xdb, 0xba, 0x3d, 0xf4, 0xdd, 0xcb, 0x44, 0xdd, - 0x26, 0x12, 0x4b, 0x33, 0x44, 0xa5, 0x45, 0xe2, 0x17, 0x70, 0x2b, 0x0e, 0x62, 0xdb, 0xb3, 0x34, - 0x3d, 0x12, 0x96, 0x17, 0xd8, 0xae, 0xbc, 0xd4, 0x94, 0xb3, 0xae, 0xae, 0x22, 0x64, 0x17, 0x11, - 0xa6, 0x38, 0x08, 0x6c, 0x17, 0x2f, 0x36, 0x6b, 0xd3, 0x4c, 0xaa, 0x68, 0x15, 0x6c, 0x6e, 0x25, - 0x4f, 0xa1, 0x48, 0xf8, 0x79, 0xda, 0x94, 0xca, 0xbd, 0x05, 0xb7, 0x43, 0x71, 0x16, 0xc4, 0x92, - 0x53, 0x45, 0x8e, 0xb2, 0xb7, 0x2d, 0xb5, 0x03, 0xad, 0x3c, 0xc4, 0xab, 0xa4, 0x17, 0x38, 0xb6, - 0x67, 0xa9, 0x95, 0x12, 0xe8, 0xb0, 0x25, 0xb3, 0x89, 0x42, 0xe5, 0x07, 0xb8, 0x77, 0x23, 0xea, - 0x07, 0x31, 0xcd, 0x50, 0x75, 0xb5, 0x77, 0x95, 0x34, 0x85, 0xbd, 0x0f, 0xcb, 0x89, 0xa0, 0x91, - 0xea, 0xeb, 0xe9, 0x45, 0x4c, 0xd5, 0xd5, 0xad, 0x64, 0x2e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, 0x16, 0xe4, 0x1e, 0xda, 0xc1, 0xaa, 0xa6, 0xbc, 0x29, 0x1b, 0xc5, 0xee, 0x11, 0x18, 0x97, - 0x8f, 0x79, 0x52, 0x85, 0xc5, 0x1e, 0x8f, 0x8d, 0x05, 0xd9, 0xf1, 0x7d, 0x2f, 0xb0, 0x63, 0xe5, - 0xc0, 0xbb, 0xd4, 0x61, 0xbe, 0xed, 0x19, 0x45, 0xb9, 0x4d, 0x77, 0xed, 0x98, 0xca, 0x24, 0x52, - 0x85, 0x98, 0xdd, 0x44, 0x15, 0x5b, 0x8d, 0x92, 0x74, 0xee, 0x4b, 0x87, 0xbe, 0x1c, 0x82, 0xbc, - 0xfc, 0xa8, 0xe1, 0x63, 0x6b, 0xc2, 0x28, 0xe0, 0x54, 0xc8, 0xb3, 0x40, 0x18, 0xc5, 0xed, 0x3f, - 0xfa, 0xfd, 0x0f, 0xf7, 0x0a, 0xff, 0xfa, 0xc3, 0xbd, 0xc2, 0x7f, 0xfc, 0x70, 0xaf, 0xf0, 0x57, - 0xff, 0x79, 0x6f, 0x01, 0x6e, 0x38, 0x81, 0xff, 0x48, 0x9e, 0x13, 0x8e, 0x1d, 0x3e, 0x8a, 0x99, - 0x7b, 0x8a, 0x91, 0xf3, 0xb8, 0xf0, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xee, 0x08, 0xfe, 0x76, - 0x81, 0x2c, 0x00, 0x00, -} diff --git a/go-tipb/explain.pb.go b/go-tipb/explain.pb.go index 038364e13..368c688e4 100644 --- a/go-tipb/explain.pb.go +++ b/go-tipb/explain.pb.go @@ -4,15 +4,15 @@ package tipb import ( + encoding_binary "encoding/binary" "fmt" + "io" + "math" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - math "math" - - encoding_binary "encoding/binary" - - io "io" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. @@ -20,6 +20,12 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + type TaskType int32 const ( @@ -37,6 +43,7 @@ var TaskType_name = map[int32]string{ 3: "batchCop", 4: "mpp", } + var TaskType_value = map[string]int32{ "unknown": 0, "root": 1, @@ -48,7 +55,10 @@ var TaskType_value = map[string]int32{ func (x TaskType) String() string { return proto.EnumName(TaskType_name, int32(x)) } -func (TaskType) EnumDescriptor() ([]byte, []int) { return fileDescriptorExplain, []int{0} } + +func (TaskType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4242acda8806438c, []int{0} +} type StoreType int32 @@ -65,6 +75,7 @@ var StoreType_name = map[int32]string{ 2: "tikv", 3: "tiflash", } + var StoreType_value = map[string]int32{ "unspecified": 0, "tidb": 1, @@ -75,7 +86,10 @@ var StoreType_value = map[string]int32{ func (x StoreType) String() string { return proto.EnumName(StoreType_name, int32(x)) } -func (StoreType) EnumDescriptor() ([]byte, []int) { return fileDescriptorExplain, []int{1} } + +func (StoreType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4242acda8806438c, []int{1} +} type OperatorLabel int32 @@ -95,6 +109,7 @@ var OperatorLabel_name = map[int32]string{ 3: "seedPart", 4: "recursivePart", } + var OperatorLabel_value = map[string]int32{ "empty": 0, "buildSide": 1, @@ -106,11 +121,14 @@ var OperatorLabel_value = map[string]int32{ func (x OperatorLabel) String() string { return proto.EnumName(OperatorLabel_name, int32(x)) } -func (OperatorLabel) EnumDescriptor() ([]byte, []int) { return fileDescriptorExplain, []int{2} } + +func (OperatorLabel) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4242acda8806438c, []int{2} +} type ExplainData struct { - Main *ExplainOperator `protobuf:"bytes,1,opt,name=main" json:"main,omitempty"` - Ctes []*ExplainOperator `protobuf:"bytes,2,rep,name=ctes" json:"ctes,omitempty"` + Main *ExplainOperator `protobuf:"bytes,1,opt,name=main,proto3" json:"main,omitempty"` + Ctes []*ExplainOperator `protobuf:"bytes,2,rep,name=ctes,proto3" json:"ctes,omitempty"` // with_runtime_stats represents if runtime stats are available. // If not available, the act_rows, *_exec_info, memory_bytes and disk_bytes should not be used. WithRuntimeStats bool `protobuf:"varint,3,opt,name=with_runtime_stats,json=withRuntimeStats,proto3" json:"with_runtime_stats,omitempty"` @@ -119,10 +137,38 @@ type ExplainData struct { DiscardedDueToTooLong bool `protobuf:"varint,4,opt,name=discarded_due_to_too_long,json=discardedDueToTooLong,proto3" json:"discarded_due_to_too_long,omitempty"` } -func (m *ExplainData) Reset() { *m = ExplainData{} } -func (m *ExplainData) String() string { return proto.CompactTextString(m) } -func (*ExplainData) ProtoMessage() {} -func (*ExplainData) Descriptor() ([]byte, []int) { return fileDescriptorExplain, []int{0} } +func (m *ExplainData) Reset() { *m = ExplainData{} } +func (m *ExplainData) String() string { return proto.CompactTextString(m) } +func (*ExplainData) ProtoMessage() {} +func (*ExplainData) Descriptor() ([]byte, []int) { + return fileDescriptor_4242acda8806438c, []int{0} +} +func (m *ExplainData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExplainData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExplainData.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ExplainData) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExplainData.Merge(m, src) +} +func (m *ExplainData) XXX_Size() int { + return m.Size() +} +func (m *ExplainData) XXX_DiscardUnknown() { + xxx_messageInfo_ExplainData.DiscardUnknown(m) +} + +var xxx_messageInfo_ExplainData proto.InternalMessageInfo func (m *ExplainData) GetMain() *ExplainOperator { if m != nil { @@ -154,8 +200,8 @@ func (m *ExplainData) GetDiscardedDueToTooLong() bool { type ExplainOperator struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Children []*ExplainOperator `protobuf:"bytes,2,rep,name=children" json:"children,omitempty"` - Labels []OperatorLabel `protobuf:"varint,3,rep,packed,name=labels,enum=tipb.OperatorLabel" json:"labels,omitempty"` + Children []*ExplainOperator `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"` + Labels []OperatorLabel `protobuf:"varint,3,rep,packed,name=labels,proto3,enum=tipb.OperatorLabel" json:"labels,omitempty"` // the cost of the current operator Cost float64 `protobuf:"fixed64,4,opt,name=cost,proto3" json:"cost,omitempty"` EstRows float64 `protobuf:"fixed64,5,opt,name=est_rows,json=estRows,proto3" json:"est_rows,omitempty"` @@ -163,10 +209,10 @@ type ExplainOperator struct { TaskType TaskType `protobuf:"varint,7,opt,name=task_type,json=taskType,proto3,enum=tipb.TaskType" json:"task_type,omitempty"` StoreType StoreType `protobuf:"varint,8,opt,name=store_type,json=storeType,proto3,enum=tipb.StoreType" json:"store_type,omitempty"` // The XXXReader/XXXScan/MemTable/PointGet/BatchPointGet may use this - AccessObjects []*AccessObject `protobuf:"bytes,9,rep,name=access_objects,json=accessObjects" json:"access_objects,omitempty"` + AccessObjects []*AccessObject `protobuf:"bytes,9,rep,name=access_objects,json=accessObjects,proto3" json:"access_objects,omitempty"` OperatorInfo string `protobuf:"bytes,10,opt,name=operator_info,json=operatorInfo,proto3" json:"operator_info,omitempty"` RootBasicExecInfo string `protobuf:"bytes,11,opt,name=root_basic_exec_info,json=rootBasicExecInfo,proto3" json:"root_basic_exec_info,omitempty"` - RootGroupExecInfo []string `protobuf:"bytes,12,rep,name=root_group_exec_info,json=rootGroupExecInfo" json:"root_group_exec_info,omitempty"` + RootGroupExecInfo []string `protobuf:"bytes,12,rep,name=root_group_exec_info,json=rootGroupExecInfo,proto3" json:"root_group_exec_info,omitempty"` CopExecInfo string `protobuf:"bytes,13,opt,name=cop_exec_info,json=copExecInfo,proto3" json:"cop_exec_info,omitempty"` // memory_bytes and disk_bytes are expected to be displayed as "N/A" when they are -1, // this will be consistent with the result of EXPLAIN ANALYZE. @@ -174,10 +220,38 @@ type ExplainOperator struct { DiskBytes int64 `protobuf:"varint,15,opt,name=disk_bytes,json=diskBytes,proto3" json:"disk_bytes,omitempty"` } -func (m *ExplainOperator) Reset() { *m = ExplainOperator{} } -func (m *ExplainOperator) String() string { return proto.CompactTextString(m) } -func (*ExplainOperator) ProtoMessage() {} -func (*ExplainOperator) Descriptor() ([]byte, []int) { return fileDescriptorExplain, []int{1} } +func (m *ExplainOperator) Reset() { *m = ExplainOperator{} } +func (m *ExplainOperator) String() string { return proto.CompactTextString(m) } +func (*ExplainOperator) ProtoMessage() {} +func (*ExplainOperator) Descriptor() ([]byte, []int) { + return fileDescriptor_4242acda8806438c, []int{1} +} +func (m *ExplainOperator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExplainOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExplainOperator.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ExplainOperator) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExplainOperator.Merge(m, src) +} +func (m *ExplainOperator) XXX_Size() int { + return m.Size() +} +func (m *ExplainOperator) XXX_DiscardUnknown() { + xxx_messageInfo_ExplainOperator.DiscardUnknown(m) +} + +var xxx_messageInfo_ExplainOperator proto.InternalMessageInfo func (m *ExplainOperator) GetName() string { if m != nil { @@ -292,10 +366,38 @@ type AccessObject struct { AccessObject isAccessObject_AccessObject `protobuf_oneof:"access_object"` } -func (m *AccessObject) Reset() { *m = AccessObject{} } -func (m *AccessObject) String() string { return proto.CompactTextString(m) } -func (*AccessObject) ProtoMessage() {} -func (*AccessObject) Descriptor() ([]byte, []int) { return fileDescriptorExplain, []int{2} } +func (m *AccessObject) Reset() { *m = AccessObject{} } +func (m *AccessObject) String() string { return proto.CompactTextString(m) } +func (*AccessObject) ProtoMessage() {} +func (*AccessObject) Descriptor() ([]byte, []int) { + return fileDescriptor_4242acda8806438c, []int{2} +} +func (m *AccessObject) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AccessObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AccessObject.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AccessObject) XXX_Merge(src proto.Message) { + xxx_messageInfo_AccessObject.Merge(m, src) +} +func (m *AccessObject) XXX_Size() int { + return m.Size() +} +func (m *AccessObject) XXX_DiscardUnknown() { + xxx_messageInfo_AccessObject.DiscardUnknown(m) +} + +var xxx_messageInfo_AccessObject proto.InternalMessageInfo type isAccessObject_AccessObject interface { isAccessObject_AccessObject() @@ -304,13 +406,13 @@ type isAccessObject_AccessObject interface { } type AccessObject_ScanObject struct { - ScanObject *ScanAccessObject `protobuf:"bytes,1,opt,name=scan_object,json=scanObject,oneof"` + ScanObject *ScanAccessObject `protobuf:"bytes,1,opt,name=scan_object,json=scanObject,proto3,oneof" json:"scan_object,omitempty"` } type AccessObject_DynamicPartitionObjects struct { - DynamicPartitionObjects *DynamicPartitionAccessObjects `protobuf:"bytes,2,opt,name=dynamic_partition_objects,json=dynamicPartitionObjects,oneof"` + DynamicPartitionObjects *DynamicPartitionAccessObjects `protobuf:"bytes,2,opt,name=dynamic_partition_objects,json=dynamicPartitionObjects,proto3,oneof" json:"dynamic_partition_objects,omitempty"` } type AccessObject_OtherObject struct { - OtherObject string `protobuf:"bytes,3,opt,name=other_object,json=otherObject,proto3,oneof"` + OtherObject string `protobuf:"bytes,3,opt,name=other_object,json=otherObject,proto3,oneof" json:"other_object,omitempty"` } func (*AccessObject_ScanObject) isAccessObject_AccessObject() {} @@ -345,105 +447,51 @@ func (m *AccessObject) GetOtherObject() string { return "" } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*AccessObject) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _AccessObject_OneofMarshaler, _AccessObject_OneofUnmarshaler, _AccessObject_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*AccessObject) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*AccessObject_ScanObject)(nil), (*AccessObject_DynamicPartitionObjects)(nil), (*AccessObject_OtherObject)(nil), } } -func _AccessObject_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*AccessObject) - // access_object - switch x := m.AccessObject.(type) { - case *AccessObject_ScanObject: - _ = b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.ScanObject); err != nil { - return err - } - case *AccessObject_DynamicPartitionObjects: - _ = b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.DynamicPartitionObjects); err != nil { - return err - } - case *AccessObject_OtherObject: - _ = b.EncodeVarint(3<<3 | proto.WireBytes) - _ = b.EncodeStringBytes(x.OtherObject) - case nil: - default: - return fmt.Errorf("AccessObject.AccessObject has unexpected type %T", x) - } - return nil -} - -func _AccessObject_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*AccessObject) - switch tag { - case 1: // access_object.scan_object - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(ScanAccessObject) - err := b.DecodeMessage(msg) - m.AccessObject = &AccessObject_ScanObject{msg} - return true, err - case 2: // access_object.dynamic_partition_objects - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(DynamicPartitionAccessObjects) - err := b.DecodeMessage(msg) - m.AccessObject = &AccessObject_DynamicPartitionObjects{msg} - return true, err - case 3: // access_object.other_object - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeStringBytes() - m.AccessObject = &AccessObject_OtherObject{x} - return true, err - default: - return false, nil - } -} - -func _AccessObject_OneofSizer(msg proto.Message) (n int) { - m := msg.(*AccessObject) - // access_object - switch x := m.AccessObject.(type) { - case *AccessObject_ScanObject: - s := proto.Size(x.ScanObject) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *AccessObject_DynamicPartitionObjects: - s := proto.Size(x.DynamicPartitionObjects) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *AccessObject_OtherObject: - n += proto.SizeVarint(3<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(len(x.OtherObject))) - n += len(x.OtherObject) - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - type DynamicPartitionAccessObjects struct { - Objects []*DynamicPartitionAccessObject `protobuf:"bytes,1,rep,name=objects" json:"objects,omitempty"` + Objects []*DynamicPartitionAccessObject `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"` } func (m *DynamicPartitionAccessObjects) Reset() { *m = DynamicPartitionAccessObjects{} } func (m *DynamicPartitionAccessObjects) String() string { return proto.CompactTextString(m) } func (*DynamicPartitionAccessObjects) ProtoMessage() {} func (*DynamicPartitionAccessObjects) Descriptor() ([]byte, []int) { - return fileDescriptorExplain, []int{3} + return fileDescriptor_4242acda8806438c, []int{3} +} +func (m *DynamicPartitionAccessObjects) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DynamicPartitionAccessObjects) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DynamicPartitionAccessObjects.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DynamicPartitionAccessObjects) XXX_Merge(src proto.Message) { + xxx_messageInfo_DynamicPartitionAccessObjects.Merge(m, src) +} +func (m *DynamicPartitionAccessObjects) XXX_Size() int { + return m.Size() } +func (m *DynamicPartitionAccessObjects) XXX_DiscardUnknown() { + xxx_messageInfo_DynamicPartitionAccessObjects.DiscardUnknown(m) +} + +var xxx_messageInfo_DynamicPartitionAccessObjects proto.InternalMessageInfo func (m *DynamicPartitionAccessObjects) GetObjects() []*DynamicPartitionAccessObject { if m != nil { @@ -457,16 +505,42 @@ type DynamicPartitionAccessObject struct { Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"` AllPartitions bool `protobuf:"varint,3,opt,name=all_partitions,json=allPartitions,proto3" json:"all_partitions,omitempty"` - Partitions []string `protobuf:"bytes,4,rep,name=partitions" json:"partitions,omitempty"` + Partitions []string `protobuf:"bytes,4,rep,name=partitions,proto3" json:"partitions,omitempty"` } func (m *DynamicPartitionAccessObject) Reset() { *m = DynamicPartitionAccessObject{} } func (m *DynamicPartitionAccessObject) String() string { return proto.CompactTextString(m) } func (*DynamicPartitionAccessObject) ProtoMessage() {} func (*DynamicPartitionAccessObject) Descriptor() ([]byte, []int) { - return fileDescriptorExplain, []int{4} + return fileDescriptor_4242acda8806438c, []int{4} +} +func (m *DynamicPartitionAccessObject) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DynamicPartitionAccessObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DynamicPartitionAccessObject.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DynamicPartitionAccessObject) XXX_Merge(src proto.Message) { + xxx_messageInfo_DynamicPartitionAccessObject.Merge(m, src) +} +func (m *DynamicPartitionAccessObject) XXX_Size() int { + return m.Size() +} +func (m *DynamicPartitionAccessObject) XXX_DiscardUnknown() { + xxx_messageInfo_DynamicPartitionAccessObject.DiscardUnknown(m) } +var xxx_messageInfo_DynamicPartitionAccessObject proto.InternalMessageInfo + func (m *DynamicPartitionAccessObject) GetDatabase() string { if m != nil { return m.Database @@ -499,14 +573,42 @@ func (m *DynamicPartitionAccessObject) GetPartitions() []string { type ScanAccessObject struct { Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"` - Indexes []*IndexAccess `protobuf:"bytes,3,rep,name=indexes" json:"indexes,omitempty"` - Partitions []string `protobuf:"bytes,4,rep,name=partitions" json:"partitions,omitempty"` + Indexes []*IndexAccess `protobuf:"bytes,3,rep,name=indexes,proto3" json:"indexes,omitempty"` + Partitions []string `protobuf:"bytes,4,rep,name=partitions,proto3" json:"partitions,omitempty"` +} + +func (m *ScanAccessObject) Reset() { *m = ScanAccessObject{} } +func (m *ScanAccessObject) String() string { return proto.CompactTextString(m) } +func (*ScanAccessObject) ProtoMessage() {} +func (*ScanAccessObject) Descriptor() ([]byte, []int) { + return fileDescriptor_4242acda8806438c, []int{5} +} +func (m *ScanAccessObject) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ScanAccessObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ScanAccessObject.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ScanAccessObject) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanAccessObject.Merge(m, src) +} +func (m *ScanAccessObject) XXX_Size() int { + return m.Size() +} +func (m *ScanAccessObject) XXX_DiscardUnknown() { + xxx_messageInfo_ScanAccessObject.DiscardUnknown(m) } -func (m *ScanAccessObject) Reset() { *m = ScanAccessObject{} } -func (m *ScanAccessObject) String() string { return proto.CompactTextString(m) } -func (*ScanAccessObject) ProtoMessage() {} -func (*ScanAccessObject) Descriptor() ([]byte, []int) { return fileDescriptorExplain, []int{5} } +var xxx_messageInfo_ScanAccessObject proto.InternalMessageInfo func (m *ScanAccessObject) GetDatabase() string { if m != nil { @@ -538,14 +640,42 @@ func (m *ScanAccessObject) GetPartitions() []string { type IndexAccess struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Cols []string `protobuf:"bytes,2,rep,name=cols" json:"cols,omitempty"` + Cols []string `protobuf:"bytes,2,rep,name=cols,proto3" json:"cols,omitempty"` IsClusteredIndex bool `protobuf:"varint,3,opt,name=is_clustered_index,json=isClusteredIndex,proto3" json:"is_clustered_index,omitempty"` } -func (m *IndexAccess) Reset() { *m = IndexAccess{} } -func (m *IndexAccess) String() string { return proto.CompactTextString(m) } -func (*IndexAccess) ProtoMessage() {} -func (*IndexAccess) Descriptor() ([]byte, []int) { return fileDescriptorExplain, []int{6} } +func (m *IndexAccess) Reset() { *m = IndexAccess{} } +func (m *IndexAccess) String() string { return proto.CompactTextString(m) } +func (*IndexAccess) ProtoMessage() {} +func (*IndexAccess) Descriptor() ([]byte, []int) { + return fileDescriptor_4242acda8806438c, []int{6} +} +func (m *IndexAccess) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IndexAccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IndexAccess.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *IndexAccess) XXX_Merge(src proto.Message) { + xxx_messageInfo_IndexAccess.Merge(m, src) +} +func (m *IndexAccess) XXX_Size() int { + return m.Size() +} +func (m *IndexAccess) XXX_DiscardUnknown() { + xxx_messageInfo_IndexAccess.DiscardUnknown(m) +} + +var xxx_messageInfo_IndexAccess proto.InternalMessageInfo func (m *IndexAccess) GetName() string { if m != nil { @@ -569,6 +699,9 @@ func (m *IndexAccess) GetIsClusteredIndex() bool { } func init() { + proto.RegisterEnum("tipb.TaskType", TaskType_name, TaskType_value) + proto.RegisterEnum("tipb.StoreType", StoreType_name, StoreType_value) + proto.RegisterEnum("tipb.OperatorLabel", OperatorLabel_name, OperatorLabel_value) proto.RegisterType((*ExplainData)(nil), "tipb.ExplainData") proto.RegisterType((*ExplainOperator)(nil), "tipb.ExplainOperator") proto.RegisterType((*AccessObject)(nil), "tipb.AccessObject") @@ -576,14 +709,78 @@ func init() { proto.RegisterType((*DynamicPartitionAccessObject)(nil), "tipb.DynamicPartitionAccessObject") proto.RegisterType((*ScanAccessObject)(nil), "tipb.ScanAccessObject") proto.RegisterType((*IndexAccess)(nil), "tipb.IndexAccess") - proto.RegisterEnum("tipb.TaskType", TaskType_name, TaskType_value) - proto.RegisterEnum("tipb.StoreType", StoreType_name, StoreType_value) - proto.RegisterEnum("tipb.OperatorLabel", OperatorLabel_name, OperatorLabel_value) } + +func init() { proto.RegisterFile("explain.proto", fileDescriptor_4242acda8806438c) } + +var fileDescriptor_4242acda8806438c = []byte{ + // 946 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x95, 0xc1, 0x6e, 0xe3, 0x36, + 0x13, 0xc7, 0xcd, 0x58, 0x89, 0xa5, 0x91, 0x65, 0x2b, 0xfc, 0x92, 0xaf, 0x4e, 0xd0, 0x35, 0x5c, + 0x2f, 0x0a, 0xb8, 0x49, 0xe1, 0x45, 0xd3, 0x4b, 0x03, 0xb4, 0x87, 0xcd, 0x66, 0xd1, 0x2c, 0xb0, + 0xc0, 0x2e, 0x94, 0x5c, 0x7a, 0x28, 0x04, 0x8a, 0x62, 0x1c, 0x36, 0xb2, 0x28, 0x88, 0xd4, 0x26, + 0x7e, 0x8b, 0xf6, 0xd4, 0x3e, 0x42, 0x1f, 0xa5, 0x40, 0x2f, 0x7b, 0xe8, 0x61, 0x8f, 0x45, 0xf2, + 0x22, 0x05, 0x49, 0xc9, 0x71, 0x82, 0x22, 0x0b, 0xf4, 0x46, 0xfe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90, 0xe2, 0xe7, 0x19, 0x91, 0x17, 0x61, 0x7b, 0xef, 0x07, 0x08, 0xee, 0x0d, + 0x50, 0xec, 0xc1, 0x3a, 0x9b, 0x17, 0x6a, 0x11, 0xb6, 0x70, 0x00, 0x5e, 0x52, 0xf1, 0x2c, 0x3d, + 0xe5, 0x29, 0x0b, 0x91, 0xde, 0x16, 0xa5, 0x48, 0x98, 0xd9, 0x9a, 0x7a, 0x24, 0x63, 0xa9, 0xbe, + 0xe6, 0xb0, 0x8d, 0x37, 0x21, 0x28, 0x19, 0xad, 0x4a, 0xc9, 0xdf, 0x31, 0x23, 0x39, 0x47, 0x87, + 0x1f, 0x7e, 0x77, 0xd1, 0x1f, 0x37, 0x43, 0xf4, 0xfe, 0x66, 0x88, 0xfe, 0xbe, 0x19, 0xa2, 0x9f, + 0x6f, 0x87, 0xad, 0xdf, 0x6e, 0x87, 0xad, 0xf7, 0xb7, 0xc3, 0xd6, 0x87, 0xdb, 0x61, 0x0b, 0xb6, + 0xa9, 0x98, 0x4f, 0x0b, 0x9e, 0xcf, 0x28, 0x29, 0xa6, 0xba, 0x4e, 0x73, 0x5f, 0x6f, 0x51, 0xb2, + 0x61, 0xfe, 0x1a, 0xbf, 0xfe, 0x27, 0x00, 0x00, 0xff, 0xff, 0xdb, 0x71, 0x16, 0xf6, 0x58, 0x07, + 0x00, 0x00, +} + func (m *ExplainData) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -591,59 +788,68 @@ func (m *ExplainData) Marshal() (dAtA []byte, err error) { } func (m *ExplainData) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExplainData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Main != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintExplain(dAtA, i, uint64(m.Main.Size())) - n1, err := m.Main.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - } - if len(m.Ctes) > 0 { - for _, msg := range m.Ctes { - dAtA[i] = 0x12 - i++ - i = encodeVarintExplain(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if m.DiscardedDueToTooLong { + i-- + if m.DiscardedDueToTooLong { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x20 } if m.WithRuntimeStats { - dAtA[i] = 0x18 - i++ + i-- if m.WithRuntimeStats { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x18 } - if m.DiscardedDueToTooLong { - dAtA[i] = 0x20 - i++ - if m.DiscardedDueToTooLong { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.Ctes) > 0 { + for iNdEx := len(m.Ctes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Ctes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExplain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.Main != nil { + { + size, err := m.Main.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExplain(dAtA, i, uint64(size)) } - i++ + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ExplainOperator) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -651,28 +857,96 @@ func (m *ExplainOperator) Marshal() (dAtA []byte, err error) { } func (m *ExplainOperator) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExplainOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintExplain(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + if m.DiskBytes != 0 { + i = encodeVarintExplain(dAtA, i, uint64(m.DiskBytes)) + i-- + dAtA[i] = 0x78 } - if len(m.Children) > 0 { - for _, msg := range m.Children { - dAtA[i] = 0x12 - i++ - i = encodeVarintExplain(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.MemoryBytes != 0 { + i = encodeVarintExplain(dAtA, i, uint64(m.MemoryBytes)) + i-- + dAtA[i] = 0x70 + } + if len(m.CopExecInfo) > 0 { + i -= len(m.CopExecInfo) + copy(dAtA[i:], m.CopExecInfo) + i = encodeVarintExplain(dAtA, i, uint64(len(m.CopExecInfo))) + i-- + dAtA[i] = 0x6a + } + if len(m.RootGroupExecInfo) > 0 { + for iNdEx := len(m.RootGroupExecInfo) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.RootGroupExecInfo[iNdEx]) + copy(dAtA[i:], m.RootGroupExecInfo[iNdEx]) + i = encodeVarintExplain(dAtA, i, uint64(len(m.RootGroupExecInfo[iNdEx]))) + i-- + dAtA[i] = 0x62 + } + } + if len(m.RootBasicExecInfo) > 0 { + i -= len(m.RootBasicExecInfo) + copy(dAtA[i:], m.RootBasicExecInfo) + i = encodeVarintExplain(dAtA, i, uint64(len(m.RootBasicExecInfo))) + i-- + dAtA[i] = 0x5a + } + if len(m.OperatorInfo) > 0 { + i -= len(m.OperatorInfo) + copy(dAtA[i:], m.OperatorInfo) + i = encodeVarintExplain(dAtA, i, uint64(len(m.OperatorInfo))) + i-- + dAtA[i] = 0x52 + } + if len(m.AccessObjects) > 0 { + for iNdEx := len(m.AccessObjects) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AccessObjects[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExplain(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x4a } } + if m.StoreType != 0 { + i = encodeVarintExplain(dAtA, i, uint64(m.StoreType)) + i-- + dAtA[i] = 0x40 + } + if m.TaskType != 0 { + i = encodeVarintExplain(dAtA, i, uint64(m.TaskType)) + i-- + dAtA[i] = 0x38 + } + if m.ActRows != 0 { + i = encodeVarintExplain(dAtA, i, uint64(m.ActRows)) + i-- + dAtA[i] = 0x30 + } + if m.EstRows != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.EstRows)))) + i-- + dAtA[i] = 0x29 + } + if m.Cost != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Cost)))) + i-- + dAtA[i] = 0x21 + } if len(m.Labels) > 0 { dAtA3 := make([]byte, len(m.Labels)*10) var j2 int @@ -685,100 +959,40 @@ func (m *ExplainOperator) MarshalTo(dAtA []byte) (int, error) { dAtA3[j2] = uint8(num) j2++ } - dAtA[i] = 0x1a - i++ + i -= j2 + copy(dAtA[i:], dAtA3[:j2]) i = encodeVarintExplain(dAtA, i, uint64(j2)) - i += copy(dAtA[i:], dAtA3[:j2]) - } - if m.Cost != 0 { - dAtA[i] = 0x21 - i++ - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Cost)))) - i += 8 - } - if m.EstRows != 0 { - dAtA[i] = 0x29 - i++ - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.EstRows)))) - i += 8 - } - if m.ActRows != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintExplain(dAtA, i, uint64(m.ActRows)) - } - if m.TaskType != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintExplain(dAtA, i, uint64(m.TaskType)) - } - if m.StoreType != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintExplain(dAtA, i, uint64(m.StoreType)) - } - if len(m.AccessObjects) > 0 { - for _, msg := range m.AccessObjects { - dAtA[i] = 0x4a - i++ - i = encodeVarintExplain(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.OperatorInfo) > 0 { - dAtA[i] = 0x52 - i++ - i = encodeVarintExplain(dAtA, i, uint64(len(m.OperatorInfo))) - i += copy(dAtA[i:], m.OperatorInfo) - } - if len(m.RootBasicExecInfo) > 0 { - dAtA[i] = 0x5a - i++ - i = encodeVarintExplain(dAtA, i, uint64(len(m.RootBasicExecInfo))) - i += copy(dAtA[i:], m.RootBasicExecInfo) + i-- + dAtA[i] = 0x1a } - if len(m.RootGroupExecInfo) > 0 { - for _, s := range m.RootGroupExecInfo { - dAtA[i] = 0x62 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ + if len(m.Children) > 0 { + for iNdEx := len(m.Children) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Children[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExplain(dAtA, i, uint64(size)) } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) + i-- + dAtA[i] = 0x12 } } - if len(m.CopExecInfo) > 0 { - dAtA[i] = 0x6a - i++ - i = encodeVarintExplain(dAtA, i, uint64(len(m.CopExecInfo))) - i += copy(dAtA[i:], m.CopExecInfo) - } - if m.MemoryBytes != 0 { - dAtA[i] = 0x70 - i++ - i = encodeVarintExplain(dAtA, i, uint64(m.MemoryBytes)) - } - if m.DiskBytes != 0 { - dAtA[i] = 0x78 - i++ - i = encodeVarintExplain(dAtA, i, uint64(m.DiskBytes)) + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintExplain(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *AccessObject) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -786,60 +1000,87 @@ func (m *AccessObject) Marshal() (dAtA []byte, err error) { } func (m *AccessObject) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AccessObject) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if m.AccessObject != nil { - nn4, err := m.AccessObject.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size := m.AccessObject.Size() + i -= size + if _, err := m.AccessObject.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += nn4 } - return i, nil + return len(dAtA) - i, nil } func (m *AccessObject_ScanObject) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AccessObject_ScanObject) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.ScanObject != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintExplain(dAtA, i, uint64(m.ScanObject.Size())) - n5, err := m.ScanObject.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.ScanObject.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExplain(dAtA, i, uint64(size)) } - i += n5 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *AccessObject_DynamicPartitionObjects) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AccessObject_DynamicPartitionObjects) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.DynamicPartitionObjects != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintExplain(dAtA, i, uint64(m.DynamicPartitionObjects.Size())) - n6, err := m.DynamicPartitionObjects.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.DynamicPartitionObjects.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExplain(dAtA, i, uint64(size)) } - i += n6 + i-- + dAtA[i] = 0x12 } - return i, nil + return len(dAtA) - i, nil } func (m *AccessObject_OtherObject) MarshalTo(dAtA []byte) (int, error) { - i := 0 - dAtA[i] = 0x1a - i++ + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AccessObject_OtherObject) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.OtherObject) + copy(dAtA[i:], m.OtherObject) i = encodeVarintExplain(dAtA, i, uint64(len(m.OtherObject))) - i += copy(dAtA[i:], m.OtherObject) - return i, nil + i-- + dAtA[i] = 0x1a + return len(dAtA) - i, nil } func (m *DynamicPartitionAccessObjects) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -847,29 +1088,36 @@ func (m *DynamicPartitionAccessObjects) Marshal() (dAtA []byte, err error) { } func (m *DynamicPartitionAccessObjects) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DynamicPartitionAccessObjects) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Objects) > 0 { - for _, msg := range m.Objects { - dAtA[i] = 0xa - i++ - i = encodeVarintExplain(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Objects) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Objects[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExplain(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *DynamicPartitionAccessObject) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -877,54 +1125,55 @@ func (m *DynamicPartitionAccessObject) Marshal() (dAtA []byte, err error) { } func (m *DynamicPartitionAccessObject) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DynamicPartitionAccessObject) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Database) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintExplain(dAtA, i, uint64(len(m.Database))) - i += copy(dAtA[i:], m.Database) - } - if len(m.Table) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintExplain(dAtA, i, uint64(len(m.Table))) - i += copy(dAtA[i:], m.Table) + if len(m.Partitions) > 0 { + for iNdEx := len(m.Partitions) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Partitions[iNdEx]) + copy(dAtA[i:], m.Partitions[iNdEx]) + i = encodeVarintExplain(dAtA, i, uint64(len(m.Partitions[iNdEx]))) + i-- + dAtA[i] = 0x22 + } } if m.AllPartitions { - dAtA[i] = 0x18 - i++ + i-- if m.AllPartitions { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x18 } - if len(m.Partitions) > 0 { - for _, s := range m.Partitions { - dAtA[i] = 0x22 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } + if len(m.Table) > 0 { + i -= len(m.Table) + copy(dAtA[i:], m.Table) + i = encodeVarintExplain(dAtA, i, uint64(len(m.Table))) + i-- + dAtA[i] = 0x12 } - return i, nil + if len(m.Database) > 0 { + i -= len(m.Database) + copy(dAtA[i:], m.Database) + i = encodeVarintExplain(dAtA, i, uint64(len(m.Database))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *ScanAccessObject) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -932,56 +1181,59 @@ func (m *ScanAccessObject) Marshal() (dAtA []byte, err error) { } func (m *ScanAccessObject) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ScanAccessObject) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Database) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintExplain(dAtA, i, uint64(len(m.Database))) - i += copy(dAtA[i:], m.Database) - } - if len(m.Table) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintExplain(dAtA, i, uint64(len(m.Table))) - i += copy(dAtA[i:], m.Table) + if len(m.Partitions) > 0 { + for iNdEx := len(m.Partitions) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Partitions[iNdEx]) + copy(dAtA[i:], m.Partitions[iNdEx]) + i = encodeVarintExplain(dAtA, i, uint64(len(m.Partitions[iNdEx]))) + i-- + dAtA[i] = 0x22 + } } if len(m.Indexes) > 0 { - for _, msg := range m.Indexes { - dAtA[i] = 0x1a - i++ - i = encodeVarintExplain(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Indexes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Indexes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExplain(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x1a } } - if len(m.Partitions) > 0 { - for _, s := range m.Partitions { - dAtA[i] = 0x22 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } + if len(m.Table) > 0 { + i -= len(m.Table) + copy(dAtA[i:], m.Table) + i = encodeVarintExplain(dAtA, i, uint64(len(m.Table))) + i-- + dAtA[i] = 0x12 } - return i, nil + if len(m.Database) > 0 { + i -= len(m.Database) + copy(dAtA[i:], m.Database) + i = encodeVarintExplain(dAtA, i, uint64(len(m.Database))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *IndexAccess) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -989,54 +1241,59 @@ func (m *IndexAccess) Marshal() (dAtA []byte, err error) { } func (m *IndexAccess) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IndexAccess) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintExplain(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if len(m.Cols) > 0 { - for _, s := range m.Cols { - dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } if m.IsClusteredIndex { - dAtA[i] = 0x18 - i++ + i-- if m.IsClusteredIndex { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x18 + } + if len(m.Cols) > 0 { + for iNdEx := len(m.Cols) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Cols[iNdEx]) + copy(dAtA[i:], m.Cols[iNdEx]) + i = encodeVarintExplain(dAtA, i, uint64(len(m.Cols[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintExplain(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func encodeVarintExplain(dAtA []byte, offset int, v uint64) int { + offset -= sovExplain(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *ExplainData) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Main != nil { @@ -1059,6 +1316,9 @@ func (m *ExplainData) Size() (n int) { } func (m *ExplainOperator) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Name) @@ -1127,6 +1387,9 @@ func (m *ExplainOperator) Size() (n int) { } func (m *AccessObject) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.AccessObject != nil { @@ -1136,6 +1399,9 @@ func (m *AccessObject) Size() (n int) { } func (m *AccessObject_ScanObject) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ScanObject != nil { @@ -1145,6 +1411,9 @@ func (m *AccessObject_ScanObject) Size() (n int) { return n } func (m *AccessObject_DynamicPartitionObjects) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.DynamicPartitionObjects != nil { @@ -1154,6 +1423,9 @@ func (m *AccessObject_DynamicPartitionObjects) Size() (n int) { return n } func (m *AccessObject_OtherObject) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.OtherObject) @@ -1161,6 +1433,9 @@ func (m *AccessObject_OtherObject) Size() (n int) { return n } func (m *DynamicPartitionAccessObjects) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Objects) > 0 { @@ -1173,6 +1448,9 @@ func (m *DynamicPartitionAccessObjects) Size() (n int) { } func (m *DynamicPartitionAccessObject) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Database) @@ -1196,6 +1474,9 @@ func (m *DynamicPartitionAccessObject) Size() (n int) { } func (m *ScanAccessObject) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Database) @@ -1222,6 +1503,9 @@ func (m *ScanAccessObject) Size() (n int) { } func (m *IndexAccess) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Name) @@ -1241,14 +1525,7 @@ func (m *IndexAccess) Size() (n int) { } func sovExplain(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozExplain(x uint64) (n int) { return sovExplain(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1268,7 +1545,7 @@ func (m *ExplainData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1296,7 +1573,7 @@ func (m *ExplainData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1305,6 +1582,9 @@ func (m *ExplainData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1329,7 +1609,7 @@ func (m *ExplainData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1338,6 +1618,9 @@ func (m *ExplainData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1360,7 +1643,7 @@ func (m *ExplainData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1380,7 +1663,7 @@ func (m *ExplainData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1392,7 +1675,7 @@ func (m *ExplainData) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExplain } if (iNdEx + skippy) > l { @@ -1422,7 +1705,7 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1450,7 +1733,7 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1460,6 +1743,9 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1479,7 +1765,7 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1488,6 +1774,9 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1508,7 +1797,7 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (OperatorLabel(b) & 0x7F) << shift + v |= OperatorLabel(b&0x7F) << shift if b < 0x80 { break } @@ -1525,7 +1814,7 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1534,9 +1823,16 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + if elementCount != 0 && len(m.Labels) == 0 { + m.Labels = make([]OperatorLabel, 0, elementCount) + } for iNdEx < postIndex { var v OperatorLabel for shift := uint(0); ; shift += 7 { @@ -1548,7 +1844,7 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (OperatorLabel(b) & 0x7F) << shift + v |= OperatorLabel(b&0x7F) << shift if b < 0x80 { break } @@ -1594,7 +1890,7 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ActRows |= (uint64(b) & 0x7F) << shift + m.ActRows |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1613,7 +1909,7 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TaskType |= (TaskType(b) & 0x7F) << shift + m.TaskType |= TaskType(b&0x7F) << shift if b < 0x80 { break } @@ -1632,7 +1928,7 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreType |= (StoreType(b) & 0x7F) << shift + m.StoreType |= StoreType(b&0x7F) << shift if b < 0x80 { break } @@ -1651,7 +1947,7 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1660,6 +1956,9 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1682,7 +1981,7 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1692,6 +1991,9 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1711,7 +2013,7 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1721,6 +2023,9 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1740,7 +2045,7 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1750,6 +2055,9 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1769,7 +2077,7 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1779,6 +2087,9 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1798,7 +2109,7 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MemoryBytes |= (int64(b) & 0x7F) << shift + m.MemoryBytes |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1817,7 +2128,7 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DiskBytes |= (int64(b) & 0x7F) << shift + m.DiskBytes |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1828,7 +2139,7 @@ func (m *ExplainOperator) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExplain } if (iNdEx + skippy) > l { @@ -1858,7 +2169,7 @@ func (m *AccessObject) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1886,7 +2197,7 @@ func (m *AccessObject) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1895,6 +2206,9 @@ func (m *AccessObject) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1918,7 +2232,7 @@ func (m *AccessObject) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1927,6 +2241,9 @@ func (m *AccessObject) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1950,7 +2267,7 @@ func (m *AccessObject) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1960,6 +2277,9 @@ func (m *AccessObject) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1971,7 +2291,7 @@ func (m *AccessObject) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExplain } if (iNdEx + skippy) > l { @@ -2001,7 +2321,7 @@ func (m *DynamicPartitionAccessObjects) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2029,7 +2349,7 @@ func (m *DynamicPartitionAccessObjects) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2038,6 +2358,9 @@ func (m *DynamicPartitionAccessObjects) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2052,7 +2375,7 @@ func (m *DynamicPartitionAccessObjects) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExplain } if (iNdEx + skippy) > l { @@ -2082,7 +2405,7 @@ func (m *DynamicPartitionAccessObject) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2110,7 +2433,7 @@ func (m *DynamicPartitionAccessObject) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2120,6 +2443,9 @@ func (m *DynamicPartitionAccessObject) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2139,7 +2465,7 @@ func (m *DynamicPartitionAccessObject) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2149,6 +2475,9 @@ func (m *DynamicPartitionAccessObject) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2168,7 +2497,7 @@ func (m *DynamicPartitionAccessObject) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2188,7 +2517,7 @@ func (m *DynamicPartitionAccessObject) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2198,6 +2527,9 @@ func (m *DynamicPartitionAccessObject) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2209,7 +2541,7 @@ func (m *DynamicPartitionAccessObject) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExplain } if (iNdEx + skippy) > l { @@ -2239,7 +2571,7 @@ func (m *ScanAccessObject) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2267,7 +2599,7 @@ func (m *ScanAccessObject) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2277,6 +2609,9 @@ func (m *ScanAccessObject) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2296,7 +2631,7 @@ func (m *ScanAccessObject) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2306,6 +2641,9 @@ func (m *ScanAccessObject) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2325,7 +2663,7 @@ func (m *ScanAccessObject) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2334,6 +2672,9 @@ func (m *ScanAccessObject) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2356,7 +2697,7 @@ func (m *ScanAccessObject) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2366,6 +2707,9 @@ func (m *ScanAccessObject) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2377,7 +2721,7 @@ func (m *ScanAccessObject) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExplain } if (iNdEx + skippy) > l { @@ -2407,7 +2751,7 @@ func (m *IndexAccess) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2435,7 +2779,7 @@ func (m *IndexAccess) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2445,6 +2789,9 @@ func (m *IndexAccess) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2464,7 +2811,7 @@ func (m *IndexAccess) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2474,6 +2821,9 @@ func (m *IndexAccess) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExplain } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExplain + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2493,7 +2843,7 @@ func (m *IndexAccess) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2505,7 +2855,7 @@ func (m *IndexAccess) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExplain } if (iNdEx + skippy) > l { @@ -2523,6 +2873,7 @@ func (m *IndexAccess) Unmarshal(dAtA []byte) error { func skipExplain(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -2554,10 +2905,8 @@ func skipExplain(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -2574,117 +2923,34 @@ func skipExplain(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthExplain } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowExplain - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipExplain(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupExplain + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthExplain + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthExplain = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowExplain = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthExplain = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowExplain = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupExplain = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("explain.proto", fileDescriptorExplain) } - -var fileDescriptorExplain = []byte{ - // 918 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x95, 0x41, 0x6f, 0xdb, 0x36, - 0x14, 0xc7, 0xcd, 0x58, 0x89, 0xad, 0x27, 0xcb, 0x56, 0xb8, 0x64, 0x73, 0x8a, 0xd5, 0xf0, 0x5c, - 0x0c, 0x70, 0x93, 0xc1, 0xc5, 0xb2, 0xcb, 0x0a, 0x6c, 0x87, 0xa6, 0x29, 0x96, 0x02, 0x05, 0x5a, - 0x28, 0xb9, 0xec, 0x30, 0x08, 0x14, 0xc5, 0xd8, 0x9c, 0x65, 0x52, 0x10, 0xe9, 0x26, 0xfe, 0x18, - 0x3b, 0x6d, 0x1f, 0x69, 0xc0, 0x2e, 0x3b, 0xec, 0x03, 0x0c, 0xd9, 0x17, 0x19, 0x48, 0x4a, 0x8e, - 0x13, 0x0c, 0x09, 0xb0, 0x1b, 0xf9, 0xff, 0xff, 0xde, 0xe3, 0xf3, 0xa3, 0xf8, 0x0c, 0x21, 0xbb, - 0x2e, 0x72, 0xc2, 0xc5, 0xa4, 0x28, 0xa5, 0x96, 0xd8, 0xd3, 0xbc, 0x48, 0x9f, 0xec, 0x4d, 0xe5, - 0x54, 0x5a, 0xe1, 0x85, 0x59, 0x39, 0x6f, 0xf4, 0x07, 0x82, 0xe0, 0x8d, 0xa3, 0x4f, 0x89, 0x26, - 0xf8, 0x39, 0x78, 0x0b, 0xc2, 0x45, 0x1f, 0x0d, 0xd1, 0x38, 0x38, 0xde, 0x9f, 0x98, 0xd0, 0x49, - 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 0x6b, 0xe2, 0xd1, 0x9a, 0x28, 0x04, 0x1b, 0x71, 0xff, 0x39, 0xc3, 0xec, - 0x8c, 0xc9, 0xdd, 0xf8, 0xf5, 0x63, 0xbb, 0x36, 0x73, 0x96, 0xab, 0x84, 0xe6, 0x4b, 0xa5, 0x59, - 0xc9, 0xb2, 0xc4, 0x1e, 0x57, 0xcf, 0x59, 0xae, 0x5e, 0xd7, 0x86, 0xcd, 0x7d, 0xf8, 0x0a, 0xda, - 0xf5, 0x10, 0xc1, 0x01, 0xb4, 0x96, 0x62, 0x2e, 0xe4, 0x95, 0x88, 0x1a, 0xb8, 0x0d, 0x9e, 0x79, - 0x6a, 0x11, 0xc2, 0x2d, 0x68, 0x52, 0x59, 0x44, 0x5b, 0xb8, 0x03, 0xed, 0x94, 0x68, 0x3a, 0x7b, - 0x2d, 0x8b, 0xa8, 0x69, 0xe4, 0x45, 0x51, 0x44, 0xde, 0xe1, 0xf7, 0xe0, 0xaf, 0x27, 0x0b, 0xee, - 0x41, 0xb0, 0x14, 0xaa, 0x60, 0x94, 0x5f, 0x72, 0x96, 0xb9, 0x3c, 0x9a, 0x67, 0x69, 0x84, 0xdc, - 0x6a, 0xfe, 0x31, 0xda, 0x32, 0x07, 0x69, 0x7e, 0x99, 0x13, 0x35, 0x8b, 0x9a, 0x87, 0x3f, 0x42, - 0x78, 0x67, 0x80, 0x62, 0x1f, 0xb6, 0xd9, 0xa2, 0xd0, 0xab, 0xa8, 0x81, 0x43, 0xf0, 0xd3, 0x25, - 0xcf, 0xb3, 0x73, 0x9e, 0xb1, 0x08, 0x99, 0x6d, 0x51, 0xca, 0x94, 0xd9, 0xad, 0xad, 0x47, 0x31, - 0x96, 0x99, 0x6b, 0x8e, 0x9a, 0x78, 0x17, 0xc2, 0x92, 0xd1, 0x65, 0xa9, 0xf8, 0x47, 0x66, 0x25, - 0xef, 0xe4, 0xf9, 0xef, 0x37, 0x03, 0xf4, 0xe7, 0xcd, 0x00, 0xfd, 0x7d, 0x33, 0x40, 0xbf, 0xfd, - 0x33, 0x68, 0xc0, 0x3e, 0x95, 0x8b, 0x49, 0xc1, 0xc5, 0x94, 0x92, 0x62, 0x62, 0xea, 0xb2, 0xf7, - 0xf3, 0x01, 0xa5, 0x3b, 0xf6, 0xaf, 0xf0, 0x9b, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x1e, 0x6a, - 0x5b, 0xf1, 0x37, 0x07, 0x00, 0x00, -} diff --git a/go-tipb/expression.pb.go b/go-tipb/expression.pb.go index 4ab0a2568..98dd62ca5 100644 --- a/go-tipb/expression.pb.go +++ b/go-tipb/expression.pb.go @@ -5,12 +5,13 @@ package tipb import ( "fmt" + "io" + "math" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - math "math" - - io "io" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. @@ -18,6 +19,12 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + type ExprType int32 const ( @@ -132,6 +139,7 @@ var ExprType_name = map[int32]string{ 4011: "NthValue", 10000: "ScalarFunc", } + var ExprType_value = map[string]int32{ "Null": 0, "Int64": 1, @@ -190,9 +198,11 @@ func (x ExprType) Enum() *ExprType { *p = x return p } + func (x ExprType) String() string { return proto.EnumName(ExprType_name, int32(x)) } + func (x *ExprType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(ExprType_value, data, "ExprType") if err != nil { @@ -201,7 +211,10 @@ func (x *ExprType) UnmarshalJSON(data []byte) error { *x = ExprType(value) return nil } -func (ExprType) EnumDescriptor() ([]byte, []int) { return fileDescriptorExpression, []int{0} } + +func (ExprType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_fcc7550768b3bd34, []int{0} +} type ScalarFuncSig int32 @@ -257,7 +270,7 @@ const ( ScalarFuncSig_CastJsonAsTime ScalarFuncSig = 64 ScalarFuncSig_CastJsonAsDuration ScalarFuncSig = 65 ScalarFuncSig_CastJsonAsJson ScalarFuncSig = 66 - // compare + //compare ScalarFuncSig_CoalesceInt ScalarFuncSig = 4201 ScalarFuncSig_CoalesceReal ScalarFuncSig = 4202 ScalarFuncSig_CoalesceDecimal ScalarFuncSig = 4203 @@ -327,7 +340,7 @@ const ( ScalarFuncSig_NullEQTime ScalarFuncSig = 164 ScalarFuncSig_NullEQDuration ScalarFuncSig = 165 ScalarFuncSig_NullEQJson ScalarFuncSig = 166 - // arithmetic + //arithmetic ScalarFuncSig_PlusReal ScalarFuncSig = 200 ScalarFuncSig_PlusDecimal ScalarFuncSig = 201 ScalarFuncSig_PlusInt ScalarFuncSig = 203 @@ -364,7 +377,7 @@ const ( ScalarFuncSig_IntDivideIntUnsignedSigned ScalarFuncSig = 235 ScalarFuncSig_IntDivideIntSignedSigned ScalarFuncSig = 236 ScalarFuncSig_IntDivideIntSignedUnsigned ScalarFuncSig = 237 - // math + //math ScalarFuncSig_AbsInt ScalarFuncSig = 2101 ScalarFuncSig_AbsUInt ScalarFuncSig = 2102 ScalarFuncSig_AbsReal ScalarFuncSig = 2103 @@ -412,7 +425,7 @@ const ( ScalarFuncSig_TruncateReal ScalarFuncSig = 2155 ScalarFuncSig_TruncateDecimal ScalarFuncSig = 2156 ScalarFuncSig_TruncateUint ScalarFuncSig = 2157 - // op + //op ScalarFuncSig_LogicalAnd ScalarFuncSig = 3101 ScalarFuncSig_LogicalOr ScalarFuncSig = 3102 ScalarFuncSig_LogicalXor ScalarFuncSig = 3103 @@ -449,7 +462,7 @@ const ( ScalarFuncSig_IntIsFalseWithNull ScalarFuncSig = 3145 ScalarFuncSig_RealIsFalseWithNull ScalarFuncSig = 3146 ScalarFuncSig_DecimalIsFalseWithNull ScalarFuncSig = 3147 - // other + //other ScalarFuncSig_BitCount ScalarFuncSig = 3128 ScalarFuncSig_GetParamString ScalarFuncSig = 3131 ScalarFuncSig_GetVar ScalarFuncSig = 3132 @@ -469,7 +482,7 @@ const ( ScalarFuncSig_InTime ScalarFuncSig = 4005 ScalarFuncSig_InDuration ScalarFuncSig = 4006 ScalarFuncSig_InJson ScalarFuncSig = 4007 - // control + //control ScalarFuncSig_IfNullInt ScalarFuncSig = 4101 ScalarFuncSig_IfNullReal ScalarFuncSig = 4102 ScalarFuncSig_IfNullDecimal ScalarFuncSig = 4103 @@ -508,7 +521,7 @@ const ( ScalarFuncSig_Encode ScalarFuncSig = 4513 ScalarFuncSig_Decode ScalarFuncSig = 4514 ScalarFuncSig_SM3 ScalarFuncSig = 4515 - // info + //info ScalarFuncSig_Database ScalarFuncSig = 4521 ScalarFuncSig_FoundRows ScalarFuncSig = 4522 ScalarFuncSig_CurrentUser ScalarFuncSig = 4523 @@ -519,7 +532,7 @@ const ( ScalarFuncSig_Version ScalarFuncSig = 4528 ScalarFuncSig_TiDBVersion ScalarFuncSig = 4529 ScalarFuncSig_RowCount ScalarFuncSig = 4530 - // miscellaneous + //miscellaneous ScalarFuncSig_Sleep ScalarFuncSig = 4551 ScalarFuncSig_Lock ScalarFuncSig = 4552 ScalarFuncSig_ReleaseLock ScalarFuncSig = 4553 @@ -543,7 +556,7 @@ const ( ScalarFuncSig_IsUUID ScalarFuncSig = 4571 ScalarFuncSig_TiDBShard ScalarFuncSig = 4572 ScalarFuncSig_GroupingSig ScalarFuncSig = 4573 - // like + //like ScalarFuncSig_IlikeSig ScalarFuncSig = 4309 ScalarFuncSig_LikeSig ScalarFuncSig = 4310 ScalarFuncSig_RegexpSig ScalarFuncSig = 4311 @@ -556,7 +569,7 @@ const ( ScalarFuncSig_RegexpReplaceUTF8Sig ScalarFuncSig = 4318 ScalarFuncSig_RegexpSubstrSig ScalarFuncSig = 4319 ScalarFuncSig_RegexpSubstrUTF8Sig ScalarFuncSig = 4320 - // json + //json ScalarFuncSig_JsonExtractSig ScalarFuncSig = 5001 ScalarFuncSig_JsonUnquoteSig ScalarFuncSig = 5002 ScalarFuncSig_JsonTypeSig ScalarFuncSig = 5003 @@ -586,7 +599,7 @@ const ( ScalarFuncSig_JsonValidOthersSig ScalarFuncSig = 5027 ScalarFuncSig_JsonStorageFreeSig ScalarFuncSig = 5028 ScalarFuncSig_JsonMemberOfSig ScalarFuncSig = 5029 - // vector + //vector ScalarFuncSig_VecAsTextSig ScalarFuncSig = 5110 ScalarFuncSig_VecFromTextSig ScalarFuncSig = 5111 ScalarFuncSig_VecDimsSig ScalarFuncSig = 5112 @@ -626,7 +639,7 @@ const ( ScalarFuncSig_IfNullVectorFloat32 ScalarFuncSig = 5160 ScalarFuncSig_IfVectorFloat32 ScalarFuncSig = 5161 ScalarFuncSig_CaseWhenVectorFloat32 ScalarFuncSig = 5162 - // time + //time ScalarFuncSig_DateFormatSig ScalarFuncSig = 6001 ScalarFuncSig_DateLiteral ScalarFuncSig = 6002 ScalarFuncSig_DateDiff ScalarFuncSig = 6003 @@ -1490,6 +1503,7 @@ var ScalarFuncSig_name = map[int32]string{ 7075: "GreatestDate", 7076: "LeastDate", } + var ScalarFuncSig_value = map[string]int32{ "Unspecified": 0, "CastIntAsInt": 1, @@ -2129,9 +2143,11 @@ func (x ScalarFuncSig) Enum() *ScalarFuncSig { *p = x return p } + func (x ScalarFuncSig) String() string { return proto.EnumName(ScalarFuncSig_name, int32(x)) } + func (x *ScalarFuncSig) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(ScalarFuncSig_value, data, "ScalarFuncSig") if err != nil { @@ -2140,7 +2156,10 @@ func (x *ScalarFuncSig) UnmarshalJSON(data []byte) error { *x = ScalarFuncSig(value) return nil } -func (ScalarFuncSig) EnumDescriptor() ([]byte, []int) { return fileDescriptorExpression, []int{1} } + +func (ScalarFuncSig) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_fcc7550768b3bd34, []int{1} +} type AggFunctionMode int32 @@ -2159,6 +2178,7 @@ var AggFunctionMode_name = map[int32]string{ 3: "Partial2Mode", 4: "DedupMode", } + var AggFunctionMode_value = map[string]int32{ "CompleteMode": 0, "FinalMode": 1, @@ -2172,9 +2192,11 @@ func (x AggFunctionMode) Enum() *AggFunctionMode { *p = x return p } + func (x AggFunctionMode) String() string { return proto.EnumName(AggFunctionMode_name, int32(x)) } + func (x *AggFunctionMode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(AggFunctionMode_value, data, "AggFunctionMode") if err != nil { @@ -2183,24 +2205,54 @@ func (x *AggFunctionMode) UnmarshalJSON(data []byte) error { *x = AggFunctionMode(value) return nil } -func (AggFunctionMode) EnumDescriptor() ([]byte, []int) { return fileDescriptorExpression, []int{2} } + +func (AggFunctionMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_fcc7550768b3bd34, []int{2} +} type FieldType struct { - Tp int32 `protobuf:"varint,1,opt,name=tp" json:"tp"` - Flag uint32 `protobuf:"varint,2,opt,name=flag" json:"flag"` - Flen int32 `protobuf:"varint,3,opt,name=flen" json:"flen"` - Decimal int32 `protobuf:"varint,4,opt,name=decimal" json:"decimal"` - Collate int32 `protobuf:"varint,5,opt,name=collate" json:"collate"` - Charset string `protobuf:"bytes,6,opt,name=charset" json:"charset"` - Elems []string `protobuf:"bytes,7,rep,name=elems" json:"elems,omitempty"` - Array bool `protobuf:"varint,8,opt,name=array" json:"array"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *FieldType) Reset() { *m = FieldType{} } -func (m *FieldType) String() string { return proto.CompactTextString(m) } -func (*FieldType) ProtoMessage() {} -func (*FieldType) Descriptor() ([]byte, []int) { return fileDescriptorExpression, []int{0} } + Tp int32 `protobuf:"varint,1,opt,name=tp" json:"tp"` + Flag uint32 `protobuf:"varint,2,opt,name=flag" json:"flag"` + Flen int32 `protobuf:"varint,3,opt,name=flen" json:"flen"` + Decimal int32 `protobuf:"varint,4,opt,name=decimal" json:"decimal"` + Collate int32 `protobuf:"varint,5,opt,name=collate" json:"collate"` + Charset string `protobuf:"bytes,6,opt,name=charset" json:"charset"` + Elems []string `protobuf:"bytes,7,rep,name=elems" json:"elems,omitempty"` + Array bool `protobuf:"varint,8,opt,name=array" json:"array"` +} + +func (m *FieldType) Reset() { *m = FieldType{} } +func (m *FieldType) String() string { return proto.CompactTextString(m) } +func (*FieldType) ProtoMessage() {} +func (*FieldType) Descriptor() ([]byte, []int) { + return fileDescriptor_fcc7550768b3bd34, []int{0} +} +func (m *FieldType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FieldType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FieldType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FieldType) XXX_Merge(src proto.Message) { + xxx_messageInfo_FieldType.Merge(m, src) +} +func (m *FieldType) XXX_Size() int { + return m.Size() +} +func (m *FieldType) XXX_DiscardUnknown() { + xxx_messageInfo_FieldType.DiscardUnknown(m) +} + +var xxx_messageInfo_FieldType proto.InternalMessageInfo func (m *FieldType) GetTp() int32 { if m != nil { @@ -2260,22 +2312,49 @@ func (m *FieldType) GetArray() bool { // Evaluators should implement evaluation functions for every expression type. type Expr struct { - Tp ExprType `protobuf:"varint,1,opt,name=tp,enum=tipb.ExprType" json:"tp"` - Val []byte `protobuf:"bytes,2,opt,name=val" json:"val,omitempty"` - Children []*Expr `protobuf:"bytes,3,rep,name=children" json:"children,omitempty"` - RpnArgsLen *uint32 `protobuf:"varint,6,opt,name=rpn_args_len,json=rpnArgsLen" json:"rpn_args_len,omitempty"` - Sig ScalarFuncSig `protobuf:"varint,4,opt,name=sig,enum=tipb.ScalarFuncSig" json:"sig"` - FieldType *FieldType `protobuf:"bytes,5,opt,name=field_type,json=fieldType" json:"field_type,omitempty"` - HasDistinct bool `protobuf:"varint,7,opt,name=has_distinct,json=hasDistinct" json:"has_distinct"` - OrderBy []*ByItem `protobuf:"bytes,8,rep,name=order_by,json=orderBy" json:"order_by,omitempty"` - AggFuncMode *AggFunctionMode `protobuf:"varint,9,opt,name=aggFuncMode,enum=tipb.AggFunctionMode" json:"aggFuncMode,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Expr) Reset() { *m = Expr{} } -func (m *Expr) String() string { return proto.CompactTextString(m) } -func (*Expr) ProtoMessage() {} -func (*Expr) Descriptor() ([]byte, []int) { return fileDescriptorExpression, []int{1} } + Tp ExprType `protobuf:"varint,1,opt,name=tp,enum=tipb.ExprType" json:"tp"` + Val []byte `protobuf:"bytes,2,opt,name=val" json:"val,omitempty"` + Children []*Expr `protobuf:"bytes,3,rep,name=children" json:"children,omitempty"` + RpnArgsLen *uint32 `protobuf:"varint,6,opt,name=rpn_args_len,json=rpnArgsLen" json:"rpn_args_len,omitempty"` + Sig ScalarFuncSig `protobuf:"varint,4,opt,name=sig,enum=tipb.ScalarFuncSig" json:"sig"` + FieldType *FieldType `protobuf:"bytes,5,opt,name=field_type,json=fieldType" json:"field_type,omitempty"` + HasDistinct bool `protobuf:"varint,7,opt,name=has_distinct,json=hasDistinct" json:"has_distinct"` + OrderBy []*ByItem `protobuf:"bytes,8,rep,name=order_by,json=orderBy" json:"order_by,omitempty"` + AggFuncMode *AggFunctionMode `protobuf:"varint,9,opt,name=aggFuncMode,enum=tipb.AggFunctionMode" json:"aggFuncMode,omitempty"` +} + +func (m *Expr) Reset() { *m = Expr{} } +func (m *Expr) String() string { return proto.CompactTextString(m) } +func (*Expr) ProtoMessage() {} +func (*Expr) Descriptor() ([]byte, []int) { + return fileDescriptor_fcc7550768b3bd34, []int{1} +} +func (m *Expr) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Expr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Expr.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Expr) XXX_Merge(src proto.Message) { + xxx_messageInfo_Expr.Merge(m, src) +} +func (m *Expr) XXX_Size() int { + return m.Size() +} +func (m *Expr) XXX_DiscardUnknown() { + xxx_messageInfo_Expr.DiscardUnknown(m) +} + +var xxx_messageInfo_Expr proto.InternalMessageInfo func (m *Expr) GetTp() ExprType { if m != nil { @@ -2344,14 +2423,41 @@ func (m *Expr) GetAggFuncMode() AggFunctionMode { // https://en.wikipedia.org/wiki/Reverse_Polish_notation type RpnExpr struct { // All children fields in exprs should be empty. - Exprs []*Expr `protobuf:"bytes,1,rep,name=exprs" json:"exprs,omitempty"` - XXX_unrecognized []byte `json:"-"` + Exprs []*Expr `protobuf:"bytes,1,rep,name=exprs" json:"exprs,omitempty"` +} + +func (m *RpnExpr) Reset() { *m = RpnExpr{} } +func (m *RpnExpr) String() string { return proto.CompactTextString(m) } +func (*RpnExpr) ProtoMessage() {} +func (*RpnExpr) Descriptor() ([]byte, []int) { + return fileDescriptor_fcc7550768b3bd34, []int{2} +} +func (m *RpnExpr) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpnExpr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpnExpr.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpnExpr) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpnExpr.Merge(m, src) +} +func (m *RpnExpr) XXX_Size() int { + return m.Size() +} +func (m *RpnExpr) XXX_DiscardUnknown() { + xxx_messageInfo_RpnExpr.DiscardUnknown(m) } -func (m *RpnExpr) Reset() { *m = RpnExpr{} } -func (m *RpnExpr) String() string { return proto.CompactTextString(m) } -func (*RpnExpr) ProtoMessage() {} -func (*RpnExpr) Descriptor() ([]byte, []int) { return fileDescriptorExpression, []int{2} } +var xxx_messageInfo_RpnExpr proto.InternalMessageInfo func (m *RpnExpr) GetExprs() []*Expr { if m != nil { @@ -2362,16 +2468,43 @@ func (m *RpnExpr) GetExprs() []*Expr { // ByItem type for group by and order by. type ByItem struct { - Expr *Expr `protobuf:"bytes,1,opt,name=expr" json:"expr,omitempty"` - RpnExpr *RpnExpr `protobuf:"bytes,3,opt,name=rpn_expr,json=rpnExpr" json:"rpn_expr,omitempty"` - Desc bool `protobuf:"varint,2,opt,name=desc" json:"desc"` - XXX_unrecognized []byte `json:"-"` + Expr *Expr `protobuf:"bytes,1,opt,name=expr" json:"expr,omitempty"` + RpnExpr *RpnExpr `protobuf:"bytes,3,opt,name=rpn_expr,json=rpnExpr" json:"rpn_expr,omitempty"` + Desc bool `protobuf:"varint,2,opt,name=desc" json:"desc"` +} + +func (m *ByItem) Reset() { *m = ByItem{} } +func (m *ByItem) String() string { return proto.CompactTextString(m) } +func (*ByItem) ProtoMessage() {} +func (*ByItem) Descriptor() ([]byte, []int) { + return fileDescriptor_fcc7550768b3bd34, []int{3} +} +func (m *ByItem) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ByItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ByItem.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ByItem) XXX_Merge(src proto.Message) { + xxx_messageInfo_ByItem.Merge(m, src) +} +func (m *ByItem) XXX_Size() int { + return m.Size() +} +func (m *ByItem) XXX_DiscardUnknown() { + xxx_messageInfo_ByItem.DiscardUnknown(m) } -func (m *ByItem) Reset() { *m = ByItem{} } -func (m *ByItem) String() string { return proto.CompactTextString(m) } -func (*ByItem) ProtoMessage() {} -func (*ByItem) Descriptor() ([]byte, []int) { return fileDescriptorExpression, []int{3} } +var xxx_messageInfo_ByItem proto.InternalMessageInfo func (m *ByItem) GetExpr() *Expr { if m != nil { @@ -2395,18 +2528,392 @@ func (m *ByItem) GetDesc() bool { } func init() { + proto.RegisterEnum("tipb.ExprType", ExprType_name, ExprType_value) + proto.RegisterEnum("tipb.ScalarFuncSig", ScalarFuncSig_name, ScalarFuncSig_value) + proto.RegisterEnum("tipb.AggFunctionMode", AggFunctionMode_name, AggFunctionMode_value) proto.RegisterType((*FieldType)(nil), "tipb.FieldType") proto.RegisterType((*Expr)(nil), "tipb.Expr") proto.RegisterType((*RpnExpr)(nil), "tipb.RpnExpr") proto.RegisterType((*ByItem)(nil), "tipb.ByItem") - proto.RegisterEnum("tipb.ExprType", ExprType_name, ExprType_value) - proto.RegisterEnum("tipb.ScalarFuncSig", ScalarFuncSig_name, ScalarFuncSig_value) - proto.RegisterEnum("tipb.AggFunctionMode", AggFunctionMode_name, AggFunctionMode_value) } + +func init() { proto.RegisterFile("expression.proto", fileDescriptor_fcc7550768b3bd34) } + +var fileDescriptor_fcc7550768b3bd34 = []byte{ + // 5859 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x7b, 0x67, 0x74, 0x1b, 0xc7, + 0xb9, 0xb6, 0xa0, 0x62, 0x51, 0xab, 0x36, 0x5e, 0x4b, 0x26, 0xac, 0x38, 0x2c, 0x66, 0xbe, 0x8f, + 0xfc, 0x9c, 0xef, 0x12, 0x32, 0xed, 0x90, 0xb9, 0xe7, 0xdc, 0x06, 0xb1, 0x19, 0xb9, 0x24, 0x45, + 0x11, 0x24, 0x9d, 0xfb, 0xcb, 0x67, 0x09, 0x0c, 0xc1, 0x8d, 0x81, 0x5d, 0x78, 0x77, 0x20, 0x91, + 0xb9, 0xe5, 0xb8, 0xf7, 0x22, 0x3b, 0x2e, 0x72, 0x57, 0x75, 0x4d, 0xef, 0xee, 0x35, 0xb1, 0xe4, + 0x92, 0x38, 0x71, 0x93, 0xbb, 0x2d, 0xd9, 0x71, 0x4f, 0xec, 0xb8, 0xd7, 0xdc, 0xf3, 0x3e, 0x53, + 0xb0, 0x0b, 0x32, 0xbf, 0xb8, 0xf3, 0xbc, 0xed, 0x99, 0x77, 0xde, 0x99, 0x9d, 0x99, 0x05, 0x2d, + 0xc6, 0xa7, 0xcb, 0x01, 0x0f, 0x43, 0xd7, 0xf7, 0xda, 0xcb, 0x81, 0x2f, 0x7c, 0x7b, 0xa1, 0x70, + 0xcb, 0x13, 0x6b, 0x56, 0x15, 0xfc, 0x82, 0x0f, 0x20, 0x45, 0x4f, 0x52, 0xb6, 0x66, 0x65, 0x50, + 0x09, 0x05, 0x1e, 0x25, 0x70, 0xd8, 0xdb, 0x09, 0x6b, 0x49, 0x9f, 0xcb, 0x8b, 0xf9, 0xd1, 0x99, + 0x32, 0xb7, 0x57, 0x59, 0xf3, 0x45, 0x39, 0x99, 0x68, 0x4a, 0xb4, 0x2d, 0x5a, 0xb7, 0x70, 0xf7, + 0xf3, 0x8d, 0xf3, 0x46, 0xe6, 0x8b, 0xb2, 0x9d, 0xb4, 0x16, 0x4e, 0x16, 0x9d, 0x42, 0x72, 0x7e, + 0x53, 0xa2, 0x6d, 0xb9, 0xc2, 0x81, 0x48, 0x09, 0xf7, 0x92, 0x0b, 0x22, 0x16, 0x40, 0xec, 0x06, + 0x6b, 0x71, 0x9e, 0xe7, 0xdc, 0x92, 0x53, 0x4c, 0x2e, 0x8c, 0x08, 0x35, 0x48, 0xf2, 0x9c, 0x5f, + 0x2c, 0x3a, 0x82, 0x27, 0x17, 0x45, 0xe5, 0x0a, 0x84, 0x7c, 0xca, 0x09, 0x42, 0x2e, 0x92, 0x07, + 0x34, 0x25, 0xda, 0x96, 0x18, 0xb9, 0x04, 0xed, 0x35, 0xd6, 0x22, 0x5e, 0xe4, 0xa5, 0x30, 0xb9, + 0xb8, 0x69, 0x81, 0x91, 0x4a, 0x88, 0x64, 0x4e, 0x10, 0x38, 0x33, 0xc9, 0xba, 0xa6, 0x44, 0x5b, + 0x9d, 0x96, 0x01, 0x3a, 0xec, 0x9d, 0xf9, 0xd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, 0x4d, 0xf4, 0x2a, 0x1a, 0xe0, 0x72, 0x39, 0x67, 0x9f, 0x37, 0xe1, 0x4d, 0xc5, 0xd5, + 0x52, 0xca, 0xbe, 0x80, 0x05, 0xda, 0xda, 0xf3, 0x97, 0x4d, 0x44, 0x0a, 0x90, 0x72, 0xfb, 0xb7, + 0xaa, 0x11, 0x7c, 0x9e, 0xd0, 0x4c, 0x1a, 0x19, 0x4f, 0xf0, 0x60, 0xa3, 0x53, 0x24, 0xb7, 0x27, + 0x36, 0x93, 0x1b, 0x8d, 0xc0, 0xf3, 0x49, 0xcd, 0xf4, 0x16, 0xed, 0xc7, 0x98, 0x9c, 0x94, 0xa0, + 0x8d, 0x40, 0xbf, 0x1c, 0x94, 0x93, 0xb1, 0xc3, 0xe9, 0x37, 0xa3, 0x72, 0x4a, 0x82, 0x18, 0xf6, + 0xeb, 0x61, 0x39, 0x55, 0xe9, 0x22, 0xd2, 0x69, 0x09, 0x7a, 0x73, 0xf6, 0x57, 0x07, 0xe6, 0x74, + 0x25, 0x45, 0xf6, 0xce, 0xc0, 0xde, 0xa8, 0x77, 0x03, 0x85, 0x38, 0x07, 0x82, 0xde, 0x0d, 0x08, + 0x71, 0x2e, 0x42, 0xf4, 0x6e, 0xd0, 0x21, 0xce, 0x43, 0x88, 0xde, 0x0d, 0x2a, 0xc4, 0xf9, 0x4a, + 0x17, 0x21, 0x36, 0x23, 0x44, 0xef, 0x06, 0x13, 0xe2, 0x02, 0x25, 0x45, 0x88, 0x0b, 0x11, 0x62, + 0x08, 0xbd, 0xb8, 0x04, 0x82, 0x21, 0xd9, 0x0b, 0xb9, 0x4f, 0x1b, 0x32, 0xbd, 0xd8, 0x82, 0x10, + 0x43, 0xba, 0x17, 0x97, 0x29, 0x5d, 0x84, 0xb8, 0x1c, 0x21, 0x86, 0xaa, 0xbd, 0xb8, 0x42, 0x49, + 0x11, 0xe2, 0x4a, 0xe9, 0xa9, 0x52, 0x2c, 0xca, 0x9e, 0x6c, 0x95, 0xda, 0x68, 0x23, 0xd4, 0xb6, + 0x04, 0xed, 0x84, 0x24, 0xa0, 0xc3, 0x6d, 0xa7, 0xcd, 0xc0, 0x32, 0x89, 0xa9, 0x90, 0x3b, 0x22, + 0x76, 0x08, 0xbb, 0x33, 0x41, 0x25, 0xa2, 0xec, 0x74, 0xe8, 0x5d, 0x11, 0x2d, 0x84, 0xbf, 0x16, + 0xc4, 0x87, 0x8b, 0x15, 0xb9, 0x3e, 0xed, 0x4e, 0x60, 0x3b, 0x54, 0xac, 0x98, 0x45, 0x68, 0x4f, + 0x82, 0x36, 0x6e, 0x84, 0x10, 0xbb, 0x07, 0xc1, 0x76, 0xd0, 0xf5, 0x94, 0xfe, 0x43, 0x20, 0x82, + 0xb6, 0x36, 0x78, 0x18, 0x1e, 0x01, 0x91, 0xc5, 0xef, 0xa5, 0x46, 0xa5, 0x28, 0xdc, 0x72, 0x71, + 0x06, 0x46, 0x8f, 0x24, 0xa8, 0xa4, 0x35, 0xa4, 0xed, 0xfe, 0x80, 0xd0, 0x1a, 0x25, 0xd3, 0x3f, + 0x82, 0x6c, 0x8f, 0xbb, 0xd1, 0xcd, 0xcb, 0xc5, 0xea, 0x51, 0xa4, 0x42, 0x02, 0xda, 0xec, 0xb1, + 0x84, 0xaa, 0x3d, 0x09, 0x93, 0xdd, 0xe3, 0x09, 0x5a, 0x95, 0x0c, 0xa4, 0x35, 0x9f, 0x40, 0x4f, + 0x06, 0xfd, 0x3c, 0x7c, 0x3d, 0x09, 0xe7, 0x83, 0x7e, 0x5e, 0x8b, 0xf7, 0x62, 0x54, 0x06, 0xfd, + 0x3c, 0xb9, 0x78, 0x2a, 0x41, 0x5b, 0xcd, 0x08, 0x99, 0x31, 0x2f, 0x74, 0x0b, 0x1e, 0xcf, 0xb3, + 0xa7, 0x13, 0xf6, 0xa1, 0x56, 0xbd, 0xca, 0x87, 0x46, 0x8d, 0xf4, 0x99, 0x84, 0xbd, 0xc6, 0x5a, + 0x5d, 0x23, 0xcd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a, 0xc9, 0x03, 0x49, + 0x7a, 0x0f, 0xc5, 0x59, 0x1b, 0xe1, 0x83, 0x3a, 0xb3, 0xf2, 0x46, 0xed, 0xd7, 0xe8, 0x61, 0x3f, + 0x17, 0xc3, 0x4e, 0xe0, 0x94, 0xd4, 0x46, 0xea, 0xd6, 0x24, 0xf6, 0x98, 0x5c, 0x8c, 0x3b, 0x01, + 0xbb, 0x0d, 0x8d, 0x11, 0x7f, 0x13, 0x25, 0xfa, 0x76, 0x34, 0xb2, 0x52, 0x72, 0x07, 0x92, 0x8a, + 0x1b, 0x1e, 0x53, 0x47, 0x77, 0xc2, 0x9f, 0xc2, 0xf4, 0x96, 0xeb, 0xae, 0xa4, 0xb9, 0xe2, 0x43, + 0x65, 0xde, 0x8d, 0x8c, 0xc9, 0x36, 0xca, 0xf7, 0x9e, 0x08, 0x80, 0x32, 0xbd, 0x17, 0x45, 0x25, + 0x01, 0x45, 0xea, 0xbe, 0x88, 0x0e, 0x76, 0x77, 0xbf, 0x49, 0xd2, 0x7a, 0x93, 0xf1, 0xc8, 0xe3, + 0xb6, 0x46, 0xe2, 0x95, 0xf1, 0xe4, 0xfc, 0x68, 0x94, 0xd5, 0xa0, 0x39, 0xc9, 0xfb, 0xae, 0x8c, + 0xa7, 0x1c, 0xed, 0x54, 0xba, 0x70, 0xb2, 0xab, 0x51, 0x16, 0x81, 0xe1, 0x7a, 0xad, 0x92, 0x62, + 0x6b, 0x78, 0x9d, 0xf4, 0x34, 0x49, 0x99, 0xa3, 0x30, 0xa7, 0x36, 0x41, 0x1b, 0x6d, 0x84, 0x3a, + 0xad, 0x89, 0x52, 0x20, 0x01, 0x1d, 0xee, 0x74, 0x9c, 0x28, 0x24, 0xa6, 0x42, 0x9e, 0x11, 0xb1, + 0x43, 0xd8, 0x33, 0x71, 0x78, 0x51, 0x76, 0x3a, 0xf4, 0x59, 0x4d, 0xe8, 0xd0, 0x24, 0x45, 0x3a, + 0xbb, 0x09, 0x34, 0x26, 0x11, 0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17, 0x9d, 0x1c, 0x9c, 0x3f, 0xd7, 0x8c, 0x2d, 0x63, 0x14, + 0xd6, 0x16, 0xcf, 0x37, 0x53, 0x89, 0x28, 0xbe, 0x95, 0x89, 0x50, 0x06, 0x78, 0xa1, 0x59, 0xbe, + 0xc4, 0xaa, 0xa8, 0xd6, 0x7f, 0x11, 0x7c, 0x68, 0x59, 0xe8, 0x9d, 0x16, 0x81, 0x93, 0xa3, 0x53, + 0x04, 0x3b, 0xb3, 0x55, 0x83, 0x63, 0xde, 0xf1, 0x15, 0x5f, 0x20, 0xe8, 0x59, 0xad, 0x94, 0x38, + 0x02, 0x47, 0x67, 0xca, 0x40, 0xce, 0x6e, 0xd5, 0xdb, 0x8b, 0x2c, 0x87, 0xdd, 0x39, 0xad, 0xfa, + 0x53, 0x8a, 0x9c, 0x10, 0x84, 0x9d, 0x6b, 0x7c, 0x45, 0x3a, 0x70, 0x9e, 0x51, 0x1c, 0xe1, 0x25, + 0x7f, 0x23, 0xb0, 0xf3, 0x5b, 0xf5, 0xa7, 0x99, 0x41, 0x1e, 0x14, 0x00, 0x6d, 0x6e, 0x8d, 0x7f, + 0x9a, 0x21, 0xec, 0x82, 0xd6, 0xd8, 0x17, 0x1c, 0x82, 0x2e, 0x6c, 0xa5, 0x2c, 0x11, 0x34, 0xee, + 0x14, 0xdd, 0x3c, 0x08, 0xb9, 0x05, 0xf6, 0xbd, 0x56, 0x4a, 0x05, 0xb5, 0xba, 0x7d, 0x4f, 0x38, + 0xae, 0x17, 0x12, 0x7a, 0x51, 0x2b, 0xe5, 0xba, 0xfa, 0x05, 0xa8, 0x5c, 0xe6, 0x72, 0x2f, 0x74, + 0x71, 0x5c, 0x50, 0xed, 0xc1, 0x25, 0xad, 0x34, 0x94, 0x86, 0xd8, 0xb0, 0x23, 0x72, 0x53, 0x84, + 0x5f, 0xda, 0x4a, 0xa3, 0x50, 0xc5, 0x03, 0x1e, 0xf2, 0x40, 0xf6, 0x65, 0x4b, 0x2b, 0xe5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0xc3, 0xb9, 0xb5, 0xb2, 0xe6, 0x1f, 0x97, + 0xf0, 0x6f, 0x10, 0x7e, 0xa9, 0x5c, 0xe4, 0x82, 0xe3, 0x2e, 0x61, 0x9e, 0xbd, 0x1c, 0x6b, 0x83, + 0x53, 0x44, 0x33, 0x41, 0x0a, 0xc3, 0x4e, 0x20, 0x5c, 0xa7, 0x78, 0x04, 0x90, 0xf9, 0x11, 0xa4, + 0x03, 0xc8, 0x02, 0x32, 0xe9, 0xe1, 0xf9, 0x4a, 0x19, 0xcd, 0x85, 0xeb, 0xfe, 0x71, 0xef, 0xf5, + 0x75, 0x89, 0xdd, 0xfb, 0x1a, 0x12, 0x8f, 0xec, 0x6b, 0x48, 0xbc, 0xb8, 0xaf, 0x21, 0xb1, 0x79, + 0x7f, 0xc3, 0xbc, 0x2d, 0xfb, 0x1b, 0xe6, 0x3d, 0xb2, 0xbf, 0x61, 0xde, 0xde, 0xfd, 0x0d, 0xf3, + 0xac, 0xd5, 0x39, 0xbf, 0xd4, 0x5e, 0x76, 0xbd, 0x42, 0xce, 0x29, 0xb7, 0x0b, 0x37, 0x3f, 0x81, + 0x7f, 0x64, 0x1a, 0x4e, 0xfc, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4b, 0xce, 0xb0, 0xc7, 0xdd, + 0x37, 0x00, 0x00, +} + func (m *FieldType) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2414,62 +2921,59 @@ func (m *FieldType) Marshal() (dAtA []byte, err error) { } func (m *FieldType) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FieldType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintExpression(dAtA, i, uint64(m.Tp)) - dAtA[i] = 0x10 - i++ - i = encodeVarintExpression(dAtA, i, uint64(m.Flag)) - dAtA[i] = 0x18 - i++ - i = encodeVarintExpression(dAtA, i, uint64(m.Flen)) - dAtA[i] = 0x20 - i++ - i = encodeVarintExpression(dAtA, i, uint64(m.Decimal)) - dAtA[i] = 0x28 - i++ - i = encodeVarintExpression(dAtA, i, uint64(m.Collate)) - dAtA[i] = 0x32 - i++ - i = encodeVarintExpression(dAtA, i, uint64(len(m.Charset))) - i += copy(dAtA[i:], m.Charset) - if len(m.Elems) > 0 { - for _, s := range m.Elems { - dAtA[i] = 0x3a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - dAtA[i] = 0x40 - i++ + i-- if m.Array { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + i-- + dAtA[i] = 0x40 + if len(m.Elems) > 0 { + for iNdEx := len(m.Elems) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Elems[iNdEx]) + copy(dAtA[i:], m.Elems[iNdEx]) + i = encodeVarintExpression(dAtA, i, uint64(len(m.Elems[iNdEx]))) + i-- + dAtA[i] = 0x3a + } } - return i, nil + i -= len(m.Charset) + copy(dAtA[i:], m.Charset) + i = encodeVarintExpression(dAtA, i, uint64(len(m.Charset))) + i-- + dAtA[i] = 0x32 + i = encodeVarintExpression(dAtA, i, uint64(m.Collate)) + i-- + dAtA[i] = 0x28 + i = encodeVarintExpression(dAtA, i, uint64(m.Decimal)) + i-- + dAtA[i] = 0x20 + i = encodeVarintExpression(dAtA, i, uint64(m.Flen)) + i-- + dAtA[i] = 0x18 + i = encodeVarintExpression(dAtA, i, uint64(m.Flag)) + i-- + dAtA[i] = 0x10 + i = encodeVarintExpression(dAtA, i, uint64(m.Tp)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *Expr) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2477,84 +2981,93 @@ func (m *Expr) Marshal() (dAtA []byte, err error) { } func (m *Expr) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Expr) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintExpression(dAtA, i, uint64(m.Tp)) - if m.Val != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintExpression(dAtA, i, uint64(len(m.Val))) - i += copy(dAtA[i:], m.Val) + if m.AggFuncMode != nil { + i = encodeVarintExpression(dAtA, i, uint64(*m.AggFuncMode)) + i-- + dAtA[i] = 0x48 } - if len(m.Children) > 0 { - for _, msg := range m.Children { - dAtA[i] = 0x1a - i++ - i = encodeVarintExpression(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.OrderBy) > 0 { + for iNdEx := len(m.OrderBy) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OrderBy[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExpression(dAtA, i, uint64(size)) } - i += n - } - } - dAtA[i] = 0x20 - i++ - i = encodeVarintExpression(dAtA, i, uint64(m.Sig)) - if m.FieldType != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintExpression(dAtA, i, uint64(m.FieldType.Size())) - n1, err := m.FieldType.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + i-- + dAtA[i] = 0x42 } - i += n1 - } - if m.RpnArgsLen != nil { - dAtA[i] = 0x30 - i++ - i = encodeVarintExpression(dAtA, i, uint64(*m.RpnArgsLen)) } - dAtA[i] = 0x38 - i++ + i-- if m.HasDistinct { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - if len(m.OrderBy) > 0 { - for _, msg := range m.OrderBy { - dAtA[i] = 0x42 - i++ - i = encodeVarintExpression(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + i-- + dAtA[i] = 0x38 + if m.RpnArgsLen != nil { + i = encodeVarintExpression(dAtA, i, uint64(*m.RpnArgsLen)) + i-- + dAtA[i] = 0x30 + } + if m.FieldType != nil { + { + size, err := m.FieldType.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintExpression(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x2a } - if m.AggFuncMode != nil { - dAtA[i] = 0x48 - i++ - i = encodeVarintExpression(dAtA, i, uint64(*m.AggFuncMode)) + i = encodeVarintExpression(dAtA, i, uint64(m.Sig)) + i-- + dAtA[i] = 0x20 + if len(m.Children) > 0 { + for iNdEx := len(m.Children) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Children[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExpression(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + if m.Val != nil { + i -= len(m.Val) + copy(dAtA[i:], m.Val) + i = encodeVarintExpression(dAtA, i, uint64(len(m.Val))) + i-- + dAtA[i] = 0x12 } - return i, nil + i = encodeVarintExpression(dAtA, i, uint64(m.Tp)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *RpnExpr) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2562,32 +3075,36 @@ func (m *RpnExpr) Marshal() (dAtA []byte, err error) { } func (m *RpnExpr) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpnExpr) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Exprs) > 0 { - for _, msg := range m.Exprs { - dAtA[i] = 0xa - i++ - i = encodeVarintExpression(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Exprs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Exprs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExpression(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + return len(dAtA) - i, nil } func (m *ByItem) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2595,54 +3112,65 @@ func (m *ByItem) Marshal() (dAtA []byte, err error) { } func (m *ByItem) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ByItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Expr != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintExpression(dAtA, i, uint64(m.Expr.Size())) - n2, err := m.Expr.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RpnExpr != nil { + { + size, err := m.RpnExpr.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExpression(dAtA, i, uint64(size)) } - i += n2 + i-- + dAtA[i] = 0x1a } - dAtA[i] = 0x10 - i++ + i-- if m.Desc { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - if m.RpnExpr != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintExpression(dAtA, i, uint64(m.RpnExpr.Size())) - n3, err := m.RpnExpr.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + i-- + dAtA[i] = 0x10 + if m.Expr != nil { + { + size, err := m.Expr.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintExpression(dAtA, i, uint64(size)) } - i += n3 - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func encodeVarintExpression(dAtA []byte, offset int, v uint64) int { + offset -= sovExpression(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *FieldType) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovExpression(uint64(m.Tp)) @@ -2659,13 +3187,13 @@ func (m *FieldType) Size() (n int) { } } n += 2 - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Expr) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovExpression(uint64(m.Tp)) @@ -2697,13 +3225,13 @@ func (m *Expr) Size() (n int) { if m.AggFuncMode != nil { n += 1 + sovExpression(uint64(*m.AggFuncMode)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RpnExpr) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Exprs) > 0 { @@ -2712,13 +3240,13 @@ func (m *RpnExpr) Size() (n int) { n += 1 + l + sovExpression(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ByItem) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Expr != nil { @@ -2730,21 +3258,11 @@ func (m *ByItem) Size() (n int) { l = m.RpnExpr.Size() n += 1 + l + sovExpression(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovExpression(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozExpression(x uint64) (n int) { return sovExpression(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -2764,7 +3282,7 @@ func (m *FieldType) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2792,7 +3310,7 @@ func (m *FieldType) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Tp |= (int32(b) & 0x7F) << shift + m.Tp |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -2811,7 +3329,7 @@ func (m *FieldType) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Flag |= (uint32(b) & 0x7F) << shift + m.Flag |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -2830,7 +3348,7 @@ func (m *FieldType) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Flen |= (int32(b) & 0x7F) << shift + m.Flen |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -2849,7 +3367,7 @@ func (m *FieldType) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Decimal |= (int32(b) & 0x7F) << shift + m.Decimal |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -2868,7 +3386,7 @@ func (m *FieldType) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Collate |= (int32(b) & 0x7F) << shift + m.Collate |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -2887,7 +3405,7 @@ func (m *FieldType) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2897,6 +3415,9 @@ func (m *FieldType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExpression } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExpression + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2916,7 +3437,7 @@ func (m *FieldType) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2926,6 +3447,9 @@ func (m *FieldType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExpression } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExpression + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2945,7 +3469,7 @@ func (m *FieldType) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2957,13 +3481,12 @@ func (m *FieldType) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExpression } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2988,7 +3511,7 @@ func (m *Expr) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3016,7 +3539,7 @@ func (m *Expr) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Tp |= (ExprType(b) & 0x7F) << shift + m.Tp |= ExprType(b&0x7F) << shift if b < 0x80 { break } @@ -3035,7 +3558,7 @@ func (m *Expr) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3044,6 +3567,9 @@ func (m *Expr) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExpression } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthExpression + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3066,7 +3592,7 @@ func (m *Expr) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3075,6 +3601,9 @@ func (m *Expr) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExpression } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExpression + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3097,7 +3626,7 @@ func (m *Expr) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Sig |= (ScalarFuncSig(b) & 0x7F) << shift + m.Sig |= ScalarFuncSig(b&0x7F) << shift if b < 0x80 { break } @@ -3116,7 +3645,7 @@ func (m *Expr) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3125,6 +3654,9 @@ func (m *Expr) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExpression } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExpression + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3149,7 +3681,7 @@ func (m *Expr) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint32(b) & 0x7F) << shift + v |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -3169,7 +3701,7 @@ func (m *Expr) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3189,7 +3721,7 @@ func (m *Expr) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3198,6 +3730,9 @@ func (m *Expr) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExpression } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExpression + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3220,7 +3755,7 @@ func (m *Expr) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (AggFunctionMode(b) & 0x7F) << shift + v |= AggFunctionMode(b&0x7F) << shift if b < 0x80 { break } @@ -3232,13 +3767,12 @@ func (m *Expr) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExpression } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3263,7 +3797,7 @@ func (m *RpnExpr) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3291,7 +3825,7 @@ func (m *RpnExpr) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3300,6 +3834,9 @@ func (m *RpnExpr) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExpression } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExpression + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3314,13 +3851,12 @@ func (m *RpnExpr) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExpression } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3345,7 +3881,7 @@ func (m *ByItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3373,7 +3909,7 @@ func (m *ByItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3382,6 +3918,9 @@ func (m *ByItem) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExpression } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExpression + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3406,7 +3945,7 @@ func (m *ByItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3426,7 +3965,7 @@ func (m *ByItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3435,6 +3974,9 @@ func (m *ByItem) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExpression } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExpression + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3451,13 +3993,12 @@ func (m *ByItem) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthExpression } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3470,6 +4011,7 @@ func (m *ByItem) Unmarshal(dAtA []byte) error { func skipExpression(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -3501,10 +4043,8 @@ func skipExpression(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -3521,424 +4061,34 @@ func skipExpression(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthExpression } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowExpression - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipExpression(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupExpression + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthExpression + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthExpression = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowExpression = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthExpression = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowExpression = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupExpression = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("expression.proto", fileDescriptorExpression) } - -var fileDescriptorExpression = []byte{ - // 5838 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x7b, 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0f, 0xcc, 0x29, 0x4a, - 0x8a, 0xec, 0x9d, 0x8a, 0xbd, 0x51, 0xdf, 0x46, 0x0a, 0x71, 0x26, 0x04, 0x7d, 0x1b, 0x11, 0xe2, - 0x2c, 0x84, 0xe8, 0xdb, 0xa8, 0x43, 0x9c, 0x8d, 0x10, 0x7d, 0x1b, 0x55, 0x88, 0x73, 0x94, 0x2e, - 0x42, 0x9c, 0x8b, 0x10, 0x7d, 0x1b, 0x4d, 0x88, 0xf3, 0x94, 0x14, 0x21, 0xce, 0x47, 0x88, 0x61, - 0xf4, 0xe2, 0x22, 0x08, 0x86, 0x65, 0x2f, 0xe4, 0x3e, 0x6d, 0xd8, 0xf4, 0x62, 0x0b, 0x42, 0x0c, - 0xeb, 0x5e, 0x5c, 0xa2, 0x74, 0x11, 0xe2, 0x52, 0x84, 0x18, 0xae, 0xf7, 0xe2, 0x32, 0x25, 0x45, - 0x88, 0xcb, 0xa5, 0xa7, 0x5a, 0xb9, 0x2c, 0x7b, 0xb2, 0x55, 0x6a, 0xa3, 0x8d, 0x50, 0xdb, 0x12, - 0xb4, 0x13, 0x92, 0x80, 0x0e, 0xb7, 0x9d, 0x36, 0x03, 0xcb, 0x24, 0xa6, 0x42, 0xee, 0x88, 0xd8, - 0x21, 0xec, 0xce, 0x04, 0x95, 0x88, 0xb2, 0xd3, 0xa1, 0x77, 0x45, 0xb4, 0x10, 0xfe, 0x6a, 0x10, - 0x1f, 0x29, 0xd7, 0xe4, 0xfa, 0xb4, 0x3b, 0x81, 0xed, 0x50, 0xb9, 0x66, 0x16, 0xa1, 0x3d, 0x09, - 0xda, 0xb8, 0x11, 0x42, 0xec, 0xee, 0x07, 0xdb, 0x21, 0xd7, 0x53, 0xfa, 0x0f, 0x80, 0x08, 0xda, - 0xda, 0xe0, 0x41, 0x78, 0x04, 0x44, 0x16, 0x7f, 0x90, 0x1a, 0xb5, 0xb2, 0x70, 0xab, 0xe5, 0x19, - 0x18, 0x3d, 0x94, 0xa0, 0x92, 0xd6, 0x90, 0xb6, 0xfb, 0x23, 0x42, 0x6b, 0x94, 0x4c, 0xff, 0x04, - 0xb2, 0xbd, 0xee, 0x26, 0xb7, 0x28, 0x17, 0xab, 0x87, 0x91, 0x0a, 0x09, 0x68, 0xb3, 0x47, 0x12, - 0xaa, 0xf6, 0x24, 0x4c, 0x76, 0x8f, 0x26, 0x68, 0x55, 0x32, 0x90, 0xd6, 0x7c, 0x0c, 0x3d, 0x19, - 0xf2, 0x8b, 0xf0, 0xf5, 0x38, 0x9c, 0x0f, 0xf9, 0x45, 0x2d, 0x7e, 0x02, 0xa3, 0x32, 0xe4, 0x17, - 0xc9, 0xc5, 0x93, 0x09, 0xda, 0x6a, 0x46, 0xc8, 0x8c, 0x79, 0xa1, 0x5b, 0xf2, 0x78, 0x91, 0x3d, - 0x95, 0xb0, 0x0f, 0xb2, 0x9a, 0x54, 0x3e, 0x34, 0x6a, 0xa4, 0x4f, 0x27, 0xec, 0x35, 0xd6, 0xea, - 0x06, 0x69, 0x4e, 0xca, 0x9e, 0x89, 0xca, 0x72, 0x71, 0xbb, 0x67, 0x11, 0x2f, 0x26, 0x53, 0x56, - 0xcf, 0x25, 0xec, 0xaf, 0x58, 0x07, 0x48, 0x5a, 0xb3, 0xc2, 0x3d, 0x9f, 0xb0, 0x0f, 0xb4, 0x56, - 0xc5, 0x85, 0xca, 0xee, 0x85, 0x88, 0xa8, 0x21, 0xd8, 0x8b, 0x09, 0xbb, 0xc9, 0xb2, 0xa3, 0x22, - 0x65, 0xb3, 0x37, 0x61, 0x7f, 0xd5, 0x4a, 0xea, 0xa1, 0x9b, 0x15, 0xed, 0x25, 0x49, 0xa5, 0x41, - 0xac, 0x6c, 0x5f, 0x8e, 0x09, 0x1b, 0x22, 0xbe, 0x22, 0xc9, 0xc4, 0x84, 0xca, 0xee, 0xcf, 0x09, - 0xbb, 0xcd, 0x5a, 0xab, 0x45, 0xfd, 0x7e, 0x50, 0xa8, 0xdb, 0x19, 0xfb, 0x57,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, 0x00, 0x00, 0xff, 0xff, 0x89, 0x80, 0x6a, 0xe9, 0xcc, 0x37, 0x00, 0x00, -} diff --git a/go-tipb/metadata.pb.go b/go-tipb/metadata.pb.go index 6e411e58f..d38169ce9 100644 --- a/go-tipb/metadata.pb.go +++ b/go-tipb/metadata.pb.go @@ -5,14 +5,14 @@ package tipb import ( "fmt" + "io" + "math" - proto "github.com/golang/protobuf/proto" - - math "math" - + _ "github.com/gogo/protobuf/gogoproto" github_com_golang_protobuf_proto "github.com/golang/protobuf/proto" + proto "github.com/golang/protobuf/proto" - io "io" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. @@ -20,6 +20,12 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + type GroupingMode int32 const ( @@ -33,6 +39,7 @@ var GroupingMode_name = map[int32]string{ 2: "ModeNumericCmp", 3: "ModeNumericSet", } + var GroupingMode_value = map[string]int32{ "ModeBitAnd": 1, "ModeNumericCmp": 2, @@ -44,9 +51,11 @@ func (x GroupingMode) Enum() *GroupingMode { *p = x return p } + func (x GroupingMode) String() string { return proto.EnumName(GroupingMode_name, int32(x)) } + func (x *GroupingMode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(GroupingMode_value, data, "GroupingMode") if err != nil { @@ -55,17 +64,47 @@ func (x *GroupingMode) UnmarshalJSON(data []byte) error { *x = GroupingMode(value) return nil } -func (GroupingMode) EnumDescriptor() ([]byte, []int) { return fileDescriptorMetadata, []int{0} } + +func (GroupingMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_56d9f74966f40d04, []int{0} +} type InUnionMetadata struct { - InUnion bool `protobuf:"varint,1,req,name=in_union,json=inUnion" json:"in_union"` - XXX_unrecognized []byte `json:"-"` + InUnion bool `protobuf:"varint,1,req,name=in_union,json=inUnion" json:"in_union"` +} + +func (m *InUnionMetadata) Reset() { *m = InUnionMetadata{} } +func (m *InUnionMetadata) String() string { return proto.CompactTextString(m) } +func (*InUnionMetadata) ProtoMessage() {} +func (*InUnionMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_56d9f74966f40d04, []int{0} +} +func (m *InUnionMetadata) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InUnionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InUnionMetadata.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InUnionMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_InUnionMetadata.Merge(m, src) +} +func (m *InUnionMetadata) XXX_Size() int { + return m.Size() +} +func (m *InUnionMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_InUnionMetadata.DiscardUnknown(m) } -func (m *InUnionMetadata) Reset() { *m = InUnionMetadata{} } -func (m *InUnionMetadata) String() string { return proto.CompactTextString(m) } -func (*InUnionMetadata) ProtoMessage() {} -func (*InUnionMetadata) Descriptor() ([]byte, []int) { return fileDescriptorMetadata, []int{0} } +var xxx_messageInfo_InUnionMetadata proto.InternalMessageInfo func (m *InUnionMetadata) GetInUnion() bool { if m != nil { @@ -77,14 +116,41 @@ func (m *InUnionMetadata) GetInUnion() bool { type CompareInMetadata struct { HasNull bool `protobuf:"varint,1,req,name=has_null,json=hasNull" json:"has_null"` // consts represents all non-null const args in repeated Datum format. - Consts []byte `protobuf:"bytes,2,opt,name=consts" json:"consts,omitempty"` - XXX_unrecognized []byte `json:"-"` + Consts []byte `protobuf:"bytes,2,opt,name=consts" json:"consts,omitempty"` } -func (m *CompareInMetadata) Reset() { *m = CompareInMetadata{} } -func (m *CompareInMetadata) String() string { return proto.CompactTextString(m) } -func (*CompareInMetadata) ProtoMessage() {} -func (*CompareInMetadata) Descriptor() ([]byte, []int) { return fileDescriptorMetadata, []int{1} } +func (m *CompareInMetadata) Reset() { *m = CompareInMetadata{} } +func (m *CompareInMetadata) String() string { return proto.CompactTextString(m) } +func (*CompareInMetadata) ProtoMessage() {} +func (*CompareInMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_56d9f74966f40d04, []int{1} +} +func (m *CompareInMetadata) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CompareInMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CompareInMetadata.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CompareInMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompareInMetadata.Merge(m, src) +} +func (m *CompareInMetadata) XXX_Size() int { + return m.Size() +} +func (m *CompareInMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_CompareInMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_CompareInMetadata proto.InternalMessageInfo func (m *CompareInMetadata) GetHasNull() bool { if m != nil { @@ -101,14 +167,41 @@ func (m *CompareInMetadata) GetConsts() []byte { } type GroupingMark struct { - GroupingNums []uint64 `protobuf:"varint,1,rep,name=grouping_nums,json=groupingNums" json:"grouping_nums,omitempty"` - XXX_unrecognized []byte `json:"-"` + GroupingNums []uint64 `protobuf:"varint,1,rep,name=grouping_nums,json=groupingNums" json:"grouping_nums,omitempty"` } -func (m *GroupingMark) Reset() { *m = GroupingMark{} } -func (m *GroupingMark) String() string { return proto.CompactTextString(m) } -func (*GroupingMark) ProtoMessage() {} -func (*GroupingMark) Descriptor() ([]byte, []int) { return fileDescriptorMetadata, []int{2} } +func (m *GroupingMark) Reset() { *m = GroupingMark{} } +func (m *GroupingMark) String() string { return proto.CompactTextString(m) } +func (*GroupingMark) ProtoMessage() {} +func (*GroupingMark) Descriptor() ([]byte, []int) { + return fileDescriptor_56d9f74966f40d04, []int{2} +} +func (m *GroupingMark) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GroupingMark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GroupingMark.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GroupingMark) XXX_Merge(src proto.Message) { + xxx_messageInfo_GroupingMark.Merge(m, src) +} +func (m *GroupingMark) XXX_Size() int { + return m.Size() +} +func (m *GroupingMark) XXX_DiscardUnknown() { + xxx_messageInfo_GroupingMark.DiscardUnknown(m) +} + +var xxx_messageInfo_GroupingMark proto.InternalMessageInfo func (m *GroupingMark) GetGroupingNums() []uint64 { if m != nil { @@ -120,16 +213,41 @@ func (m *GroupingMark) GetGroupingNums() []uint64 { type GroupingFunctionMetadata struct { Mode *GroupingMode `protobuf:"varint,1,req,name=mode,enum=tipb.GroupingMode" json:"mode,omitempty"` // 2 dimension here, out-most dimension is for grouping(a,b) = grouping(a) << 1 + grouping(b); we should maintain a slice of grouping mark. - GroupingMarks []*GroupingMark `protobuf:"bytes,2,rep,name=grouping_marks,json=groupingMarks" json:"grouping_marks,omitempty"` - XXX_unrecognized []byte `json:"-"` + GroupingMarks []*GroupingMark `protobuf:"bytes,2,rep,name=grouping_marks,json=groupingMarks" json:"grouping_marks,omitempty"` } func (m *GroupingFunctionMetadata) Reset() { *m = GroupingFunctionMetadata{} } func (m *GroupingFunctionMetadata) String() string { return proto.CompactTextString(m) } func (*GroupingFunctionMetadata) ProtoMessage() {} func (*GroupingFunctionMetadata) Descriptor() ([]byte, []int) { - return fileDescriptorMetadata, []int{3} + return fileDescriptor_56d9f74966f40d04, []int{3} +} +func (m *GroupingFunctionMetadata) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GroupingFunctionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GroupingFunctionMetadata.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GroupingFunctionMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_GroupingFunctionMetadata.Merge(m, src) +} +func (m *GroupingFunctionMetadata) XXX_Size() int { + return m.Size() } +func (m *GroupingFunctionMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_GroupingFunctionMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_GroupingFunctionMetadata proto.InternalMessageInfo func (m *GroupingFunctionMetadata) GetMode() GroupingMode { if m != nil && m.Mode != nil { @@ -146,16 +264,46 @@ func (m *GroupingFunctionMetadata) GetGroupingMarks() []*GroupingMark { } func init() { + proto.RegisterEnum("tipb.GroupingMode", GroupingMode_name, GroupingMode_value) proto.RegisterType((*InUnionMetadata)(nil), "tipb.InUnionMetadata") proto.RegisterType((*CompareInMetadata)(nil), "tipb.CompareInMetadata") proto.RegisterType((*GroupingMark)(nil), "tipb.GroupingMark") proto.RegisterType((*GroupingFunctionMetadata)(nil), "tipb.GroupingFunctionMetadata") - proto.RegisterEnum("tipb.GroupingMode", GroupingMode_name, GroupingMode_value) } + +func init() { proto.RegisterFile("metadata.proto", fileDescriptor_56d9f74966f40d04) } + +var fileDescriptor_56d9f74966f40d04 = []byte{ + // 357 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0x4f, 0x6b, 0xe2, 0x40, + 0x18, 0xc6, 0x33, 0x1a, 0x76, 0x65, 0xd6, 0x8d, 0xee, 0xb0, 0xbb, 0x04, 0x0f, 0x51, 0xb2, 0xb0, + 0x84, 0x3d, 0x64, 0xc1, 0x9e, 0x3c, 0x56, 0xc1, 0x22, 0x54, 0x29, 0x29, 0x3d, 0xcb, 0x98, 0x84, + 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42, 0x9b, 0xf2, 0x24, 0xad, 0x28, 0x9c, 0x3e, 0x0a, 0xcd, 0x73, 0x84, + 0xa7, 0x0a, 0x9e, 0xa4, 0x51, 0xb5, 0x47, 0x03, 0xe8, 0x9c, 0x8a, 0x28, 0x16, 0x2b, 0x03, 0x56, + 0x0f, 0xbe, 0x7d, 0x4a, 0x60, 0xb1, 0x8a, 0x4e, 0x48, 0x46, 0xc9, 0x7f, 0xe3, 0x33, 0x66, 0x73, + 0xca, 0x81, 0xd0, 0x7c, 0x87, 0x44, 0x5d, 0xb3, 0xa4, 0x0d, 0x10, 0x82, 0x8e, 0xd1, 0x33, 0x4d, + 0x53, 0x41, 0xe2, 0x11, 0x2d, 0xda, 0xb5, 0x0f, 0xde, 0x7d, 0xaa, 0xda, 0xf5, 0xe1, 0x60, 0xfb, + 0xd2, 0x00, 0xeb, 0x9d, 0x07, 0x36, 0x3b, 0x0f, 0xbc, 0xed, 0x3c, 0xf0, 0x54, 0x7a, 0xd6, 0x73, + 0xe9, 0x59, 0x9b, 0xd2, 0xb3, 0xb6, 0xa5, 0x67, 0xc1, 0x5f, 0x31, 0xa7, 0xa1, 0xe9, 0x89, 0x71, + 0x11, 0x2a, 0x92, 0x2c, 0x2a, 0xb8, 0x3b, 0xf0, 0x1e, 0x00, 0x00, 0xff, 0xff, 0xf5, 0x18, 0x15, + 0x48, 0xf6, 0x01, 0x00, 0x00, +} + func (m *InUnionMetadata) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -163,28 +311,30 @@ func (m *InUnionMetadata) Marshal() (dAtA []byte, err error) { } func (m *InUnionMetadata) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InUnionMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ + i-- if m.InUnion { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *CompareInMetadata) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -192,34 +342,37 @@ func (m *CompareInMetadata) Marshal() (dAtA []byte, err error) { } func (m *CompareInMetadata) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompareInMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ + if m.Consts != nil { + i -= len(m.Consts) + copy(dAtA[i:], m.Consts) + i = encodeVarintMetadata(dAtA, i, uint64(len(m.Consts))) + i-- + dAtA[i] = 0x12 + } + i-- if m.HasNull { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - if m.Consts != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintMetadata(dAtA, i, uint64(len(m.Consts))) - i += copy(dAtA[i:], m.Consts) - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *GroupingMark) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -227,27 +380,29 @@ func (m *GroupingMark) Marshal() (dAtA []byte, err error) { } func (m *GroupingMark) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GroupingMark) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.GroupingNums) > 0 { - for _, num := range m.GroupingNums { + for iNdEx := len(m.GroupingNums) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintMetadata(dAtA, i, uint64(m.GroupingNums[iNdEx])) + i-- dAtA[i] = 0x8 - i++ - i = encodeVarintMetadata(dAtA, i, uint64(num)) } } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + return len(dAtA) - i, nil } func (m *GroupingFunctionMetadata) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -255,55 +410,64 @@ func (m *GroupingFunctionMetadata) Marshal() (dAtA []byte, err error) { } func (m *GroupingFunctionMetadata) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GroupingFunctionMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Mode == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0x8 - i++ - i = encodeVarintMetadata(dAtA, i, uint64(*m.Mode)) - } if len(m.GroupingMarks) > 0 { - for _, msg := range m.GroupingMarks { - dAtA[i] = 0x12 - i++ - i = encodeVarintMetadata(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.GroupingMarks) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.GroupingMarks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetadata(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + if m.Mode == nil { + return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) + } else { + i = encodeVarintMetadata(dAtA, i, uint64(*m.Mode)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func encodeVarintMetadata(dAtA []byte, offset int, v uint64) int { + offset -= sovMetadata(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *InUnionMetadata) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 2 - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CompareInMetadata) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 2 @@ -311,13 +475,13 @@ func (m *CompareInMetadata) Size() (n int) { l = len(m.Consts) n += 1 + l + sovMetadata(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GroupingMark) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.GroupingNums) > 0 { @@ -325,13 +489,13 @@ func (m *GroupingMark) Size() (n int) { n += 1 + sovMetadata(uint64(e)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GroupingFunctionMetadata) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Mode != nil { @@ -343,21 +507,11 @@ func (m *GroupingFunctionMetadata) Size() (n int) { n += 1 + l + sovMetadata(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovMetadata(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozMetadata(x uint64) (n int) { return sovMetadata(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -378,7 +532,7 @@ func (m *InUnionMetadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -406,7 +560,7 @@ func (m *InUnionMetadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -419,13 +573,12 @@ func (m *InUnionMetadata) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetadata } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -454,7 +607,7 @@ func (m *CompareInMetadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -482,7 +635,7 @@ func (m *CompareInMetadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -503,7 +656,7 @@ func (m *CompareInMetadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -512,6 +665,9 @@ func (m *CompareInMetadata) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetadata } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMetadata + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -526,13 +682,12 @@ func (m *CompareInMetadata) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetadata } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -560,7 +715,7 @@ func (m *GroupingMark) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -586,7 +741,7 @@ func (m *GroupingMark) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -603,7 +758,7 @@ func (m *GroupingMark) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -612,9 +767,23 @@ func (m *GroupingMark) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetadata } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthMetadata + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.GroupingNums) == 0 { + m.GroupingNums = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -626,7 +795,7 @@ func (m *GroupingMark) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -642,13 +811,12 @@ func (m *GroupingMark) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetadata } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -674,7 +842,7 @@ func (m *GroupingFunctionMetadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -702,7 +870,7 @@ func (m *GroupingFunctionMetadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (GroupingMode(b) & 0x7F) << shift + v |= GroupingMode(b&0x7F) << shift if b < 0x80 { break } @@ -723,7 +891,7 @@ func (m *GroupingFunctionMetadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -732,6 +900,9 @@ func (m *GroupingFunctionMetadata) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetadata } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetadata + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -746,13 +917,12 @@ func (m *GroupingFunctionMetadata) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetadata } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -768,6 +938,7 @@ func (m *GroupingFunctionMetadata) Unmarshal(dAtA []byte) error { func skipMetadata(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -799,10 +970,8 @@ func skipMetadata(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -819,80 +988,34 @@ func skipMetadata(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthMetadata } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMetadata - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipMetadata(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMetadata + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthMetadata + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthMetadata = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMetadata = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthMetadata = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMetadata = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMetadata = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("metadata.proto", fileDescriptorMetadata) } - -var fileDescriptorMetadata = []byte{ - // 330 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x8f, 0xcf, 0x4a, 0xeb, 0x40, - 0x18, 0xc5, 0x3b, 0x6d, 0xb8, 0xb7, 0x7c, 0xb7, 0x37, 0xd6, 0x41, 0x25, 0xb8, 0x48, 0x4b, 0x04, - 0x89, 0x2e, 0x22, 0xd4, 0x95, 0x4b, 0x5b, 0xa8, 0x14, 0x6c, 0x91, 0x88, 0xeb, 0x32, 0x4d, 0x42, - 0x3a, 0x34, 0x33, 0x13, 0xe6, 0xcf, 0xd2, 0xf7, 0xf0, 0x91, 0xba, 0xf4, 0x09, 0x44, 0xea, 0x8b, - 0xc8, 0xa4, 0x7f, 0x68, 0x75, 0x35, 0x73,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d, 0xdc, 0x63, - 0xb6, 0xab, 0x5c, 0x00, 0x7b, 0xf6, 0xa9, 0xbe, 0xe7, 0x69, 0x1b, 0x61, 0x0c, 0xae, 0xd5, 0x13, - 0xc3, 0x32, 0x49, 0x93, 0x01, 0x2b, 0xdb, 0xf5, 0x1f, 0xde, 0x73, 0xa6, 0xdb, 0x8d, 0xfe, 0xd5, - 0x72, 0xe5, 0xa3, 0xf7, 0x95, 0x8f, 0x3e, 0x57, 0x3e, 0x7a, 0xfb, 0xf2, 0x6b, 0x70, 0x9a, 0x08, - 0x16, 0xd9, 0xbd, 0x09, 0x29, 0x23, 0x4d, 0xd3, 0x59, 0x05, 0xf3, 0x84, 0xbe, 0x03, 0x00, 0x00, - 0xff, 0xff, 0x9b, 0xa0, 0x1a, 0x97, 0xd5, 0x01, 0x00, 0x00, -} diff --git a/go-tipb/resourcetag.pb.go b/go-tipb/resourcetag.pb.go index c2430aad0..3664c6229 100644 --- a/go-tipb/resourcetag.pb.go +++ b/go-tipb/resourcetag.pb.go @@ -5,12 +5,13 @@ package tipb import ( "fmt" + "io" + "math" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - math "math" - - io "io" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. @@ -18,6 +19,12 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + type ResourceGroupTagLabel int32 const ( @@ -31,6 +38,7 @@ var ResourceGroupTagLabel_name = map[int32]string{ 1: "ResourceGroupTagLabelRow", 2: "ResourceGroupTagLabelIndex", } + var ResourceGroupTagLabel_value = map[string]int32{ "ResourceGroupTagLabelUnknown": 0, "ResourceGroupTagLabelRow": 1, @@ -42,9 +50,11 @@ func (x ResourceGroupTagLabel) Enum() *ResourceGroupTagLabel { *p = x return p } + func (x ResourceGroupTagLabel) String() string { return proto.EnumName(ResourceGroupTagLabel_name, int32(x)) } + func (x *ResourceGroupTagLabel) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(ResourceGroupTagLabel_value, data, "ResourceGroupTagLabel") if err != nil { @@ -53,8 +63,9 @@ func (x *ResourceGroupTagLabel) UnmarshalJSON(data []byte) error { *x = ResourceGroupTagLabel(value) return nil } + func (ResourceGroupTagLabel) EnumDescriptor() ([]byte, []int) { - return fileDescriptorResourcetag, []int{0} + return fileDescriptor_5c1d3c692714f1ff, []int{0} } type ResourceGroupTag struct { @@ -62,15 +73,42 @@ type ResourceGroupTag struct { PlanDigest []byte `protobuf:"bytes,2,opt,name=plan_digest,json=planDigest" json:"plan_digest,omitempty"` // Use to label the handling kv type of the request. // This is for TiKV resource_metering to collect execution information by the key label. - Label *ResourceGroupTagLabel `protobuf:"varint,3,opt,name=label,enum=tipb.ResourceGroupTagLabel" json:"label,omitempty"` - TableId int64 `protobuf:"varint,4,opt,name=table_id,json=tableId" json:"table_id"` - XXX_unrecognized []byte `json:"-"` + Label *ResourceGroupTagLabel `protobuf:"varint,3,opt,name=label,enum=tipb.ResourceGroupTagLabel" json:"label,omitempty"` + TableId int64 `protobuf:"varint,4,opt,name=table_id,json=tableId" json:"table_id"` } -func (m *ResourceGroupTag) Reset() { *m = ResourceGroupTag{} } -func (m *ResourceGroupTag) String() string { return proto.CompactTextString(m) } -func (*ResourceGroupTag) ProtoMessage() {} -func (*ResourceGroupTag) Descriptor() ([]byte, []int) { return fileDescriptorResourcetag, []int{0} } +func (m *ResourceGroupTag) Reset() { *m = ResourceGroupTag{} } +func (m *ResourceGroupTag) String() string { return proto.CompactTextString(m) } +func (*ResourceGroupTag) ProtoMessage() {} +func (*ResourceGroupTag) Descriptor() ([]byte, []int) { + return fileDescriptor_5c1d3c692714f1ff, []int{0} +} +func (m *ResourceGroupTag) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResourceGroupTag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResourceGroupTag.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ResourceGroupTag) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceGroupTag.Merge(m, src) +} +func (m *ResourceGroupTag) XXX_Size() int { + return m.Size() +} +func (m *ResourceGroupTag) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceGroupTag.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourceGroupTag proto.InternalMessageInfo func (m *ResourceGroupTag) GetSqlDigest() []byte { if m != nil { @@ -101,13 +139,39 @@ func (m *ResourceGroupTag) GetTableId() int64 { } func init() { - proto.RegisterType((*ResourceGroupTag)(nil), "tipb.ResourceGroupTag") proto.RegisterEnum("tipb.ResourceGroupTagLabel", ResourceGroupTagLabel_name, ResourceGroupTagLabel_value) + proto.RegisterType((*ResourceGroupTag)(nil), "tipb.ResourceGroupTag") } + +func init() { proto.RegisterFile("resourcetag.proto", fileDescriptor_5c1d3c692714f1ff) } + +var fileDescriptor_5c1d3c692714f1ff = []byte{ + // 294 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x8f, 0x41, 0x4b, 0xf3, 0x30, + 0x1c, 0xc6, 0x93, 0x6d, 0x2f, 0xef, 0xfc, 0x2b, 0x5a, 0x83, 0x83, 0x32, 0x67, 0x56, 0x3c, 0x0d, + 0x0f, 0x15, 0xbd, 0x79, 0x1d, 0x82, 0x0c, 0x3c, 0x48, 0xd1, 0xf3, 0x48, 0xd7, 0x10, 0x8a, 0x31, + 0xc9, 0xda, 0x8c, 0xfa, 0x31, 0x3c, 0xfa, 0x09, 0xc4, 0x8f, 0xb2, 0xe3, 0x8e, 0x3b, 0x89, 0xb4, + 0x5f, 0x44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x52, 0xfc, 0x5d, 0x52, 0xfc, 0x56, 0x51, 0xf4, 0x5e, + 0x51, 0xb4, 0xa9, 0x28, 0xda, 0x56, 0x14, 0xc1, 0x60, 0xa1, 0x5f, 0x42, 0x93, 0x2a, 0xb1, 0x60, + 0x26, 0xb4, 0x69, 0x12, 0xbb, 0xff, 0x3e, 0xe0, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7e, 0xe6, + 0x8e, 0x84, 0x9d, 0x01, 0x00, 0x00, +} + func (m *ResourceGroupTag) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -115,46 +179,55 @@ func (m *ResourceGroupTag) Marshal() (dAtA []byte, err error) { } func (m *ResourceGroupTag) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResourceGroupTag) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.SqlDigest != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintResourcetag(dAtA, i, uint64(len(m.SqlDigest))) - i += copy(dAtA[i:], m.SqlDigest) + i = encodeVarintResourcetag(dAtA, i, uint64(m.TableId)) + i-- + dAtA[i] = 0x20 + if m.Label != nil { + i = encodeVarintResourcetag(dAtA, i, uint64(*m.Label)) + i-- + dAtA[i] = 0x18 } if m.PlanDigest != nil { - dAtA[i] = 0x12 - i++ + i -= len(m.PlanDigest) + copy(dAtA[i:], m.PlanDigest) i = encodeVarintResourcetag(dAtA, i, uint64(len(m.PlanDigest))) - i += copy(dAtA[i:], m.PlanDigest) - } - if m.Label != nil { - dAtA[i] = 0x18 - i++ - i = encodeVarintResourcetag(dAtA, i, uint64(*m.Label)) + i-- + dAtA[i] = 0x12 } - dAtA[i] = 0x20 - i++ - i = encodeVarintResourcetag(dAtA, i, uint64(m.TableId)) - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + if m.SqlDigest != nil { + i -= len(m.SqlDigest) + copy(dAtA[i:], m.SqlDigest) + i = encodeVarintResourcetag(dAtA, i, uint64(len(m.SqlDigest))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func encodeVarintResourcetag(dAtA []byte, offset int, v uint64) int { + offset -= sovResourcetag(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *ResourceGroupTag) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.SqlDigest != nil { @@ -169,21 +242,11 @@ func (m *ResourceGroupTag) Size() (n int) { n += 1 + sovResourcetag(uint64(*m.Label)) } n += 1 + sovResourcetag(uint64(m.TableId)) - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovResourcetag(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozResourcetag(x uint64) (n int) { return sovResourcetag(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -203,7 +266,7 @@ func (m *ResourceGroupTag) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -231,7 +294,7 @@ func (m *ResourceGroupTag) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -240,6 +303,9 @@ func (m *ResourceGroupTag) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourcetag } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthResourcetag + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -262,7 +328,7 @@ func (m *ResourceGroupTag) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -271,6 +337,9 @@ func (m *ResourceGroupTag) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourcetag } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthResourcetag + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -293,7 +362,7 @@ func (m *ResourceGroupTag) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (ResourceGroupTagLabel(b) & 0x7F) << shift + v |= ResourceGroupTagLabel(b&0x7F) << shift if b < 0x80 { break } @@ -313,7 +382,7 @@ func (m *ResourceGroupTag) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TableId |= (int64(b) & 0x7F) << shift + m.TableId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -324,13 +393,12 @@ func (m *ResourceGroupTag) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourcetag } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -343,6 +411,7 @@ func (m *ResourceGroupTag) Unmarshal(dAtA []byte) error { func skipResourcetag(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -374,10 +443,8 @@ func skipResourcetag(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -394,76 +461,34 @@ func skipResourcetag(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthResourcetag } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowResourcetag - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipResourcetag(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupResourcetag + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthResourcetag + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthResourcetag = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowResourcetag = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthResourcetag = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowResourcetag = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupResourcetag = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("resourcetag.proto", fileDescriptorResourcetag) } - -var fileDescriptorResourcetag = []byte{ - // 268 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2c, 0x4a, 0x2d, 0xce, - 0x2f, 0x2d, 0x4a, 0x4e, 0x2d, 0x49, 0x4c, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x29, - 0xc9, 0x2c, 0x48, 0x92, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x0b, 0xe8, 0x83, 0x58, 0x10, 0x39, - 0xa5, 0x65, 0x8c, 0x5c, 0x02, 0x41, 0x50, 0x1d, 0xee, 0x45, 0xf9, 0xa5, 0x05, 0x21, 0x89, 0xe9, - 0x42, 0xb2, 0x5c, 0x5c, 0xc5, 0x85, 0x39, 0xf1, 0x29, 0x99, 0xe9, 0xa9, 0xc5, 0x25, 0x12, 0x8c, - 0x0a, 0x8c, 0x1a, 0x3c, 0x41, 0x9c, 0xc5, 0x85, 0x39, 0x2e, 0x60, 0x01, 0x21, 0x79, 0x2e, 0xee, - 0x82, 0x9c, 0xc4, 0x3c, 0x98, 0x3c, 0x13, 0x58, 0x9e, 0x0b, 0x24, 0x04, 0x55, 0x60, 0xc8, 0xc5, - 0x9a, 0x93, 0x98, 0x94, 0x9a, 0x23, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x67, 0x24, 0xad, 0x07, 0x72, - 0x80, 0x1e, 0xba, 0x35, 0x3e, 0x20, 0x25, 0x41, 0x10, 0x95, 0x42, 0xf2, 0x5c, 0x1c, 0x25, 0x89, - 0x49, 0x39, 0xa9, 0xf1, 0x99, 0x29, 0x12, 0x2c, 0x0a, 0x8c, 0x1a, 0xcc, 0x4e, 0x2c, 0x27, 0xee, - 0xc9, 0x33, 0x04, 0xb1, 0x83, 0x45, 0x3d, 0x53, 0xb4, 0xca, 0xb9, 0x44, 0xb1, 0x1a, 0x20, 0xa4, - 0xc0, 0x25, 0x83, 0x55, 0x22, 0x34, 0x2f, 0x3b, 0x2f, 0xbf, 0x3c, 0x4f, 0x80, 0x41, 0x48, 0x86, - 0x4b, 0x02, 0xbb, 0xdd, 0xf9, 0xe5, 0x02, 0x8c, 0x42, 0x72, 0x5c, 0x52, 0x58, 0x65, 0x3d, 0xf3, - 0x52, 0x52, 0x2b, 0x04, 0x98, 0x9c, 0x34, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, - 0xc1, 0x23, 0x39, 0xc6, 0x19, 0x8f, 0xe5, 0x18, 0xb8, 0x44, 0x93, 0xf3, 0x73, 0xf5, 0x0a, 0x32, - 0xf3, 0xd2, 0x93, 0x13, 0x0b, 0xf4, 0x4a, 0x32, 0x53, 0x92, 0xc0, 0xfe, 0x0b, 0x60, 0x04, 0x04, - 0x00, 0x00, 0xff, 0xff, 0xf7, 0xe8, 0xcf, 0x01, 0x7c, 0x01, 0x00, 0x00, -} diff --git a/go-tipb/schema.pb.go b/go-tipb/schema.pb.go index 131da106d..5985ec4fb 100644 --- a/go-tipb/schema.pb.go +++ b/go-tipb/schema.pb.go @@ -5,12 +5,13 @@ package tipb import ( "fmt" + "io" + "math" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - math "math" - - io "io" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. @@ -18,16 +19,49 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + type TableInfo struct { - TableId int64 `protobuf:"varint,1,opt,name=table_id,json=tableId" json:"table_id"` - Columns []*ColumnInfo `protobuf:"bytes,2,rep,name=columns" json:"columns,omitempty"` - XXX_unrecognized []byte `json:"-"` + TableId int64 `protobuf:"varint,1,opt,name=table_id,json=tableId" json:"table_id"` + Columns []*ColumnInfo `protobuf:"bytes,2,rep,name=columns" json:"columns,omitempty"` } -func (m *TableInfo) Reset() { *m = TableInfo{} } -func (m *TableInfo) String() string { return proto.CompactTextString(m) } -func (*TableInfo) ProtoMessage() {} -func (*TableInfo) Descriptor() ([]byte, []int) { return fileDescriptorSchema, []int{0} } +func (m *TableInfo) Reset() { *m = TableInfo{} } +func (m *TableInfo) String() string { return proto.CompactTextString(m) } +func (*TableInfo) ProtoMessage() {} +func (*TableInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_1c5fb4d8cc22d66a, []int{0} +} +func (m *TableInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TableInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TableInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TableInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TableInfo.Merge(m, src) +} +func (m *TableInfo) XXX_Size() int { + return m.Size() +} +func (m *TableInfo) XXX_DiscardUnknown() { + xxx_messageInfo_TableInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_TableInfo proto.InternalMessageInfo func (m *TableInfo) GetTableId() int64 { if m != nil { @@ -44,23 +78,50 @@ func (m *TableInfo) GetColumns() []*ColumnInfo { } type ColumnInfo struct { - ColumnId int64 `protobuf:"varint,1,opt,name=column_id,json=columnId" json:"column_id"` - Tp int32 `protobuf:"varint,2,opt,name=tp" json:"tp"` - Collation int32 `protobuf:"varint,3,opt,name=collation" json:"collation"` - ColumnLen int32 `protobuf:"varint,4,opt,name=columnLen" json:"columnLen"` - Decimal int32 `protobuf:"varint,5,opt,name=decimal" json:"decimal"` - Flag int32 `protobuf:"varint,6,opt,name=flag" json:"flag"` - Elems []string `protobuf:"bytes,7,rep,name=elems" json:"elems,omitempty"` - DefaultVal []byte `protobuf:"bytes,8,opt,name=default_val,json=defaultVal" json:"default_val,omitempty"` - PkHandle bool `protobuf:"varint,21,opt,name=pk_handle,json=pkHandle" json:"pk_handle"` - Array bool `protobuf:"varint,22,opt,name=array" json:"array"` - XXX_unrecognized []byte `json:"-"` + ColumnId int64 `protobuf:"varint,1,opt,name=column_id,json=columnId" json:"column_id"` + Tp int32 `protobuf:"varint,2,opt,name=tp" json:"tp"` + Collation int32 `protobuf:"varint,3,opt,name=collation" json:"collation"` + ColumnLen int32 `protobuf:"varint,4,opt,name=columnLen" json:"columnLen"` + Decimal int32 `protobuf:"varint,5,opt,name=decimal" json:"decimal"` + Flag int32 `protobuf:"varint,6,opt,name=flag" json:"flag"` + Elems []string `protobuf:"bytes,7,rep,name=elems" json:"elems,omitempty"` + DefaultVal []byte `protobuf:"bytes,8,opt,name=default_val,json=defaultVal" json:"default_val,omitempty"` + PkHandle bool `protobuf:"varint,21,opt,name=pk_handle,json=pkHandle" json:"pk_handle"` + Array bool `protobuf:"varint,22,opt,name=array" json:"array"` +} + +func (m *ColumnInfo) Reset() { *m = ColumnInfo{} } +func (m *ColumnInfo) String() string { return proto.CompactTextString(m) } +func (*ColumnInfo) ProtoMessage() {} +func (*ColumnInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_1c5fb4d8cc22d66a, []int{1} +} +func (m *ColumnInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ColumnInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ColumnInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ColumnInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ColumnInfo.Merge(m, src) +} +func (m *ColumnInfo) XXX_Size() int { + return m.Size() +} +func (m *ColumnInfo) XXX_DiscardUnknown() { + xxx_messageInfo_ColumnInfo.DiscardUnknown(m) } -func (m *ColumnInfo) Reset() { *m = ColumnInfo{} } -func (m *ColumnInfo) String() string { return proto.CompactTextString(m) } -func (*ColumnInfo) ProtoMessage() {} -func (*ColumnInfo) Descriptor() ([]byte, []int) { return fileDescriptorSchema, []int{1} } +var xxx_messageInfo_ColumnInfo proto.InternalMessageInfo func (m *ColumnInfo) GetColumnId() int64 { if m != nil { @@ -133,17 +194,44 @@ func (m *ColumnInfo) GetArray() bool { } type IndexInfo struct { - TableId int64 `protobuf:"varint,1,opt,name=table_id,json=tableId" json:"table_id"` - IndexId int64 `protobuf:"varint,2,opt,name=index_id,json=indexId" json:"index_id"` - Columns []*ColumnInfo `protobuf:"bytes,3,rep,name=columns" json:"columns,omitempty"` - Unique bool `protobuf:"varint,4,opt,name=unique" json:"unique"` - XXX_unrecognized []byte `json:"-"` + TableId int64 `protobuf:"varint,1,opt,name=table_id,json=tableId" json:"table_id"` + IndexId int64 `protobuf:"varint,2,opt,name=index_id,json=indexId" json:"index_id"` + Columns []*ColumnInfo `protobuf:"bytes,3,rep,name=columns" json:"columns,omitempty"` + Unique bool `protobuf:"varint,4,opt,name=unique" json:"unique"` } -func (m *IndexInfo) Reset() { *m = IndexInfo{} } -func (m *IndexInfo) String() string { return proto.CompactTextString(m) } -func (*IndexInfo) ProtoMessage() {} -func (*IndexInfo) Descriptor() ([]byte, []int) { return fileDescriptorSchema, []int{2} } +func (m *IndexInfo) Reset() { *m = IndexInfo{} } +func (m *IndexInfo) String() string { return proto.CompactTextString(m) } +func (*IndexInfo) ProtoMessage() {} +func (*IndexInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_1c5fb4d8cc22d66a, []int{2} +} +func (m *IndexInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IndexInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IndexInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *IndexInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_IndexInfo.Merge(m, src) +} +func (m *IndexInfo) XXX_Size() int { + return m.Size() +} +func (m *IndexInfo) XXX_DiscardUnknown() { + xxx_messageInfo_IndexInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_IndexInfo proto.InternalMessageInfo func (m *IndexInfo) GetTableId() int64 { if m != nil { @@ -175,15 +263,42 @@ func (m *IndexInfo) GetUnique() bool { // KeyRange is the encoded index key range, low is closed, high is open. (low <= x < high) type KeyRange struct { - Low []byte `protobuf:"bytes,1,opt,name=low" json:"low,omitempty"` - High []byte `protobuf:"bytes,2,opt,name=high" json:"high,omitempty"` - XXX_unrecognized []byte `json:"-"` + Low []byte `protobuf:"bytes,1,opt,name=low" json:"low,omitempty"` + High []byte `protobuf:"bytes,2,opt,name=high" json:"high,omitempty"` } -func (m *KeyRange) Reset() { *m = KeyRange{} } -func (m *KeyRange) String() string { return proto.CompactTextString(m) } -func (*KeyRange) ProtoMessage() {} -func (*KeyRange) Descriptor() ([]byte, []int) { return fileDescriptorSchema, []int{3} } +func (m *KeyRange) Reset() { *m = KeyRange{} } +func (m *KeyRange) String() string { return proto.CompactTextString(m) } +func (*KeyRange) ProtoMessage() {} +func (*KeyRange) Descriptor() ([]byte, []int) { + return fileDescriptor_1c5fb4d8cc22d66a, []int{3} +} +func (m *KeyRange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KeyRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_KeyRange.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *KeyRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyRange.Merge(m, src) +} +func (m *KeyRange) XXX_Size() int { + return m.Size() +} +func (m *KeyRange) XXX_DiscardUnknown() { + xxx_messageInfo_KeyRange.DiscardUnknown(m) +} + +var xxx_messageInfo_KeyRange proto.InternalMessageInfo func (m *KeyRange) GetLow() []byte { if m != nil { @@ -205,10 +320,45 @@ func init() { proto.RegisterType((*IndexInfo)(nil), "tipb.IndexInfo") proto.RegisterType((*KeyRange)(nil), "tipb.KeyRange") } + +func init() { proto.RegisterFile("schema.proto", fileDescriptor_1c5fb4d8cc22d66a) } + +var fileDescriptor_1c5fb4d8cc22d66a = []byte{ + // 437 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xb1, 0x8e, 0xd3,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, 0x3f, 0x22, 0x74, + 0xbd, 0x8b, 0xd1, 0xcd, 0x2e, 0x46, 0xbf, 0x77, 0x31, 0xfa, 0xba, 0x8f, 0xbd, 0xef, 0xfb, 0xd8, + 0xbb, 0xd9, 0xc7, 0xde, 0xed, 0x3e, 0xf6, 0xe0, 0xbc, 0x54, 0x4d, 0xae, 0xb9, 0xac, 0x4b, 0xaa, + 0x73, 0xc3, 0xab, 0xa5, 0x2b, 0xf7, 0x16, 0xfd, 0x09, 0x00, 0x00, 0xff, 0xff, 0x3d, 0x0a, 0xca, + 0x80, 0xdc, 0x02, 0x00, 0x00, +} + func (m *TableInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -216,35 +366,39 @@ func (m *TableInfo) Marshal() (dAtA []byte, err error) { } func (m *TableInfo) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TableInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintSchema(dAtA, i, uint64(m.TableId)) if len(m.Columns) > 0 { - for _, msg := range m.Columns { - dAtA[i] = 0x12 - i++ - i = encodeVarintSchema(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Columns) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Columns[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchema(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + i = encodeVarintSchema(dAtA, i, uint64(m.TableId)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *ColumnInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -252,79 +406,76 @@ func (m *ColumnInfo) Marshal() (dAtA []byte, err error) { } func (m *ColumnInfo) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ColumnInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintSchema(dAtA, i, uint64(m.ColumnId)) - dAtA[i] = 0x10 - i++ - i = encodeVarintSchema(dAtA, i, uint64(m.Tp)) - dAtA[i] = 0x18 - i++ - i = encodeVarintSchema(dAtA, i, uint64(m.Collation)) - dAtA[i] = 0x20 - i++ - i = encodeVarintSchema(dAtA, i, uint64(m.ColumnLen)) - dAtA[i] = 0x28 - i++ - i = encodeVarintSchema(dAtA, i, uint64(m.Decimal)) - dAtA[i] = 0x30 - i++ - i = encodeVarintSchema(dAtA, i, uint64(m.Flag)) - if len(m.Elems) > 0 { - for _, s := range m.Elems { - dAtA[i] = 0x3a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if m.DefaultVal != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintSchema(dAtA, i, uint64(len(m.DefaultVal))) - i += copy(dAtA[i:], m.DefaultVal) - } - dAtA[i] = 0xa8 - i++ - dAtA[i] = 0x1 - i++ - if m.PkHandle { + i-- + if m.Array { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - dAtA[i] = 0xb0 - i++ + i-- dAtA[i] = 0x1 - i++ - if m.Array { + i-- + dAtA[i] = 0xb0 + i-- + if m.PkHandle { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa8 + if m.DefaultVal != nil { + i -= len(m.DefaultVal) + copy(dAtA[i:], m.DefaultVal) + i = encodeVarintSchema(dAtA, i, uint64(len(m.DefaultVal))) + i-- + dAtA[i] = 0x42 } - return i, nil + if len(m.Elems) > 0 { + for iNdEx := len(m.Elems) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Elems[iNdEx]) + copy(dAtA[i:], m.Elems[iNdEx]) + i = encodeVarintSchema(dAtA, i, uint64(len(m.Elems[iNdEx]))) + i-- + dAtA[i] = 0x3a + } + } + i = encodeVarintSchema(dAtA, i, uint64(m.Flag)) + i-- + dAtA[i] = 0x30 + i = encodeVarintSchema(dAtA, i, uint64(m.Decimal)) + i-- + dAtA[i] = 0x28 + i = encodeVarintSchema(dAtA, i, uint64(m.ColumnLen)) + i-- + dAtA[i] = 0x20 + i = encodeVarintSchema(dAtA, i, uint64(m.Collation)) + i-- + dAtA[i] = 0x18 + i = encodeVarintSchema(dAtA, i, uint64(m.Tp)) + i-- + dAtA[i] = 0x10 + i = encodeVarintSchema(dAtA, i, uint64(m.ColumnId)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *IndexInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -332,46 +483,50 @@ func (m *IndexInfo) Marshal() (dAtA []byte, err error) { } func (m *IndexInfo) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IndexInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintSchema(dAtA, i, uint64(m.TableId)) - dAtA[i] = 0x10 - i++ - i = encodeVarintSchema(dAtA, i, uint64(m.IndexId)) - if len(m.Columns) > 0 { - for _, msg := range m.Columns { - dAtA[i] = 0x1a - i++ - i = encodeVarintSchema(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - dAtA[i] = 0x20 - i++ + i-- if m.Unique { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + i-- + dAtA[i] = 0x20 + if len(m.Columns) > 0 { + for iNdEx := len(m.Columns) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Columns[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } } - return i, nil + i = encodeVarintSchema(dAtA, i, uint64(m.IndexId)) + i-- + dAtA[i] = 0x10 + i = encodeVarintSchema(dAtA, i, uint64(m.TableId)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *KeyRange) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -379,38 +534,47 @@ func (m *KeyRange) Marshal() (dAtA []byte, err error) { } func (m *KeyRange) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeyRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Low != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintSchema(dAtA, i, uint64(len(m.Low))) - i += copy(dAtA[i:], m.Low) - } if m.High != nil { - dAtA[i] = 0x12 - i++ + i -= len(m.High) + copy(dAtA[i:], m.High) i = encodeVarintSchema(dAtA, i, uint64(len(m.High))) - i += copy(dAtA[i:], m.High) + i-- + dAtA[i] = 0x12 } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + if m.Low != nil { + i -= len(m.Low) + copy(dAtA[i:], m.Low) + i = encodeVarintSchema(dAtA, i, uint64(len(m.Low))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func encodeVarintSchema(dAtA []byte, offset int, v uint64) int { + offset -= sovSchema(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *TableInfo) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovSchema(uint64(m.TableId)) @@ -420,13 +584,13 @@ func (m *TableInfo) Size() (n int) { n += 1 + l + sovSchema(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ColumnInfo) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovSchema(uint64(m.ColumnId)) @@ -447,13 +611,13 @@ func (m *ColumnInfo) Size() (n int) { } n += 3 n += 3 - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *IndexInfo) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovSchema(uint64(m.TableId)) @@ -465,13 +629,13 @@ func (m *IndexInfo) Size() (n int) { } } n += 2 - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *KeyRange) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Low != nil { @@ -482,21 +646,11 @@ func (m *KeyRange) Size() (n int) { l = len(m.High) n += 1 + l + sovSchema(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovSchema(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozSchema(x uint64) (n int) { return sovSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -516,7 +670,7 @@ func (m *TableInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -544,7 +698,7 @@ func (m *TableInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TableId |= (int64(b) & 0x7F) << shift + m.TableId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -563,7 +717,7 @@ func (m *TableInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -572,6 +726,9 @@ func (m *TableInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchema } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchema + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -586,13 +743,12 @@ func (m *TableInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSchema } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -617,7 +773,7 @@ func (m *ColumnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -645,7 +801,7 @@ func (m *ColumnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ColumnId |= (int64(b) & 0x7F) << shift + m.ColumnId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -664,7 +820,7 @@ func (m *ColumnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Tp |= (int32(b) & 0x7F) << shift + m.Tp |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -683,7 +839,7 @@ func (m *ColumnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Collation |= (int32(b) & 0x7F) << shift + m.Collation |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -702,7 +858,7 @@ func (m *ColumnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ColumnLen |= (int32(b) & 0x7F) << shift + m.ColumnLen |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -721,7 +877,7 @@ func (m *ColumnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Decimal |= (int32(b) & 0x7F) << shift + m.Decimal |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -740,7 +896,7 @@ func (m *ColumnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Flag |= (int32(b) & 0x7F) << shift + m.Flag |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -759,7 +915,7 @@ func (m *ColumnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -769,6 +925,9 @@ func (m *ColumnInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchema } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchema + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -788,7 +947,7 @@ func (m *ColumnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -797,6 +956,9 @@ func (m *ColumnInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchema } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSchema + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -819,7 +981,7 @@ func (m *ColumnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -839,7 +1001,7 @@ func (m *ColumnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -851,13 +1013,12 @@ func (m *ColumnInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSchema } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -882,7 +1043,7 @@ func (m *IndexInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -910,7 +1071,7 @@ func (m *IndexInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TableId |= (int64(b) & 0x7F) << shift + m.TableId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -929,7 +1090,7 @@ func (m *IndexInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.IndexId |= (int64(b) & 0x7F) << shift + m.IndexId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -948,7 +1109,7 @@ func (m *IndexInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -957,6 +1118,9 @@ func (m *IndexInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchema } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchema + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -979,7 +1143,7 @@ func (m *IndexInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -991,13 +1155,12 @@ func (m *IndexInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSchema } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1022,7 +1185,7 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1050,7 +1213,7 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1059,6 +1222,9 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchema } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSchema + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1081,7 +1247,7 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1090,6 +1256,9 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchema } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSchema + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1104,13 +1273,12 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSchema } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1123,6 +1291,7 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { func skipSchema(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -1154,10 +1323,8 @@ func skipSchema(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -1174,85 +1341,34 @@ func skipSchema(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthSchema } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSchema - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipSchema(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSchema + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthSchema + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthSchema = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowSchema = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthSchema = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSchema = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSchema = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("schema.proto", fileDescriptorSchema) } - -var fileDescriptorSchema = []byte{ - // 410 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xc1, 0x8e, 0xd3, 0x30, - 0x10, 0x86, 0xd7, 0x49, 0xba, 0x4d, 0x67, 0x7b, 0x58, 0x59, 0x5d, 0x64, 0xad, 0x50, 0x1a, 0x72, - 0x0a, 0x1c, 0x02, 0xe2, 0x11, 0x96, 0x0b, 0x15, 0x1c, 0x50, 0x84, 0x10, 0xb7, 0xca, 0x8d, 0xdd, - 0xd4, 0x5a, 0xc7, 0x36, 0xad, 0x03, 0xec, 0x93, 0xc0, 0xcb, 0x70, 0xdf, 0x23, 0x4f, 0x80, 0x50, - 0x79, 0x11, 0x64, 0x27, 0xd1, 0x86, 0xbd, 0xb0, 0xb7, 0x99, 0xef, 0xff, 0x3d, 0xfa, 0xc7, 0x03, - 0xf3, 0x43, 0xb5, 0xe3, 0x0d, 0x2d, 0xcc, 0x5e, 0x5b, 0x8d, 0x23, 0x2b, 0xcc, 0xe6, 0x72, 0x51, - 0xeb, 0x5a, 0x7b, 0xf0, 0xdc, 0x55, 0x9d, 0x96, 0x7d, 0x84, 0xd9, 0x7b, 0xba, 0x91, 0x7c, 0xa5, - 0xb6, 0x1a, 0x2f, 0x21, 0xb6, 0xae, 0x59, 0x0b, 0x46, 0x50, 0x8a, 0xf2, 0xf0, 0x2a, 0xba, 0xfd, - 0xb5, 0x3c, 0x29, 0xa7, 0x9e, 0xae, 0x18, 0x7e, 0x06, 0xd3, 0x4a, 0xcb, 0xb6, 0x51, 0x07, 0x12, - 0xa4, 0x61, 0x7e, 0xf6, 0xf2, 0xbc, 0x70, 0xb3, 0x8b, 0x57, 0x1e, 0xba, 0x19, 0xe5, 0x60, 0xc8, - 0x7e, 0x04, 0x00,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x1c, 0x42, 0xa9, 0xbf, 0xf8, 0x48, 0xf3, - 0xd2, 0x95, 0x18, 0x43, 0xb4, 0x13, 0xf5, 0xce, 0x87, 0x98, 0x97, 0xbe, 0xbe, 0x7a, 0x7a, 0x7b, - 0x4c, 0xd0, 0xcf, 0x63, 0x82, 0x7e, 0x1f, 0x13, 0xf4, 0xfd, 0x4f, 0x72, 0x02, 0x17, 0x95, 0x6e, - 0x0a, 0x23, 0x54, 0x5d, 0x51, 0x53, 0x58, 0xc1, 0x36, 0x3e, 0xcc, 0x3b, 0xf4, 0x37, 0x00, 0x00, - 0xff, 0xff, 0xcd, 0x8b, 0xd2, 0x95, 0xbb, 0x02, 0x00, 0x00, -} diff --git a/go-tipb/select.pb.go b/go-tipb/select.pb.go index 006fad9fa..2ff553fa1 100644 --- a/go-tipb/select.pb.go +++ b/go-tipb/select.pb.go @@ -5,14 +5,14 @@ package tipb import ( "fmt" + "io" + "math" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - - math "math" - github_com_pingcap_tipb_sharedbytes "github.com/pingcap/tipb/sharedbytes" - io "io" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. @@ -20,6 +20,12 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + type EncodeType int32 const ( @@ -34,6 +40,7 @@ var EncodeType_name = map[int32]string{ 1: "TypeChunk", 2: "TypeCHBlock", } + var EncodeType_value = map[string]int32{ "TypeDefault": 0, "TypeChunk": 1, @@ -45,9 +52,11 @@ func (x EncodeType) Enum() *EncodeType { *p = x return p } + func (x EncodeType) String() string { return proto.EnumName(EncodeType_name, int32(x)) } + func (x *EncodeType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(EncodeType_value, data, "EncodeType") if err != nil { @@ -56,7 +65,10 @@ func (x *EncodeType) UnmarshalJSON(data []byte) error { *x = EncodeType(value) return nil } -func (EncodeType) EnumDescriptor() ([]byte, []int) { return fileDescriptorSelect, []int{0} } + +func (EncodeType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_86353caa10f8b4d7, []int{0} +} type Endian int32 @@ -69,6 +81,7 @@ var Endian_name = map[int32]string{ 0: "LittleEndian", 1: "BigEndian", } + var Endian_value = map[string]int32{ "LittleEndian": 0, "BigEndian": 1, @@ -79,9 +92,11 @@ func (x Endian) Enum() *Endian { *p = x return p } + func (x Endian) String() string { return proto.EnumName(Endian_name, int32(x)) } + func (x *Endian) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(Endian_value, data, "Endian") if err != nil { @@ -90,19 +105,49 @@ func (x *Endian) UnmarshalJSON(data []byte) error { *x = Endian(value) return nil } -func (Endian) EnumDescriptor() ([]byte, []int) { return fileDescriptorSelect, []int{1} } + +func (Endian) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_86353caa10f8b4d7, []int{1} +} // values are all in text format. type Row struct { - Handle []byte `protobuf:"bytes,1,opt,name=handle" json:"handle,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"` - XXX_unrecognized []byte `json:"-"` + Handle []byte `protobuf:"bytes,1,opt,name=handle" json:"handle,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"` +} + +func (m *Row) Reset() { *m = Row{} } +func (m *Row) String() string { return proto.CompactTextString(m) } +func (*Row) ProtoMessage() {} +func (*Row) Descriptor() ([]byte, []int) { + return fileDescriptor_86353caa10f8b4d7, []int{0} +} +func (m *Row) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Row) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Row.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Row) XXX_Merge(src proto.Message) { + xxx_messageInfo_Row.Merge(m, src) +} +func (m *Row) XXX_Size() int { + return m.Size() +} +func (m *Row) XXX_DiscardUnknown() { + xxx_messageInfo_Row.DiscardUnknown(m) } -func (m *Row) Reset() { *m = Row{} } -func (m *Row) String() string { return proto.CompactTextString(m) } -func (*Row) ProtoMessage() {} -func (*Row) Descriptor() ([]byte, []int) { return fileDescriptorSelect, []int{0} } +var xxx_messageInfo_Row proto.InternalMessageInfo func (m *Row) GetHandle() []byte { if m != nil { @@ -119,15 +164,42 @@ func (m *Row) GetData() []byte { } type Error struct { - Code int32 `protobuf:"varint,1,opt,name=code" json:"code"` - Msg string `protobuf:"bytes,2,opt,name=msg" json:"msg"` - XXX_unrecognized []byte `json:"-"` + Code int32 `protobuf:"varint,1,opt,name=code" json:"code"` + Msg string `protobuf:"bytes,2,opt,name=msg" json:"msg"` +} + +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { + return fileDescriptor_86353caa10f8b4d7, []int{1} +} +func (m *Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Error.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(m, src) +} +func (m *Error) XXX_Size() int { + return m.Size() +} +func (m *Error) XXX_DiscardUnknown() { + xxx_messageInfo_Error.DiscardUnknown(m) } -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorSelect, []int{1} } +var xxx_messageInfo_Error proto.InternalMessageInfo func (m *Error) GetCode() int32 { if m != nil { @@ -160,14 +232,41 @@ type SelectResponse struct { EncodeType EncodeType `protobuf:"varint,9,opt,name=encode_type,json=encodeType,enum=tipb.EncodeType" json:"encode_type"` // ndvs collects the number of distinct value information per range. It will be used to serve as execution feedback information. // Helping us improve the table's statistics information. - Ndvs []int64 `protobuf:"varint,10,rep,name=ndvs" json:"ndvs,omitempty"` - XXX_unrecognized []byte `json:"-"` + Ndvs []int64 `protobuf:"varint,10,rep,name=ndvs" json:"ndvs,omitempty"` } -func (m *SelectResponse) Reset() { *m = SelectResponse{} } -func (m *SelectResponse) String() string { return proto.CompactTextString(m) } -func (*SelectResponse) ProtoMessage() {} -func (*SelectResponse) Descriptor() ([]byte, []int) { return fileDescriptorSelect, []int{2} } +func (m *SelectResponse) Reset() { *m = SelectResponse{} } +func (m *SelectResponse) String() string { return proto.CompactTextString(m) } +func (*SelectResponse) ProtoMessage() {} +func (*SelectResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_86353caa10f8b4d7, []int{2} +} +func (m *SelectResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SelectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SelectResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SelectResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SelectResponse.Merge(m, src) +} +func (m *SelectResponse) XXX_Size() int { + return m.Size() +} +func (m *SelectResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SelectResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SelectResponse proto.InternalMessageInfo func (m *SelectResponse) GetError() *Error { if m != nil { @@ -237,14 +336,41 @@ type Chunk struct { // Data for all rows in the chunk. RowsData github_com_pingcap_tipb_sharedbytes.SharedBytes `protobuf:"bytes,3,opt,name=rows_data,json=rowsData,customtype=github.com/pingcap/tipb/sharedbytes.SharedBytes" json:"rows_data"` // Meta data for every row. - RowsMeta []RowMeta `protobuf:"bytes,4,rep,name=rows_meta,json=rowsMeta" json:"rows_meta"` - XXX_unrecognized []byte `json:"-"` + RowsMeta []RowMeta `protobuf:"bytes,4,rep,name=rows_meta,json=rowsMeta" json:"rows_meta"` +} + +func (m *Chunk) Reset() { *m = Chunk{} } +func (m *Chunk) String() string { return proto.CompactTextString(m) } +func (*Chunk) ProtoMessage() {} +func (*Chunk) Descriptor() ([]byte, []int) { + return fileDescriptor_86353caa10f8b4d7, []int{3} +} +func (m *Chunk) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Chunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Chunk.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Chunk) XXX_Merge(src proto.Message) { + xxx_messageInfo_Chunk.Merge(m, src) +} +func (m *Chunk) XXX_Size() int { + return m.Size() +} +func (m *Chunk) XXX_DiscardUnknown() { + xxx_messageInfo_Chunk.DiscardUnknown(m) } -func (m *Chunk) Reset() { *m = Chunk{} } -func (m *Chunk) String() string { return proto.CompactTextString(m) } -func (*Chunk) ProtoMessage() {} -func (*Chunk) Descriptor() ([]byte, []int) { return fileDescriptorSelect, []int{3} } +var xxx_messageInfo_Chunk proto.InternalMessageInfo func (m *Chunk) GetRowsMeta() []RowMeta { if m != nil { @@ -255,15 +381,42 @@ func (m *Chunk) GetRowsMeta() []RowMeta { // RowMeta contains row handle and length of a row. type RowMeta struct { - Handle int64 `protobuf:"varint,1,opt,name=handle" json:"handle"` - Length int64 `protobuf:"varint,2,opt,name=length" json:"length"` - XXX_unrecognized []byte `json:"-"` + Handle int64 `protobuf:"varint,1,opt,name=handle" json:"handle"` + Length int64 `protobuf:"varint,2,opt,name=length" json:"length"` } -func (m *RowMeta) Reset() { *m = RowMeta{} } -func (m *RowMeta) String() string { return proto.CompactTextString(m) } -func (*RowMeta) ProtoMessage() {} -func (*RowMeta) Descriptor() ([]byte, []int) { return fileDescriptorSelect, []int{4} } +func (m *RowMeta) Reset() { *m = RowMeta{} } +func (m *RowMeta) String() string { return proto.CompactTextString(m) } +func (*RowMeta) ProtoMessage() {} +func (*RowMeta) Descriptor() ([]byte, []int) { + return fileDescriptor_86353caa10f8b4d7, []int{4} +} +func (m *RowMeta) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RowMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RowMeta.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RowMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_RowMeta.Merge(m, src) +} +func (m *RowMeta) XXX_Size() int { + return m.Size() +} +func (m *RowMeta) XXX_DiscardUnknown() { + xxx_messageInfo_RowMeta.DiscardUnknown(m) +} + +var xxx_messageInfo_RowMeta proto.InternalMessageInfo func (m *RowMeta) GetHandle() int64 { if m != nil { @@ -289,12 +442,12 @@ type DAGRequest struct { // time zone offset in seconds TimeZoneOffset int64 `protobuf:"varint,3,opt,name=time_zone_offset,json=timeZoneOffset" json:"time_zone_offset"` // flags are used to store flags that change the execution mode, it contains: - // ignore_truncate = 1 - // truncate error should be ignore if set. - // truncate_as_warning = 1 << 1 - // when ignored_truncate is not set, return warning instead of error if this flag is set. - // ... - // add more when needed. + // ignore_truncate = 1 + // truncate error should be ignore if set. + // truncate_as_warning = 1 << 1 + // when ignored_truncate is not set, return warning instead of error if this flag is set. + // ... + // add more when needed. Flags uint64 `protobuf:"varint,4,opt,name=flags" json:"flags"` // It represents which columns we should output. OutputOffsets []uint32 `protobuf:"varint,5,rep,name=output_offsets,json=outputOffsets" json:"output_offsets,omitempty"` @@ -327,13 +480,40 @@ type DAGRequest struct { ForceEncodeType *bool `protobuf:"varint,18,opt,name=force_encode_type,json=forceEncodeType" json:"force_encode_type,omitempty"` // It indicates the number of digits by which to increase the scale of the result of division operations performed with the / operator. DivPrecisionIncrement *uint32 `protobuf:"varint,19,opt,name=div_precision_increment,json=divPrecisionIncrement" json:"div_precision_increment,omitempty"` - XXX_unrecognized []byte `json:"-"` } -func (m *DAGRequest) Reset() { *m = DAGRequest{} } -func (m *DAGRequest) String() string { return proto.CompactTextString(m) } -func (*DAGRequest) ProtoMessage() {} -func (*DAGRequest) Descriptor() ([]byte, []int) { return fileDescriptorSelect, []int{5} } +func (m *DAGRequest) Reset() { *m = DAGRequest{} } +func (m *DAGRequest) String() string { return proto.CompactTextString(m) } +func (*DAGRequest) ProtoMessage() {} +func (*DAGRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_86353caa10f8b4d7, []int{5} +} +func (m *DAGRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DAGRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DAGRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DAGRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DAGRequest.Merge(m, src) +} +func (m *DAGRequest) XXX_Size() int { + return m.Size() +} +func (m *DAGRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DAGRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DAGRequest proto.InternalMessageInfo func (m *DAGRequest) GetStartTsFallback() uint64 { if m != nil && m.StartTsFallback != nil { @@ -463,14 +643,41 @@ func (m *DAGRequest) GetDivPrecisionIncrement() uint32 { type ChunkMemoryLayout struct { // Represents the endian. - Endian Endian `protobuf:"varint,1,opt,name=endian,enum=tipb.Endian" json:"endian"` - XXX_unrecognized []byte `json:"-"` + Endian Endian `protobuf:"varint,1,opt,name=endian,enum=tipb.Endian" json:"endian"` +} + +func (m *ChunkMemoryLayout) Reset() { *m = ChunkMemoryLayout{} } +func (m *ChunkMemoryLayout) String() string { return proto.CompactTextString(m) } +func (*ChunkMemoryLayout) ProtoMessage() {} +func (*ChunkMemoryLayout) Descriptor() ([]byte, []int) { + return fileDescriptor_86353caa10f8b4d7, []int{6} +} +func (m *ChunkMemoryLayout) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ChunkMemoryLayout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ChunkMemoryLayout.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ChunkMemoryLayout) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChunkMemoryLayout.Merge(m, src) +} +func (m *ChunkMemoryLayout) XXX_Size() int { + return m.Size() +} +func (m *ChunkMemoryLayout) XXX_DiscardUnknown() { + xxx_messageInfo_ChunkMemoryLayout.DiscardUnknown(m) } -func (m *ChunkMemoryLayout) Reset() { *m = ChunkMemoryLayout{} } -func (m *ChunkMemoryLayout) String() string { return proto.CompactTextString(m) } -func (*ChunkMemoryLayout) ProtoMessage() {} -func (*ChunkMemoryLayout) Descriptor() ([]byte, []int) { return fileDescriptorSelect, []int{6} } +var xxx_messageInfo_ChunkMemoryLayout proto.InternalMessageInfo func (m *ChunkMemoryLayout) GetEndian() Endian { if m != nil { @@ -480,15 +687,42 @@ func (m *ChunkMemoryLayout) GetEndian() Endian { } type UserIdentity struct { - UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName" json:"user_name"` - UserHost string `protobuf:"bytes,2,opt,name=user_host,json=userHost" json:"user_host"` - XXX_unrecognized []byte `json:"-"` + UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName" json:"user_name"` + UserHost string `protobuf:"bytes,2,opt,name=user_host,json=userHost" json:"user_host"` } -func (m *UserIdentity) Reset() { *m = UserIdentity{} } -func (m *UserIdentity) String() string { return proto.CompactTextString(m) } -func (*UserIdentity) ProtoMessage() {} -func (*UserIdentity) Descriptor() ([]byte, []int) { return fileDescriptorSelect, []int{7} } +func (m *UserIdentity) Reset() { *m = UserIdentity{} } +func (m *UserIdentity) String() string { return proto.CompactTextString(m) } +func (*UserIdentity) ProtoMessage() {} +func (*UserIdentity) Descriptor() ([]byte, []int) { + return fileDescriptor_86353caa10f8b4d7, []int{7} +} +func (m *UserIdentity) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UserIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UserIdentity.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UserIdentity) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserIdentity.Merge(m, src) +} +func (m *UserIdentity) XXX_Size() int { + return m.Size() +} +func (m *UserIdentity) XXX_DiscardUnknown() { + xxx_messageInfo_UserIdentity.DiscardUnknown(m) +} + +var xxx_messageInfo_UserIdentity proto.InternalMessageInfo func (m *UserIdentity) GetUserName() string { if m != nil { @@ -510,16 +744,43 @@ type StreamResponse struct { Data github_com_pingcap_tipb_sharedbytes.SharedBytes `protobuf:"bytes,3,opt,name=data,customtype=github.com/pingcap/tipb/sharedbytes.SharedBytes" json:"data"` Warnings []*Error `protobuf:"bytes,4,rep,name=warnings" json:"warnings,omitempty"` // output row count for each executor - OutputCounts []int64 `protobuf:"varint,5,rep,name=output_counts,json=outputCounts" json:"output_counts,omitempty"` - WarningCount *int64 `protobuf:"varint,6,opt,name=warning_count,json=warningCount" json:"warning_count,omitempty"` - Ndvs []int64 `protobuf:"varint,7,rep,name=ndvs" json:"ndvs,omitempty"` - XXX_unrecognized []byte `json:"-"` + OutputCounts []int64 `protobuf:"varint,5,rep,name=output_counts,json=outputCounts" json:"output_counts,omitempty"` + WarningCount *int64 `protobuf:"varint,6,opt,name=warning_count,json=warningCount" json:"warning_count,omitempty"` + Ndvs []int64 `protobuf:"varint,7,rep,name=ndvs" json:"ndvs,omitempty"` +} + +func (m *StreamResponse) Reset() { *m = StreamResponse{} } +func (m *StreamResponse) String() string { return proto.CompactTextString(m) } +func (*StreamResponse) ProtoMessage() {} +func (*StreamResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_86353caa10f8b4d7, []int{8} +} +func (m *StreamResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StreamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StreamResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StreamResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamResponse.Merge(m, src) +} +func (m *StreamResponse) XXX_Size() int { + return m.Size() +} +func (m *StreamResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StreamResponse.DiscardUnknown(m) } -func (m *StreamResponse) Reset() { *m = StreamResponse{} } -func (m *StreamResponse) String() string { return proto.CompactTextString(m) } -func (*StreamResponse) ProtoMessage() {} -func (*StreamResponse) Descriptor() ([]byte, []int) { return fileDescriptorSelect, []int{8} } +var xxx_messageInfo_StreamResponse proto.InternalMessageInfo func (m *StreamResponse) GetError() *Error { if m != nil { @@ -557,6 +818,8 @@ func (m *StreamResponse) GetNdvs() []int64 { } func init() { + proto.RegisterEnum("tipb.EncodeType", EncodeType_name, EncodeType_value) + proto.RegisterEnum("tipb.Endian", Endian_name, Endian_value) proto.RegisterType((*Row)(nil), "tipb.Row") proto.RegisterType((*Error)(nil), "tipb.Error") proto.RegisterType((*SelectResponse)(nil), "tipb.SelectResponse") @@ -566,13 +829,86 @@ func init() { proto.RegisterType((*ChunkMemoryLayout)(nil), "tipb.ChunkMemoryLayout") proto.RegisterType((*UserIdentity)(nil), "tipb.UserIdentity") proto.RegisterType((*StreamResponse)(nil), "tipb.StreamResponse") - proto.RegisterEnum("tipb.EncodeType", EncodeType_name, EncodeType_value) - proto.RegisterEnum("tipb.Endian", Endian_name, Endian_value) } + +func init() { proto.RegisterFile("select.proto", fileDescriptor_86353caa10f8b4d7) } + +var fileDescriptor_86353caa10f8b4d7 = []byte{ + // 1083 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x55, 0x4d, 0x6f, 0x1b, 0x45, + 0x18, 0xf6, 0xc6, 0x1f, 0xb1, 0x5f, 0x7f, 0xc4, 0x99, 0x7e, 0x6d, 0x43, 0x71, 0x5d, 0x23, 0xc0, + 0xb5, 0x2a, 0xa7, 0x04, 0x89, 0xaa, 0x07, 0x40, 0x75, 0x12, 0xda, 0x8a, 0x86, 0x46, 0x9b, 0x20, + 0x24, 0x2e, 0xab, 0xc9, 0xee, 0xd8, 0x5e, 0x65, 0x77, 0x67, 0x33, 0x33, 0x9b, 0xd8, 0xfc, 0x01, + 0x6e, 0xc0, 0x91, 0x9f, 0xc0, 0x4f, 0xe9, 0x8d, 0x1e, 0x2b, 0x0e, 0x15, 0x4a, 0xfe, 0x08, 0x9a, + 0x77, 0x67, 0x13, 0x27, 0xe5, 0x00, 0xe2, 0xc0, 0x69, 0x67, 0x9e, 0xe7, 0x99, 0x77, 0xe6, 0x7d, + 0xdf, 0x67, 0x66, 0xa1, 0x21, 0x59, 0xc8, 0x3c, 0x35, 0x4c, 0x04, 0x57, 0x9c, 0x94, 0x54, 0x90, + 0x1c, 0xac, 0xb5, 0xd8, 0x8c, 0x79, 0xa9, 0xe2, 0x22, 0x43, 0xd7, 0xae, 0x4f, 0xf8, 0x84, 0xe3, + 0x70, 0x5d, 0x8f, 0x0c, 0xba, 0x22, 0x52, 0xa9, 0x70, 0x98, 0x01, 0xbd, 0x4f, 0xa0, 0xe8, 0xf0, + 0x13, 0x72, 0x13, 0x2a, 0x53, 0x1a, 0xfb, 0x21, 0xb3, 0xad, 0xae, 0xd5, 0x6f, 0x38, 0x66, 0x46, + 0x08, 0x94, 0x7c, 0xaa, 0xa8, 0xbd, 0x84, 0x28, 0x8e, 0x7b, 0x8f, 0xa1, 0xbc, 0x2d, 0x04, 0x17, + 0xc4, 0x86, 0x92, 0xc7, 0xfd, 0x6c, 0x49, 0x79, 0x54, 0x7a, 0xf5, 0xf6, 0x6e, 0xc1, 0x41, 0x84, + 0xdc, 0x84, 0x62, 0x24, 0x27, 0xb8, 0xaa, 0x66, 0x08, 0x0d, 0xf4, 0x7e, 0x2a, 0x42, 0x6b, 0x0f, + 0xcf, 0xee, 0x30, 0x99, 0xf0, 0x58, 0x32, 0x72, 0x0f, 0xca, 0x4c, 0x47, 0xc3, 0x28, 0xf5, 0x8d, + 0xfa, 0x50, 0x67, 0x33, 0xc4, 0x0d, 0x9c, 0x8c, 0x21, 0xef, 0x43, 0x49, 0xf0, 0x13, 0x69, 0x2f, + 0x75, 0x8b, 0xfd, 0xfa, 0x46, 0x2d, 0x53, 0x38, 0xfc, 0xc4, 0x41, 0x98, 0xdc, 0x87, 0x8a, 0x37, + 0x4d, 0xe3, 0x43, 0x69, 0x17, 0x51, 0x60, 0x42, 0x6c, 0x6a, 0xcc, 0x6c, 0x6e, 0x04, 0xe4, 0x63, + 0xa8, 0x9e, 0x50, 0x11, 0x07, 0xf1, 0x44, 0xda, 0xa5, 0x45, 0x71, 0xb6, 0xdf, 0x39, 0x49, 0x3e, + 0x80, 0x26, 0x4f, 0x55, 0x92, 0x2a, 0xd7, 0xe3, 0x69, 0xac, 0xa4, 0x5d, 0xee, 0x16, 0xfb, 0x45, + 0xa7, 0x91, 0x81, 0x9b, 0x88, 0x69, 0x91, 0x59, 0x90, 0xa9, 0xec, 0x4a, 0xd7, 0xd2, 0x22, 0x03, + 0xa2, 0x8a, 0xbc, 0x84, 0x6b, 0x59, 0x67, 0x02, 0x1e, 0xbb, 0x32, 0x8d, 0x22, 0x2a, 0x02, 0x26, + 0xed, 0x2a, 0xee, 0xde, 0x31, 0xbb, 0x9b, 0xd6, 0x6d, 0xe7, 0xc2, 0x3d, 0xd4, 0xcd, 0x1d, 0xc2, + 0x2e, 0x23, 0x01, 0x93, 0xe4, 0x11, 0xd4, 0x59, 0xac, 0xab, 0xec, 0xaa, 0x79, 0xc2, 0xec, 0x5a, + 0xd7, 0xea, 0xb7, 0x36, 0xda, 0x26, 0x10, 0x12, 0xfb, 0xf3, 0x84, 0x99, 0xc4, 0x81, 0x9d, 0x23, + 0xba, 0x97, 0xb1, 0x7f, 0x2c, 0x6d, 0xc0, 0x54, 0x70, 0xdc, 0xfb, 0xd9, 0x82, 0x32, 0x16, 0x8a, + 0xec, 0x43, 0x4d, 0x57, 0xd3, 0xc5, 0x76, 0x17, 0x75, 0xbb, 0x47, 0x8f, 0x74, 0x88, 0x3f, 0xde, + 0xde, 0x5d, 0x9f, 0x04, 0x6a, 0x9a, 0x1e, 0x0c, 0x3d, 0x1e, 0xad, 0x27, 0x41, 0x3c, 0xf1, 0x68, + 0xb2, 0xae, 0xb7, 0x5b, 0x97, 0x53, 0x2a, 0x98, 0x7f, 0x30, 0x57, 0x4c, 0x0e, 0xf7, 0x70, 0x3c, + 0xd2, 0x63, 0xa7, 0xaa, 0x23, 0x6d, 0x51, 0x45, 0xc9, 0x43, 0x13, 0x35, 0x62, 0x8a, 0x9a, 0x8a, + 0x37, 0xcf, 0xfb, 0xb7, 0xc3, 0x14, 0x35, 0xe7, 0xc4, 0x15, 0x7a, 0xde, 0xdb, 0x86, 0x65, 0x43, + 0x91, 0x3b, 0x97, 0x4c, 0x59, 0xcc, 0x7b, 0x69, 0xac, 0x79, 0x07, 0x2a, 0x21, 0x8b, 0x27, 0x6a, + 0x8a, 0x36, 0x3b, 0x67, 0x33, 0xac, 0xf7, 0x7b, 0x05, 0x60, 0xeb,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0x14, 0xe0, + 0x86, 0xc7, 0xa3, 0xa1, 0x29, 0xe1, 0x50, 0x05, 0xfe, 0x01, 0x16, 0x64, 0xd7, 0xfa, 0x2b, 0x00, + 0x00, 0xff, 0xff, 0x78, 0xbb, 0x58, 0x0d, 0xbb, 0x08, 0x00, 0x00, +} + func (m *Row) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -580,32 +916,36 @@ func (m *Row) Marshal() (dAtA []byte, err error) { } func (m *Row) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Row) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Handle != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintSelect(dAtA, i, uint64(len(m.Handle))) - i += copy(dAtA[i:], m.Handle) - } if m.Data != nil { - dAtA[i] = 0x12 - i++ + i -= len(m.Data) + copy(dAtA[i:], m.Data) i = encodeVarintSelect(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) + i-- + dAtA[i] = 0x12 } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + if m.Handle != nil { + i -= len(m.Handle) + copy(dAtA[i:], m.Handle) + i = encodeVarintSelect(dAtA, i, uint64(len(m.Handle))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -613,27 +953,30 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintSelect(dAtA, i, uint64(m.Code)) - dAtA[i] = 0x12 - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintSelect(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + i-- + dAtA[i] = 0x12 + i = encodeVarintSelect(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *SelectResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -641,100 +984,112 @@ func (m *SelectResponse) Marshal() (dAtA []byte, err error) { } func (m *SelectResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SelectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintSelect(dAtA, i, uint64(m.Error.Size())) - n1, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Ndvs) > 0 { + for iNdEx := len(m.Ndvs) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintSelect(dAtA, i, uint64(m.Ndvs[iNdEx])) + i-- + dAtA[i] = 0x50 } - i += n1 } - if len(m.Rows) > 0 { - for _, msg := range m.Rows { - dAtA[i] = 0x12 - i++ - i = encodeVarintSelect(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + i = encodeVarintSelect(dAtA, i, uint64(m.EncodeType)) + i-- + dAtA[i] = 0x48 + if len(m.ExecutionSummaries) > 0 { + for iNdEx := len(m.ExecutionSummaries) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ExecutionSummaries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSelect(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x42 } } - if len(m.Chunks) > 0 { - for _, msg := range m.Chunks { - dAtA[i] = 0x1a - i++ - i = encodeVarintSelect(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if m.WarningCount != nil { + i = encodeVarintSelect(dAtA, i, uint64(*m.WarningCount)) + i-- + dAtA[i] = 0x30 + } + if len(m.OutputCounts) > 0 { + for iNdEx := len(m.OutputCounts) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintSelect(dAtA, i, uint64(m.OutputCounts[iNdEx])) + i-- + dAtA[i] = 0x28 } } if len(m.Warnings) > 0 { - for _, msg := range m.Warnings { - dAtA[i] = 0x22 - i++ - i = encodeVarintSelect(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Warnings) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Warnings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSelect(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x22 } } - if len(m.OutputCounts) > 0 { - for _, num := range m.OutputCounts { - dAtA[i] = 0x28 - i++ - i = encodeVarintSelect(dAtA, i, uint64(num)) + if len(m.Chunks) > 0 { + for iNdEx := len(m.Chunks) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Chunks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSelect(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } } - if m.WarningCount != nil { - dAtA[i] = 0x30 - i++ - i = encodeVarintSelect(dAtA, i, uint64(*m.WarningCount)) + if len(m.Rows) > 0 { + for iNdEx := len(m.Rows) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Rows[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSelect(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } } - if len(m.ExecutionSummaries) > 0 { - for _, msg := range m.ExecutionSummaries { - dAtA[i] = 0x42 - i++ - i = encodeVarintSelect(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintSelect(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - dAtA[i] = 0x48 - i++ - i = encodeVarintSelect(dAtA, i, uint64(m.EncodeType)) - if len(m.Ndvs) > 0 { - for _, num := range m.Ndvs { - dAtA[i] = 0x50 - i++ - i = encodeVarintSelect(dAtA, i, uint64(num)) - } - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + return len(dAtA) - i, nil } func (m *Chunk) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -742,40 +1097,46 @@ func (m *Chunk) Marshal() (dAtA []byte, err error) { } func (m *Chunk) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Chunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x1a - i++ - i = encodeVarintSelect(dAtA, i, uint64(m.RowsData.Size())) - n2, err := m.RowsData.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 if len(m.RowsMeta) > 0 { - for _, msg := range m.RowsMeta { - dAtA[i] = 0x22 - i++ - i = encodeVarintSelect(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.RowsMeta) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RowsMeta[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSelect(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x22 } } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + { + size := m.RowsData.Size() + i -= size + if _, err := m.RowsData.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintSelect(dAtA, i, uint64(size)) } - return i, nil + i-- + dAtA[i] = 0x1a + return len(dAtA) - i, nil } func (m *RowMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -783,26 +1144,28 @@ func (m *RowMeta) Marshal() (dAtA []byte, err error) { } func (m *RowMeta) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RowMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintSelect(dAtA, i, uint64(m.Handle)) - dAtA[i] = 0x10 - i++ i = encodeVarintSelect(dAtA, i, uint64(m.Length)) - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + i-- + dAtA[i] = 0x10 + i = encodeVarintSelect(dAtA, i, uint64(m.Handle)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *DAGRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -810,155 +1173,166 @@ func (m *DAGRequest) Marshal() (dAtA []byte, err error) { } func (m *DAGRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DAGRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.StartTsFallback != nil { - dAtA[i] = 0x8 - i++ - i = encodeVarintSelect(dAtA, i, uint64(*m.StartTsFallback)) - } - if len(m.Executors) > 0 { - for _, msg := range m.Executors { - dAtA[i] = 0x12 - i++ - i = encodeVarintSelect(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - dAtA[i] = 0x18 - i++ - i = encodeVarintSelect(dAtA, i, uint64(m.TimeZoneOffset)) - dAtA[i] = 0x20 - i++ - i = encodeVarintSelect(dAtA, i, uint64(m.Flags)) - if len(m.OutputOffsets) > 0 { - for _, num := range m.OutputOffsets { - dAtA[i] = 0x28 - i++ - i = encodeVarintSelect(dAtA, i, uint64(num)) - } + if m.DivPrecisionIncrement != nil { + i = encodeVarintSelect(dAtA, i, uint64(*m.DivPrecisionIncrement)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x98 } - if m.CollectRangeCounts != nil { - dAtA[i] = 0x30 - i++ - if *m.CollectRangeCounts { + if m.ForceEncodeType != nil { + i-- + if *m.ForceEncodeType { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 } - if m.MaxWarningCount != nil { - dAtA[i] = 0x38 - i++ - i = encodeVarintSelect(dAtA, i, uint64(*m.MaxWarningCount)) + if m.RootExecutor != nil { + { + size, err := m.RootExecutor.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSelect(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a } - dAtA[i] = 0x40 - i++ - i = encodeVarintSelect(dAtA, i, uint64(m.EncodeType)) - if m.SqlMode != nil { - dAtA[i] = 0x48 - i++ - i = encodeVarintSelect(dAtA, i, uint64(*m.SqlMode)) + if m.User != nil { + { + size, err := m.User.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSelect(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 } - dAtA[i] = 0x5a - i++ - i = encodeVarintSelect(dAtA, i, uint64(len(m.TimeZoneName))) - i += copy(dAtA[i:], m.TimeZoneName) - if m.CollectExecutionSummaries != nil { - dAtA[i] = 0x60 - i++ - if *m.CollectExecutionSummaries { + if m.IsRpnExpr != nil { + i-- + if *m.IsRpnExpr { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.MaxAllowedPacket != nil { - dAtA[i] = 0x68 - i++ - i = encodeVarintSelect(dAtA, i, uint64(*m.MaxAllowedPacket)) + i-- + dAtA[i] = 0x78 } if m.ChunkMemoryLayout != nil { - dAtA[i] = 0x72 - i++ - i = encodeVarintSelect(dAtA, i, uint64(m.ChunkMemoryLayout.Size())) - n3, err := m.ChunkMemoryLayout.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.ChunkMemoryLayout.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSelect(dAtA, i, uint64(size)) } - i += n3 + i-- + dAtA[i] = 0x72 } - if m.IsRpnExpr != nil { - dAtA[i] = 0x78 - i++ - if *m.IsRpnExpr { + if m.MaxAllowedPacket != nil { + i = encodeVarintSelect(dAtA, i, uint64(*m.MaxAllowedPacket)) + i-- + dAtA[i] = 0x68 + } + if m.CollectExecutionSummaries != nil { + i-- + if *m.CollectExecutionSummaries { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x60 } - if m.User != nil { - dAtA[i] = 0x82 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintSelect(dAtA, i, uint64(m.User.Size())) - n4, err := m.User.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 + i -= len(m.TimeZoneName) + copy(dAtA[i:], m.TimeZoneName) + i = encodeVarintSelect(dAtA, i, uint64(len(m.TimeZoneName))) + i-- + dAtA[i] = 0x5a + if m.SqlMode != nil { + i = encodeVarintSelect(dAtA, i, uint64(*m.SqlMode)) + i-- + dAtA[i] = 0x48 } - if m.RootExecutor != nil { - dAtA[i] = 0x8a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintSelect(dAtA, i, uint64(m.RootExecutor.Size())) - n5, err := m.RootExecutor.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 + i = encodeVarintSelect(dAtA, i, uint64(m.EncodeType)) + i-- + dAtA[i] = 0x40 + if m.MaxWarningCount != nil { + i = encodeVarintSelect(dAtA, i, uint64(*m.MaxWarningCount)) + i-- + dAtA[i] = 0x38 } - if m.ForceEncodeType != nil { - dAtA[i] = 0x90 - i++ - dAtA[i] = 0x1 - i++ - if *m.ForceEncodeType { + if m.CollectRangeCounts != nil { + i-- + if *m.CollectRangeCounts { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x30 } - if m.DivPrecisionIncrement != nil { - dAtA[i] = 0x98 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintSelect(dAtA, i, uint64(*m.DivPrecisionIncrement)) + if len(m.OutputOffsets) > 0 { + for iNdEx := len(m.OutputOffsets) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintSelect(dAtA, i, uint64(m.OutputOffsets[iNdEx])) + i-- + dAtA[i] = 0x28 + } + } + i = encodeVarintSelect(dAtA, i, uint64(m.Flags)) + i-- + dAtA[i] = 0x20 + i = encodeVarintSelect(dAtA, i, uint64(m.TimeZoneOffset)) + i-- + dAtA[i] = 0x18 + if len(m.Executors) > 0 { + for iNdEx := len(m.Executors) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Executors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSelect(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + if m.StartTsFallback != nil { + i = encodeVarintSelect(dAtA, i, uint64(*m.StartTsFallback)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *ChunkMemoryLayout) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -966,23 +1340,25 @@ func (m *ChunkMemoryLayout) Marshal() (dAtA []byte, err error) { } func (m *ChunkMemoryLayout) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ChunkMemoryLayout) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0x8 - i++ i = encodeVarintSelect(dAtA, i, uint64(m.Endian)) - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } func (m *UserIdentity) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -990,28 +1366,32 @@ func (m *UserIdentity) Marshal() (dAtA []byte, err error) { } func (m *UserIdentity) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UserIdentity) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintSelect(dAtA, i, uint64(len(m.UserName))) - i += copy(dAtA[i:], m.UserName) - dAtA[i] = 0x12 - i++ + i -= len(m.UserHost) + copy(dAtA[i:], m.UserHost) i = encodeVarintSelect(dAtA, i, uint64(len(m.UserHost))) - i += copy(dAtA[i:], m.UserHost) - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil + i-- + dAtA[i] = 0x12 + i -= len(m.UserName) + copy(dAtA[i:], m.UserName) + i = encodeVarintSelect(dAtA, i, uint64(len(m.UserName))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil } func (m *StreamResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1019,75 +1399,88 @@ func (m *StreamResponse) Marshal() (dAtA []byte, err error) { } func (m *StreamResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StreamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintSelect(dAtA, i, uint64(m.Error.Size())) - n6, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Ndvs) > 0 { + for iNdEx := len(m.Ndvs) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintSelect(dAtA, i, uint64(m.Ndvs[iNdEx])) + i-- + dAtA[i] = 0x38 } - i += n6 - } - dAtA[i] = 0x1a - i++ - i = encodeVarintSelect(dAtA, i, uint64(m.Data.Size())) - n7, err := m.Data.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err } - i += n7 - if len(m.Warnings) > 0 { - for _, msg := range m.Warnings { - dAtA[i] = 0x22 - i++ - i = encodeVarintSelect(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if m.WarningCount != nil { + i = encodeVarintSelect(dAtA, i, uint64(*m.WarningCount)) + i-- + dAtA[i] = 0x30 } if len(m.OutputCounts) > 0 { - for _, num := range m.OutputCounts { + for iNdEx := len(m.OutputCounts) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintSelect(dAtA, i, uint64(m.OutputCounts[iNdEx])) + i-- dAtA[i] = 0x28 - i++ - i = encodeVarintSelect(dAtA, i, uint64(num)) } } - if m.WarningCount != nil { - dAtA[i] = 0x30 - i++ - i = encodeVarintSelect(dAtA, i, uint64(*m.WarningCount)) + if len(m.Warnings) > 0 { + for iNdEx := len(m.Warnings) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Warnings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSelect(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } } - if len(m.Ndvs) > 0 { - for _, num := range m.Ndvs { - dAtA[i] = 0x38 - i++ - i = encodeVarintSelect(dAtA, i, uint64(num)) + { + size := m.Data.Size() + i -= size + if _, err := m.Data.MarshalTo(dAtA[i:]); err != nil { + return 0, err } + i = encodeVarintSelect(dAtA, i, uint64(size)) } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) + i-- + dAtA[i] = 0x1a + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSelect(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func encodeVarintSelect(dAtA []byte, offset int, v uint64) int { + offset -= sovSelect(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *Row) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Handle != nil { @@ -1098,25 +1491,25 @@ func (m *Row) Size() (n int) { l = len(m.Data) n += 1 + l + sovSelect(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Error) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovSelect(uint64(m.Code)) l = len(m.Msg) n += 1 + l + sovSelect(uint64(l)) - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SelectResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -1161,13 +1554,13 @@ func (m *SelectResponse) Size() (n int) { n += 1 + sovSelect(uint64(e)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Chunk) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = m.RowsData.Size() @@ -1178,24 +1571,24 @@ func (m *Chunk) Size() (n int) { n += 1 + l + sovSelect(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RowMeta) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovSelect(uint64(m.Handle)) n += 1 + sovSelect(uint64(m.Length)) - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DAGRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StartTsFallback != nil { @@ -1253,36 +1646,36 @@ func (m *DAGRequest) Size() (n int) { if m.DivPrecisionIncrement != nil { n += 2 + sovSelect(uint64(*m.DivPrecisionIncrement)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ChunkMemoryLayout) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovSelect(uint64(m.Endian)) - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UserIdentity) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.UserName) n += 1 + l + sovSelect(uint64(l)) l = len(m.UserHost) n += 1 + l + sovSelect(uint64(l)) - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StreamResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -1310,21 +1703,11 @@ func (m *StreamResponse) Size() (n int) { n += 1 + sovSelect(uint64(e)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovSelect(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozSelect(x uint64) (n int) { return sovSelect(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1344,7 +1727,7 @@ func (m *Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1372,7 +1755,7 @@ func (m *Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1381,6 +1764,9 @@ func (m *Row) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1403,7 +1789,7 @@ func (m *Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1412,6 +1798,9 @@ func (m *Row) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1426,13 +1815,12 @@ func (m *Row) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSelect } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1457,7 +1845,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1485,7 +1873,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= (int32(b) & 0x7F) << shift + m.Code |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -1504,7 +1892,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1514,6 +1902,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1525,13 +1916,12 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSelect } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1556,7 +1946,7 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1584,7 +1974,7 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1593,6 +1983,9 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1617,7 +2010,7 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1626,6 +2019,9 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1648,7 +2044,7 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1657,6 +2053,9 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1679,7 +2078,7 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1688,6 +2087,9 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1708,7 +2110,7 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1725,7 +2127,7 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1734,9 +2136,23 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.OutputCounts) == 0 { + m.OutputCounts = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 for shift := uint(0); ; shift += 7 { @@ -1748,7 +2164,7 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1772,7 +2188,7 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1792,7 +2208,7 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1801,6 +2217,9 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1823,7 +2242,7 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EncodeType |= (EncodeType(b) & 0x7F) << shift + m.EncodeType |= EncodeType(b&0x7F) << shift if b < 0x80 { break } @@ -1840,7 +2259,7 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1857,7 +2276,7 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1866,9 +2285,23 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.Ndvs) == 0 { + m.Ndvs = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 for shift := uint(0); ; shift += 7 { @@ -1880,7 +2313,7 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1896,13 +2329,12 @@ func (m *SelectResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSelect } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1927,7 +2359,7 @@ func (m *Chunk) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1955,7 +2387,7 @@ func (m *Chunk) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1964,6 +2396,9 @@ func (m *Chunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1985,7 +2420,7 @@ func (m *Chunk) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1994,6 +2429,9 @@ func (m *Chunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2008,13 +2446,12 @@ func (m *Chunk) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSelect } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2039,7 +2476,7 @@ func (m *RowMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2067,7 +2504,7 @@ func (m *RowMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Handle |= (int64(b) & 0x7F) << shift + m.Handle |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2086,7 +2523,7 @@ func (m *RowMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Length |= (int64(b) & 0x7F) << shift + m.Length |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2097,13 +2534,12 @@ func (m *RowMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSelect } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2128,7 +2564,7 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2156,7 +2592,7 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2176,7 +2612,7 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2185,6 +2621,9 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2207,7 +2646,7 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TimeZoneOffset |= (int64(b) & 0x7F) << shift + m.TimeZoneOffset |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2226,7 +2665,7 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Flags |= (uint64(b) & 0x7F) << shift + m.Flags |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2243,7 +2682,7 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint32(b) & 0x7F) << shift + v |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -2260,7 +2699,7 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2269,9 +2708,23 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.OutputOffsets) == 0 { + m.OutputOffsets = make([]uint32, 0, elementCount) + } for iNdEx < postIndex { var v uint32 for shift := uint(0); ; shift += 7 { @@ -2283,7 +2736,7 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint32(b) & 0x7F) << shift + v |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -2307,7 +2760,7 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2328,7 +2781,7 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2348,7 +2801,7 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EncodeType |= (EncodeType(b) & 0x7F) << shift + m.EncodeType |= EncodeType(b&0x7F) << shift if b < 0x80 { break } @@ -2367,7 +2820,7 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2387,7 +2840,7 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2397,6 +2850,9 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2416,7 +2872,7 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2437,7 +2893,7 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2457,7 +2913,7 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2466,6 +2922,9 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2490,7 +2949,7 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2511,7 +2970,7 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2520,6 +2979,9 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2544,7 +3006,7 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2553,6 +3015,9 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2577,7 +3042,7 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2598,7 +3063,7 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint32(b) & 0x7F) << shift + v |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -2610,13 +3075,12 @@ func (m *DAGRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSelect } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2641,7 +3105,7 @@ func (m *ChunkMemoryLayout) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2669,7 +3133,7 @@ func (m *ChunkMemoryLayout) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Endian |= (Endian(b) & 0x7F) << shift + m.Endian |= Endian(b&0x7F) << shift if b < 0x80 { break } @@ -2680,13 +3144,12 @@ func (m *ChunkMemoryLayout) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSelect } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2711,7 +3174,7 @@ func (m *UserIdentity) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2739,7 +3202,7 @@ func (m *UserIdentity) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2749,6 +3212,9 @@ func (m *UserIdentity) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2768,7 +3234,7 @@ func (m *UserIdentity) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2778,6 +3244,9 @@ func (m *UserIdentity) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2789,13 +3258,12 @@ func (m *UserIdentity) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSelect } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2820,7 +3288,7 @@ func (m *StreamResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2848,7 +3316,7 @@ func (m *StreamResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2857,6 +3325,9 @@ func (m *StreamResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2881,7 +3352,7 @@ func (m *StreamResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2890,6 +3361,9 @@ func (m *StreamResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2911,7 +3385,7 @@ func (m *StreamResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2920,6 +3394,9 @@ func (m *StreamResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2940,7 +3417,7 @@ func (m *StreamResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2957,7 +3434,7 @@ func (m *StreamResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2966,9 +3443,23 @@ func (m *StreamResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.OutputCounts) == 0 { + m.OutputCounts = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 for shift := uint(0); ; shift += 7 { @@ -2980,7 +3471,7 @@ func (m *StreamResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -3004,7 +3495,7 @@ func (m *StreamResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -3022,7 +3513,7 @@ func (m *StreamResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -3039,7 +3530,7 @@ func (m *StreamResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3048,9 +3539,23 @@ func (m *StreamResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSelect } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthSelect + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.Ndvs) == 0 { + m.Ndvs = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 for shift := uint(0); ; shift += 7 { @@ -3062,7 +3567,7 @@ func (m *StreamResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -3078,13 +3583,12 @@ func (m *StreamResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSelect } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3097,6 +3601,7 @@ func (m *StreamResponse) Unmarshal(dAtA []byte) error { func skipSelect(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -3128,10 +3633,8 @@ func skipSelect(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -3148,126 +3651,34 @@ func skipSelect(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthSelect } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSelect - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipSelect(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSelect + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthSelect + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthSelect = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowSelect = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthSelect = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSelect = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSelect = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("select.proto", fileDescriptorSelect) } - -var fileDescriptorSelect = []byte{ - // 1057 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x55, 0xcf, 0x6f, 0x1b, 0x45, - 0x14, 0xce, 0xc6, 0x3f, 0x62, 0x3f, 0xff, 0x88, 0x33, 0xe9, 0x8f, 0x6d, 0x28, 0xae, 0x6b, 0x04, - 0x38, 0x56, 0xe5, 0x94, 0x20, 0x51, 0x71, 0x00, 0x54, 0x27, 0xa1, 0xad, 0x68, 0x68, 0xb4, 0x09, - 0x42, 0xe2, 0xb2, 0x9a, 0xac, 0xc7, 0xf6, 0x2a, 0xbb, 0x3b, 0x9b, 0x99, 0xd9, 0xc4, 0xe6, 0x1f, - 0xe0, 0x06, 0x57, 0xfe, 0xa4, 0xde, 0xe0, 0xcc, 0xa1, 0x42, 0xe1, 0x1f, 0x41, 0xf3, 0x66, 0x36, - 0x71, 0x52, 0x0e, 0x20, 0x0e, 0x3d, 0xed, 0xcc, 0xf7, 0x7d, 0xf3, 0x66, 0xe6, 0xbd, 0x6f, 0xde, - 0x42, 0x5d, 0xb2, 0x88, 0x05, 0x6a, 0x90, 0x0a, 0xae, 0x38, 0x29, 0xaa, 0x30, 0x3d, 0xde, 0x68, - 0xb2, 0x19, 0x0b, 0x32, 0xc5, 0x85, 0x41, 0x37, 0x6e, 0x4d, 0xf8, 0x84, 0xe3, 0x70, 0x4b, 0x8f, - 0x0c, 0xda, 0xfd, 0x04, 0x0a, 0x1e, 0x3f, 0x27, 0x77, 0xa0, 0x3c, 0xa5, 0xc9, 0x28, 0x62, 0xae, - 0xd3, 0x71, 0x7a, 0x75, 0xcf, 0xce, 0x08, 0x81, 0xe2, 0x88, 0x2a, 0xea, 0x2e, 0x23, 0x8a, 0xe3, - 0xee, 0xe7, 0x50, 0xda, 0x13, 0x82, 0x0b, 0xe2, 0x42, 0x31, 0xe0, 0x23, 0xb3, 0xa4, 0x34, 0x2c, - 0xbe, 0x7e, 0xf3, 0x60, 0xc9, 0x43, 0x84, 0xdc, 0x81, 0x42, 0x2c, 0x27, 0xb8, 0xaa, 0x6a, 0x09, - 0x0d, 0x74, 0x7f, 0x2e, 0x40, 0xf3, 0x10, 0x8f, 0xea, 0x31, 0x99, 0xf2, 0x44, 0x32, 0xf2, 0x10, - 0x4a, 0x4c, 0x47, 0xc3, 0x28, 0xb5, 0xed, 0xda, 0x40, 0x1f, 0x7e, 0x80, 0x1b, 0x78, 0x86, 0x21, - 0xef, 0x43, 0x51, 0xf0, 0x73, 0xe9, 0x2e, 0x77, 0x0a, 0xbd, 0xda, 0x76, 0xd5, 0x28, 0x3c, 0x7e, - 0xee, 0x21, 0x4c, 0x36, 0xa1, 0x1c, 0x4c, 0xb3, 0xe4, 0x44, 0xba, 0x05, 0x14, 0xd8, 0x10, 0x3b, - 0x1a, 0xb3, 0x9b, 0x5b, 0x01, 0xf9, 0x18, 0x2a, 0xe7, 0x54, 0x24, 0x61, 0x32, 0x91, 0x6e, 0x71, - 0x51, 0x6c, 0xf6, 0xbb, 0x24, 0xc9, 0x07, 0xd0, 0xe0, 0x99, 0x4a, 0x33, 0xe5, 0x07, 0x3c, 0x4b, - 0x94, 0x74, 0x4b, 0x9d, 0x42, 0xaf, 0xe0, 0xd5, 0x0d, 0xb8, 0x83, 0x98, 0x16, 0xd9, 0x05, 0x46, - 0xe5, 0x96, 0x3b, 0x8e, 0x16, 0x59, 0x10, 0x55, 0xe4, 0x15, 0xac, 0x9b, 0x42, 0x84, 0x3c, 0xf1, - 0x65, 0x16, 0xc7, 0x54, 0x84, 0x4c, 0xba, 0x15, 0xdc, 0xbd, 0x6d, 0x77, 0xb7, 0x95, 0xda, 0x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agent.pb.go b/go-tipb/topsql_agent.pb.go index 9957d0240..381c702eb 100644 --- a/go-tipb/topsql_agent.pb.go +++ b/go-tipb/topsql_agent.pb.go @@ -4,17 +4,18 @@ package tipb import ( + "context" "fmt" + "io" + "math" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - - math "math" - - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" - io "io" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. @@ -22,16 +23,50 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + type TopSQLRecord struct { SqlDigest []byte `protobuf:"bytes,1,opt,name=sql_digest,json=sqlDigest,proto3" json:"sql_digest,omitempty"` PlanDigest []byte `protobuf:"bytes,2,opt,name=plan_digest,json=planDigest,proto3" json:"plan_digest,omitempty"` - Items []*TopSQLRecordItem `protobuf:"bytes,3,rep,name=items" json:"items,omitempty"` + Items []*TopSQLRecordItem `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` } -func (m *TopSQLRecord) Reset() { *m = TopSQLRecord{} } -func (m *TopSQLRecord) String() string { return proto.CompactTextString(m) } -func (*TopSQLRecord) ProtoMessage() {} -func (*TopSQLRecord) Descriptor() ([]byte, []int) { return fileDescriptorTopsqlAgent, []int{0} } +func (m *TopSQLRecord) Reset() { *m = TopSQLRecord{} } +func (m *TopSQLRecord) String() string { return proto.CompactTextString(m) } +func (*TopSQLRecord) ProtoMessage() {} +func (*TopSQLRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_1b19f3a2fcd6965e, []int{0} +} +func (m *TopSQLRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopSQLRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopSQLRecord.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopSQLRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopSQLRecord.Merge(m, src) +} +func (m *TopSQLRecord) XXX_Size() int { + return m.Size() +} +func (m *TopSQLRecord) XXX_DiscardUnknown() { + xxx_messageInfo_TopSQLRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_TopSQLRecord proto.InternalMessageInfo func (m *TopSQLRecord) GetSqlDigest() []byte { if m != nil { @@ -58,15 +93,43 @@ type TopSQLRecordItem struct { TimestampSec uint64 `protobuf:"varint,1,opt,name=timestamp_sec,json=timestampSec,proto3" json:"timestamp_sec,omitempty"` CpuTimeMs uint32 `protobuf:"varint,2,opt,name=cpu_time_ms,json=cpuTimeMs,proto3" json:"cpu_time_ms,omitempty"` StmtExecCount uint64 `protobuf:"varint,3,opt,name=stmt_exec_count,json=stmtExecCount,proto3" json:"stmt_exec_count,omitempty"` - StmtKvExecCount map[string]uint64 `protobuf:"bytes,4,rep,name=stmt_kv_exec_count,json=stmtKvExecCount" json:"stmt_kv_exec_count,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + StmtKvExecCount map[string]uint64 `protobuf:"bytes,4,rep,name=stmt_kv_exec_count,json=stmtKvExecCount,proto3" json:"stmt_kv_exec_count,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` StmtDurationSumNs uint64 `protobuf:"varint,5,opt,name=stmt_duration_sum_ns,json=stmtDurationSumNs,proto3" json:"stmt_duration_sum_ns,omitempty"` StmtDurationCount uint64 `protobuf:"varint,6,opt,name=stmt_duration_count,json=stmtDurationCount,proto3" json:"stmt_duration_count,omitempty"` } -func (m *TopSQLRecordItem) Reset() { *m = TopSQLRecordItem{} } -func (m *TopSQLRecordItem) String() string { return proto.CompactTextString(m) } -func (*TopSQLRecordItem) ProtoMessage() {} -func (*TopSQLRecordItem) Descriptor() ([]byte, []int) { return fileDescriptorTopsqlAgent, []int{1} } +func (m *TopSQLRecordItem) Reset() { *m = TopSQLRecordItem{} } +func (m *TopSQLRecordItem) String() string { return proto.CompactTextString(m) } +func (*TopSQLRecordItem) ProtoMessage() {} +func (*TopSQLRecordItem) Descriptor() ([]byte, []int) { + return fileDescriptor_1b19f3a2fcd6965e, []int{1} +} +func (m *TopSQLRecordItem) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopSQLRecordItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopSQLRecordItem.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopSQLRecordItem) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopSQLRecordItem.Merge(m, src) +} +func (m *TopSQLRecordItem) XXX_Size() int { + return m.Size() +} +func (m *TopSQLRecordItem) XXX_DiscardUnknown() { + xxx_messageInfo_TopSQLRecordItem.DiscardUnknown(m) +} + +var xxx_messageInfo_TopSQLRecordItem proto.InternalMessageInfo func (m *TopSQLRecordItem) GetTimestampSec() uint64 { if m != nil { @@ -120,10 +183,38 @@ type SQLMeta struct { IsInternalSql bool `protobuf:"varint,3,opt,name=is_internal_sql,json=isInternalSql,proto3" json:"is_internal_sql,omitempty"` } -func (m *SQLMeta) Reset() { *m = SQLMeta{} } -func (m *SQLMeta) String() string { return proto.CompactTextString(m) } -func (*SQLMeta) ProtoMessage() {} -func (*SQLMeta) Descriptor() ([]byte, []int) { return fileDescriptorTopsqlAgent, []int{2} } +func (m *SQLMeta) Reset() { *m = SQLMeta{} } +func (m *SQLMeta) String() string { return proto.CompactTextString(m) } +func (*SQLMeta) ProtoMessage() {} +func (*SQLMeta) Descriptor() ([]byte, []int) { + return fileDescriptor_1b19f3a2fcd6965e, []int{2} +} +func (m *SQLMeta) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SQLMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SQLMeta.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SQLMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_SQLMeta.Merge(m, src) +} +func (m *SQLMeta) XXX_Size() int { + return m.Size() +} +func (m *SQLMeta) XXX_DiscardUnknown() { + xxx_messageInfo_SQLMeta.DiscardUnknown(m) +} + +var xxx_messageInfo_SQLMeta proto.InternalMessageInfo func (m *SQLMeta) GetSqlDigest() []byte { if m != nil { @@ -161,10 +252,38 @@ type PlanMeta struct { EncodedNormalizedPlan string `protobuf:"bytes,3,opt,name=encoded_normalized_plan,json=encodedNormalizedPlan,proto3" json:"encoded_normalized_plan,omitempty"` } -func (m *PlanMeta) Reset() { *m = PlanMeta{} } -func (m *PlanMeta) String() string { return proto.CompactTextString(m) } -func (*PlanMeta) ProtoMessage() {} -func (*PlanMeta) Descriptor() ([]byte, []int) { return fileDescriptorTopsqlAgent, []int{3} } +func (m *PlanMeta) Reset() { *m = PlanMeta{} } +func (m *PlanMeta) String() string { return proto.CompactTextString(m) } +func (*PlanMeta) ProtoMessage() {} +func (*PlanMeta) Descriptor() ([]byte, []int) { + return fileDescriptor_1b19f3a2fcd6965e, []int{3} +} +func (m *PlanMeta) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PlanMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PlanMeta.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PlanMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlanMeta.Merge(m, src) +} +func (m *PlanMeta) XXX_Size() int { + return m.Size() +} +func (m *PlanMeta) XXX_DiscardUnknown() { + xxx_messageInfo_PlanMeta.DiscardUnknown(m) +} + +var xxx_messageInfo_PlanMeta proto.InternalMessageInfo func (m *PlanMeta) GetPlanDigest() []byte { if m != nil { @@ -190,18 +309,74 @@ func (m *PlanMeta) GetEncodedNormalizedPlan() string { type EmptyResponse struct { } -func (m *EmptyResponse) Reset() { *m = EmptyResponse{} } -func (m *EmptyResponse) String() string { return proto.CompactTextString(m) } -func (*EmptyResponse) ProtoMessage() {} -func (*EmptyResponse) Descriptor() ([]byte, []int) { return fileDescriptorTopsqlAgent, []int{4} } +func (m *EmptyResponse) Reset() { *m = EmptyResponse{} } +func (m *EmptyResponse) String() string { return proto.CompactTextString(m) } +func (*EmptyResponse) ProtoMessage() {} +func (*EmptyResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1b19f3a2fcd6965e, []int{4} +} +func (m *EmptyResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EmptyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EmptyResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EmptyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_EmptyResponse.Merge(m, src) +} +func (m *EmptyResponse) XXX_Size() int { + return m.Size() +} +func (m *EmptyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_EmptyResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_EmptyResponse proto.InternalMessageInfo type TopSQLSubRequest struct { } -func (m *TopSQLSubRequest) Reset() { *m = TopSQLSubRequest{} } -func (m *TopSQLSubRequest) String() string { return proto.CompactTextString(m) } -func (*TopSQLSubRequest) ProtoMessage() {} -func (*TopSQLSubRequest) Descriptor() ([]byte, []int) { return fileDescriptorTopsqlAgent, []int{5} } +func (m *TopSQLSubRequest) Reset() { *m = TopSQLSubRequest{} } +func (m *TopSQLSubRequest) String() string { return proto.CompactTextString(m) } +func (*TopSQLSubRequest) ProtoMessage() {} +func (*TopSQLSubRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1b19f3a2fcd6965e, []int{5} +} +func (m *TopSQLSubRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopSQLSubRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopSQLSubRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopSQLSubRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopSQLSubRequest.Merge(m, src) +} +func (m *TopSQLSubRequest) XXX_Size() int { + return m.Size() +} +func (m *TopSQLSubRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TopSQLSubRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TopSQLSubRequest proto.InternalMessageInfo type TopSQLSubResponse struct { // Types that are valid to be assigned to RespOneof: @@ -211,10 +386,38 @@ type TopSQLSubResponse struct { RespOneof isTopSQLSubResponse_RespOneof `protobuf_oneof:"resp_oneof"` } -func (m *TopSQLSubResponse) Reset() { *m = TopSQLSubResponse{} } -func (m *TopSQLSubResponse) String() string { return proto.CompactTextString(m) } -func (*TopSQLSubResponse) ProtoMessage() {} -func (*TopSQLSubResponse) Descriptor() ([]byte, []int) { return fileDescriptorTopsqlAgent, []int{6} } +func (m *TopSQLSubResponse) Reset() { *m = TopSQLSubResponse{} } +func (m *TopSQLSubResponse) String() string { return proto.CompactTextString(m) } +func (*TopSQLSubResponse) ProtoMessage() {} +func (*TopSQLSubResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1b19f3a2fcd6965e, []int{6} +} +func (m *TopSQLSubResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopSQLSubResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopSQLSubResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopSQLSubResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopSQLSubResponse.Merge(m, src) +} +func (m *TopSQLSubResponse) XXX_Size() int { + return m.Size() +} +func (m *TopSQLSubResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TopSQLSubResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TopSQLSubResponse proto.InternalMessageInfo type isTopSQLSubResponse_RespOneof interface { isTopSQLSubResponse_RespOneof() @@ -223,13 +426,13 @@ type isTopSQLSubResponse_RespOneof interface { } type TopSQLSubResponse_Record struct { - Record *TopSQLRecord `protobuf:"bytes,1,opt,name=record,oneof"` + Record *TopSQLRecord `protobuf:"bytes,1,opt,name=record,proto3,oneof" json:"record,omitempty"` } type TopSQLSubResponse_SqlMeta struct { - SqlMeta *SQLMeta `protobuf:"bytes,2,opt,name=sql_meta,json=sqlMeta,oneof"` + SqlMeta *SQLMeta `protobuf:"bytes,2,opt,name=sql_meta,json=sqlMeta,proto3,oneof" json:"sql_meta,omitempty"` } type TopSQLSubResponse_PlanMeta struct { - PlanMeta *PlanMeta `protobuf:"bytes,3,opt,name=plan_meta,json=planMeta,oneof"` + PlanMeta *PlanMeta `protobuf:"bytes,3,opt,name=plan_meta,json=planMeta,proto3,oneof" json:"plan_meta,omitempty"` } func (*TopSQLSubResponse_Record) isTopSQLSubResponse_RespOneof() {} @@ -264,102 +467,19 @@ func (m *TopSQLSubResponse) GetPlanMeta() *PlanMeta { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*TopSQLSubResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _TopSQLSubResponse_OneofMarshaler, _TopSQLSubResponse_OneofUnmarshaler, _TopSQLSubResponse_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TopSQLSubResponse) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*TopSQLSubResponse_Record)(nil), (*TopSQLSubResponse_SqlMeta)(nil), (*TopSQLSubResponse_PlanMeta)(nil), } } -func _TopSQLSubResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*TopSQLSubResponse) - // resp_oneof - switch x := m.RespOneof.(type) { - case *TopSQLSubResponse_Record: - _ = b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Record); err != nil { - return err - } - case *TopSQLSubResponse_SqlMeta: - _ = b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.SqlMeta); err != nil { - return err - } - case *TopSQLSubResponse_PlanMeta: - _ = b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.PlanMeta); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("TopSQLSubResponse.RespOneof has unexpected type %T", x) - } - return nil -} - -func _TopSQLSubResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*TopSQLSubResponse) - switch tag { - case 1: // resp_oneof.record - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(TopSQLRecord) - err := b.DecodeMessage(msg) - m.RespOneof = &TopSQLSubResponse_Record{msg} - return true, err - case 2: // resp_oneof.sql_meta - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(SQLMeta) - err := b.DecodeMessage(msg) - m.RespOneof = &TopSQLSubResponse_SqlMeta{msg} - return true, err - case 3: // resp_oneof.plan_meta - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(PlanMeta) - err := b.DecodeMessage(msg) - m.RespOneof = &TopSQLSubResponse_PlanMeta{msg} - return true, err - default: - return false, nil - } -} - -func _TopSQLSubResponse_OneofSizer(msg proto.Message) (n int) { - m := msg.(*TopSQLSubResponse) - // resp_oneof - switch x := m.RespOneof.(type) { - case *TopSQLSubResponse_Record: - s := proto.Size(x.Record) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *TopSQLSubResponse_SqlMeta: - s := proto.Size(x.SqlMeta) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *TopSQLSubResponse_PlanMeta: - s := proto.Size(x.PlanMeta) - n += proto.SizeVarint(3<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - func init() { proto.RegisterType((*TopSQLRecord)(nil), "tipb.TopSQLRecord") proto.RegisterType((*TopSQLRecordItem)(nil), "tipb.TopSQLRecordItem") + proto.RegisterMapType((map[string]uint64)(nil), "tipb.TopSQLRecordItem.StmtKvExecCountEntry") proto.RegisterType((*SQLMeta)(nil), "tipb.SQLMeta") proto.RegisterType((*PlanMeta)(nil), "tipb.PlanMeta") proto.RegisterType((*EmptyResponse)(nil), "tipb.EmptyResponse") @@ -367,6 +487,58 @@ func init() { proto.RegisterType((*TopSQLSubResponse)(nil), "tipb.TopSQLSubResponse") } +func init() { proto.RegisterFile("topsql_agent.proto", fileDescriptor_1b19f3a2fcd6965e) } + +var fileDescriptor_1b19f3a2fcd6965e = []byte{ + // 724 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xcd, 0x4e, 0xdb, 0x4c, + 0x14, 0xb5, 0x49, 0x80, 0xe4, 0x26, 0x26, 0x30, 0x84, 0x8f, 0x28, 0xd2, 0xe7, 0x0f, 0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, 0xf3, 0x7e, 0xa0, 0xc4, + 0x8a, 0xd8, 0xb8, 0x41, 0xad, 0x7e, 0x20, 0x73, 0xf7, 0xb9, 0xed, 0x47, 0x82, 0xc4, 0x91, 0x13, + 0x28, 0x9e, 0xcc, 0xbd, 0x80, 0x0d, 0x9f, 0xef, 0x65, 0xa8, 0xd5, 0x0f, 0x1a, 0x9f, 0x75, 0x28, + 0x74, 0x02, 0x27, 0x52, 0xa3, 0x27, 0xb6, 0x4a, 0x9f, 0xda, 0xaa, 0x07, 0x50, 0x19, 0x19, 0x2e, + 0x0b, 0xd9, 0xf4, 0x11, 0x4f, 0x52, 0x0d, 0x3d, 0x83, 0x55, 0x12, 0x79, 0xb4, 0x4b, 0xba, 0xf6, + 0x64, 0x43, 0x4e, 0x35, 0xac, 0x64, 0xe5, 0xc3, 0xb1, 0xbe, 0x46, 0x05, 0x8c, 0x9d, 0x90, 0x89, + 0x73, 0x4c, 0x38, 0xa3, 0x11, 0x27, 0x0d, 0x34, 0x5c, 0x4c, 0x2b, 0x71, 0x31, 0xe9, 0x27, 0x84, + 0x8b, 0xc6, 0x77, 0x1d, 0x96, 0x46, 0xc0, 0x94, 0x89, 0x36, 0x60, 0x2e, 0x56, 0xbb, 0xa1, 0x7c, + 0x97, 0x5a, 0x68, 0x7a, 0x6b, 0x76, 0x35, 0x9c, 0x71, 0xd0, 0x43, 0x28, 0xc8, 0x94, 0x43, 0x22, + 0x1c, 0xf5, 0x0b, 0xa5, 0x96, 0x91, 0xf2, 0xb3, 0x6b, 0xd8, 0xd5, 0xf0, 0x3c, 0xef, 0x07, 0x2a, + 0x96, 0xc7, 0x50, 0x54, 0xb1, 0x28, 0x72, 0x4e, 0x91, 0x17, 0x52, 0xf2, 0x30, 0xb9, 0x5d, 0x0d, + 0x17, 0x58, 0x76, 0x6e, 0x97, 0x01, 0x62, 0xc2, 0x99, 0x4d, 0x23, 0x42, 0xdf, 0xb7, 0x7e, 0xe8, + 0x50, 0x4a, 0x3d, 0xbc, 0x96, 0x6f, 0x03, 0x6a, 0xc3, 0x32, 0x26, 0x8c, 0xc6, 0x62, 0xd4, 0x18, + 0x47, 0xb7, 0xb8, 0xad, 0x2f, 0xa7, 0xd8, 0x78, 0x20, 0xda, 0xba, 0x8e, 0x9e, 0x83, 0x91, 0x6a, + 0x0c, 0x77, 0x66, 0xdc, 0xfb, 0xdd, 0x8d, 0x5b, 0xb0, 0x90, 0x36, 0x5e, 0x5f, 0xf9, 0xc4, 0x8f, + 0xdc, 0xd9, 0xda, 0xea, 0x0c, 0x1f, 0xa8, 0x4e, 0xe2, 0x5a, 0x89, 0x8b, 0x5e, 0x41, 0xd1, 0x4a, + 0x5c, 0xee, 0xc5, 0xbe, 0x4b, 0xd0, 0xd8, 0xf3, 0x72, 0x73, 0x53, 0xf5, 0xd5, 0x29, 0x7c, 0xa8, + 0xf8, 0x44, 0x6f, 0x6f, 0x5d, 0x7e, 0x2b, 0xe8, 0x3f, 0xaf, 0x4c, 0xfd, 0xe2, 0xca, 0xd4, 0x7f, + 0x5d, 0x99, 0xfa, 0x97, 0x81, 0xa9, 0x7d, 0x1d, 0x98, 0xda, 0xc5, 0xc0, 0xd4, 0x2e, 0x07, 0xa6, + 0x06, 0x2b, 0x1e, 0x0d, 0x9b, 0xcc, 0x8f, 0x7a, 0x9e, 0xc3, 0x9a, 0xc2, 0xef, 0xba, 0x4a, 0xae, + 0xa3, 0xbb, 0x73, 0xea, 0xd1, 0x7c, 0xfa, 0x27, 0x00, 0x00, 0xff, 0xff, 0x65, 0x8a, 0x53, 0x01, + 0x77, 0x05, 0x00, 0x00, +} + // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -375,8 +547,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for TopSQLAgent service - +// TopSQLAgentClient is the client API for TopSQLAgent service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type TopSQLAgentClient interface { // ReportTopSQLRecords is called periodically (e.g. per minute) to save the in-memory TopSQL records ReportTopSQLRecords(ctx context.Context, opts ...grpc.CallOption) (TopSQLAgent_ReportTopSQLRecordsClient, error) @@ -397,7 +570,7 @@ func NewTopSQLAgentClient(cc *grpc.ClientConn) TopSQLAgentClient { } func (c *topSQLAgentClient) ReportTopSQLRecords(ctx context.Context, opts ...grpc.CallOption) (TopSQLAgent_ReportTopSQLRecordsClient, error) { - stream, err := grpc.NewClientStream(ctx, &_TopSQLAgent_serviceDesc.Streams[0], c.cc, "/tipb.TopSQLAgent/ReportTopSQLRecords", opts...) + stream, err := c.cc.NewStream(ctx, &_TopSQLAgent_serviceDesc.Streams[0], "/tipb.TopSQLAgent/ReportTopSQLRecords", opts...) if err != nil { return nil, err } @@ -431,7 +604,7 @@ func (x *topSQLAgentReportTopSQLRecordsClient) CloseAndRecv() (*EmptyResponse, e } func (c *topSQLAgentClient) ReportSQLMeta(ctx context.Context, opts ...grpc.CallOption) (TopSQLAgent_ReportSQLMetaClient, error) { - stream, err := grpc.NewClientStream(ctx, &_TopSQLAgent_serviceDesc.Streams[1], c.cc, "/tipb.TopSQLAgent/ReportSQLMeta", opts...) + stream, err := c.cc.NewStream(ctx, &_TopSQLAgent_serviceDesc.Streams[1], "/tipb.TopSQLAgent/ReportSQLMeta", opts...) if err != nil { return nil, err } @@ -465,7 +638,7 @@ func (x *topSQLAgentReportSQLMetaClient) CloseAndRecv() (*EmptyResponse, error) } func (c *topSQLAgentClient) ReportPlanMeta(ctx context.Context, opts ...grpc.CallOption) (TopSQLAgent_ReportPlanMetaClient, error) { - stream, err := grpc.NewClientStream(ctx, &_TopSQLAgent_serviceDesc.Streams[2], c.cc, "/tipb.TopSQLAgent/ReportPlanMeta", opts...) + stream, err := c.cc.NewStream(ctx, &_TopSQLAgent_serviceDesc.Streams[2], "/tipb.TopSQLAgent/ReportPlanMeta", opts...) if err != nil { return nil, err } @@ -498,8 +671,7 @@ func (x *topSQLAgentReportPlanMetaClient) CloseAndRecv() (*EmptyResponse, error) return m, nil } -// Server API for TopSQLAgent service - +// TopSQLAgentServer is the server API for TopSQLAgent service. type TopSQLAgentServer interface { // ReportTopSQLRecords is called periodically (e.g. per minute) to save the in-memory TopSQL records ReportTopSQLRecords(TopSQLAgent_ReportTopSQLRecordsServer) error @@ -511,6 +683,20 @@ type TopSQLAgentServer interface { ReportPlanMeta(TopSQLAgent_ReportPlanMetaServer) error } +// UnimplementedTopSQLAgentServer can be embedded to have forward compatible implementations. +type UnimplementedTopSQLAgentServer struct { +} + +func (*UnimplementedTopSQLAgentServer) ReportTopSQLRecords(srv TopSQLAgent_ReportTopSQLRecordsServer) error { + return status.Errorf(codes.Unimplemented, "method ReportTopSQLRecords not implemented") +} +func (*UnimplementedTopSQLAgentServer) ReportSQLMeta(srv TopSQLAgent_ReportSQLMetaServer) error { + return status.Errorf(codes.Unimplemented, "method ReportSQLMeta not implemented") +} +func (*UnimplementedTopSQLAgentServer) ReportPlanMeta(srv TopSQLAgent_ReportPlanMetaServer) error { + return status.Errorf(codes.Unimplemented, "method ReportPlanMeta not implemented") +} + func RegisterTopSQLAgentServer(s *grpc.Server, srv TopSQLAgentServer) { s.RegisterService(&_TopSQLAgent_serviceDesc, srv) } @@ -617,8 +803,9 @@ var _TopSQLAgent_serviceDesc = grpc.ServiceDesc{ Metadata: "topsql_agent.proto", } -// Client API for TopSQLPubSub service - +// TopSQLPubSubClient is the client API for TopSQLPubSub service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type TopSQLPubSubClient interface { // Clients subscribe to TopSQL data through this RPC, and TiDB periodically (e.g. per minute) // publishes TopSQL data to clients via gRPC stream. @@ -634,7 +821,7 @@ func NewTopSQLPubSubClient(cc *grpc.ClientConn) TopSQLPubSubClient { } func (c *topSQLPubSubClient) Subscribe(ctx context.Context, in *TopSQLSubRequest, opts ...grpc.CallOption) (TopSQLPubSub_SubscribeClient, error) { - stream, err := grpc.NewClientStream(ctx, &_TopSQLPubSub_serviceDesc.Streams[0], c.cc, "/tipb.TopSQLPubSub/Subscribe", opts...) + stream, err := c.cc.NewStream(ctx, &_TopSQLPubSub_serviceDesc.Streams[0], "/tipb.TopSQLPubSub/Subscribe", opts...) if err != nil { return nil, err } @@ -665,14 +852,21 @@ func (x *topSQLPubSubSubscribeClient) Recv() (*TopSQLSubResponse, error) { return m, nil } -// Server API for TopSQLPubSub service - +// TopSQLPubSubServer is the server API for TopSQLPubSub service. type TopSQLPubSubServer interface { // Clients subscribe to TopSQL data through this RPC, and TiDB periodically (e.g. per minute) // publishes TopSQL data to clients via gRPC stream. Subscribe(*TopSQLSubRequest, TopSQLPubSub_SubscribeServer) error } +// UnimplementedTopSQLPubSubServer can be embedded to have forward compatible implementations. +type UnimplementedTopSQLPubSubServer struct { +} + +func (*UnimplementedTopSQLPubSubServer) Subscribe(req *TopSQLSubRequest, srv TopSQLPubSub_SubscribeServer) error { + return status.Errorf(codes.Unimplemented, "method Subscribe not implemented") +} + func RegisterTopSQLPubSubServer(s *grpc.Server, srv TopSQLPubSubServer) { s.RegisterService(&_TopSQLPubSub_serviceDesc, srv) } @@ -715,7 +909,7 @@ var _TopSQLPubSub_serviceDesc = grpc.ServiceDesc{ func (m *TopSQLRecord) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -723,41 +917,50 @@ func (m *TopSQLRecord) Marshal() (dAtA []byte, err error) { } func (m *TopSQLRecord) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopSQLRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.SqlDigest) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintTopsqlAgent(dAtA, i, uint64(len(m.SqlDigest))) - i += copy(dAtA[i:], m.SqlDigest) + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTopsqlAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } } if len(m.PlanDigest) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.PlanDigest) + copy(dAtA[i:], m.PlanDigest) i = encodeVarintTopsqlAgent(dAtA, i, uint64(len(m.PlanDigest))) - i += copy(dAtA[i:], m.PlanDigest) + i-- + dAtA[i] = 0x12 } - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x1a - i++ - i = encodeVarintTopsqlAgent(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if len(m.SqlDigest) > 0 { + i -= len(m.SqlDigest) + copy(dAtA[i:], m.SqlDigest) + i = encodeVarintTopsqlAgent(dAtA, i, uint64(len(m.SqlDigest))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TopSQLRecordItem) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -765,58 +968,64 @@ func (m *TopSQLRecordItem) Marshal() (dAtA []byte, err error) { } func (m *TopSQLRecordItem) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopSQLRecordItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.TimestampSec != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintTopsqlAgent(dAtA, i, uint64(m.TimestampSec)) - } - if m.CpuTimeMs != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintTopsqlAgent(dAtA, i, uint64(m.CpuTimeMs)) + if m.StmtDurationCount != 0 { + i = encodeVarintTopsqlAgent(dAtA, i, uint64(m.StmtDurationCount)) + i-- + dAtA[i] = 0x30 } - if m.StmtExecCount != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintTopsqlAgent(dAtA, i, uint64(m.StmtExecCount)) + if m.StmtDurationSumNs != 0 { + i = encodeVarintTopsqlAgent(dAtA, i, uint64(m.StmtDurationSumNs)) + i-- + dAtA[i] = 0x28 } if len(m.StmtKvExecCount) > 0 { - for k, _ := range m.StmtKvExecCount { - dAtA[i] = 0x22 - i++ + for k := range m.StmtKvExecCount { v := m.StmtKvExecCount[k] - mapSize := 1 + len(k) + sovTopsqlAgent(uint64(len(k))) + 1 + sovTopsqlAgent(uint64(v)) - i = encodeVarintTopsqlAgent(dAtA, i, uint64(mapSize)) - dAtA[i] = 0xa - i++ - i = encodeVarintTopsqlAgent(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) - dAtA[i] = 0x10 - i++ + baseI := i i = encodeVarintTopsqlAgent(dAtA, i, uint64(v)) + i-- + dAtA[i] = 0x10 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintTopsqlAgent(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintTopsqlAgent(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x22 } } - if m.StmtDurationSumNs != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintTopsqlAgent(dAtA, i, uint64(m.StmtDurationSumNs)) + if m.StmtExecCount != 0 { + i = encodeVarintTopsqlAgent(dAtA, i, uint64(m.StmtExecCount)) + i-- + dAtA[i] = 0x18 } - if m.StmtDurationCount != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintTopsqlAgent(dAtA, i, uint64(m.StmtDurationCount)) + if m.CpuTimeMs != 0 { + i = encodeVarintTopsqlAgent(dAtA, i, uint64(m.CpuTimeMs)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.TimestampSec != 0 { + i = encodeVarintTopsqlAgent(dAtA, i, uint64(m.TimestampSec)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *SQLMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -824,39 +1033,46 @@ func (m *SQLMeta) Marshal() (dAtA []byte, err error) { } func (m *SQLMeta) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SQLMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.SqlDigest) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintTopsqlAgent(dAtA, i, uint64(len(m.SqlDigest))) - i += copy(dAtA[i:], m.SqlDigest) - } - if len(m.NormalizedSql) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintTopsqlAgent(dAtA, i, uint64(len(m.NormalizedSql))) - i += copy(dAtA[i:], m.NormalizedSql) - } if m.IsInternalSql { - dAtA[i] = 0x18 - i++ + i-- if m.IsInternalSql { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x18 + } + if len(m.NormalizedSql) > 0 { + i -= len(m.NormalizedSql) + copy(dAtA[i:], m.NormalizedSql) + i = encodeVarintTopsqlAgent(dAtA, i, uint64(len(m.NormalizedSql))) + i-- + dAtA[i] = 0x12 } - return i, nil + if len(m.SqlDigest) > 0 { + i -= len(m.SqlDigest) + copy(dAtA[i:], m.SqlDigest) + i = encodeVarintTopsqlAgent(dAtA, i, uint64(len(m.SqlDigest))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *PlanMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -864,35 +1080,43 @@ func (m *PlanMeta) Marshal() (dAtA []byte, err error) { } func (m *PlanMeta) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PlanMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.PlanDigest) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintTopsqlAgent(dAtA, i, uint64(len(m.PlanDigest))) - i += copy(dAtA[i:], m.PlanDigest) + if len(m.EncodedNormalizedPlan) > 0 { + i -= len(m.EncodedNormalizedPlan) + copy(dAtA[i:], m.EncodedNormalizedPlan) + i = encodeVarintTopsqlAgent(dAtA, i, uint64(len(m.EncodedNormalizedPlan))) + i-- + dAtA[i] = 0x1a } if len(m.NormalizedPlan) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.NormalizedPlan) + copy(dAtA[i:], m.NormalizedPlan) i = encodeVarintTopsqlAgent(dAtA, i, uint64(len(m.NormalizedPlan))) - i += copy(dAtA[i:], m.NormalizedPlan) + i-- + dAtA[i] = 0x12 } - if len(m.EncodedNormalizedPlan) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintTopsqlAgent(dAtA, i, uint64(len(m.EncodedNormalizedPlan))) - i += copy(dAtA[i:], m.EncodedNormalizedPlan) + if len(m.PlanDigest) > 0 { + i -= len(m.PlanDigest) + copy(dAtA[i:], m.PlanDigest) + i = encodeVarintTopsqlAgent(dAtA, i, uint64(len(m.PlanDigest))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *EmptyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -900,17 +1124,22 @@ func (m *EmptyResponse) Marshal() (dAtA []byte, err error) { } func (m *EmptyResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EmptyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + return len(dAtA) - i, nil } func (m *TopSQLSubRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -918,17 +1147,22 @@ func (m *TopSQLSubRequest) Marshal() (dAtA []byte, err error) { } func (m *TopSQLSubRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopSQLSubRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + return len(dAtA) - i, nil } func (m *TopSQLSubResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -936,72 +1170,105 @@ func (m *TopSQLSubResponse) Marshal() (dAtA []byte, err error) { } func (m *TopSQLSubResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopSQLSubResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if m.RespOneof != nil { - nn1, err := m.RespOneof.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size := m.RespOneof.Size() + i -= size + if _, err := m.RespOneof.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += nn1 } - return i, nil + return len(dAtA) - i, nil } func (m *TopSQLSubResponse_Record) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopSQLSubResponse_Record) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Record != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintTopsqlAgent(dAtA, i, uint64(m.Record.Size())) - n2, err := m.Record.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Record.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTopsqlAgent(dAtA, i, uint64(size)) } - i += n2 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TopSQLSubResponse_SqlMeta) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopSQLSubResponse_SqlMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.SqlMeta != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintTopsqlAgent(dAtA, i, uint64(m.SqlMeta.Size())) - n3, err := m.SqlMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.SqlMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTopsqlAgent(dAtA, i, uint64(size)) } - i += n3 + i-- + dAtA[i] = 0x12 } - return i, nil + return len(dAtA) - i, nil } func (m *TopSQLSubResponse_PlanMeta) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopSQLSubResponse_PlanMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.PlanMeta != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintTopsqlAgent(dAtA, i, uint64(m.PlanMeta.Size())) - n4, err := m.PlanMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.PlanMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTopsqlAgent(dAtA, i, uint64(size)) } - i += n4 + i-- + dAtA[i] = 0x1a } - return i, nil + return len(dAtA) - i, nil } func encodeVarintTopsqlAgent(dAtA []byte, offset int, v uint64) int { + offset -= sovTopsqlAgent(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *TopSQLRecord) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.SqlDigest) @@ -1022,6 +1289,9 @@ func (m *TopSQLRecord) Size() (n int) { } func (m *TopSQLRecordItem) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.TimestampSec != 0 { @@ -1051,6 +1321,9 @@ func (m *TopSQLRecordItem) Size() (n int) { } func (m *SQLMeta) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.SqlDigest) @@ -1068,6 +1341,9 @@ func (m *SQLMeta) Size() (n int) { } func (m *PlanMeta) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.PlanDigest) @@ -1086,18 +1362,27 @@ func (m *PlanMeta) Size() (n int) { } func (m *EmptyResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l return n } func (m *TopSQLSubRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l return n } func (m *TopSQLSubResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RespOneof != nil { @@ -1107,6 +1392,9 @@ func (m *TopSQLSubResponse) Size() (n int) { } func (m *TopSQLSubResponse_Record) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Record != nil { @@ -1116,6 +1404,9 @@ func (m *TopSQLSubResponse_Record) Size() (n int) { return n } func (m *TopSQLSubResponse_SqlMeta) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.SqlMeta != nil { @@ -1125,6 +1416,9 @@ func (m *TopSQLSubResponse_SqlMeta) Size() (n int) { return n } func (m *TopSQLSubResponse_PlanMeta) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.PlanMeta != nil { @@ -1135,14 +1429,7 @@ func (m *TopSQLSubResponse_PlanMeta) Size() (n int) { } func sovTopsqlAgent(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozTopsqlAgent(x uint64) (n int) { return sovTopsqlAgent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1162,7 +1449,7 @@ func (m *TopSQLRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1190,7 +1477,7 @@ func (m *TopSQLRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1199,6 +1486,9 @@ func (m *TopSQLRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTopsqlAgent } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTopsqlAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1221,7 +1511,7 @@ func (m *TopSQLRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1230,6 +1520,9 @@ func (m *TopSQLRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTopsqlAgent } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTopsqlAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1252,7 +1545,7 @@ func (m *TopSQLRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1261,6 +1554,9 @@ func (m *TopSQLRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTopsqlAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTopsqlAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1275,7 +1571,7 @@ func (m *TopSQLRecord) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTopsqlAgent } if (iNdEx + skippy) > l { @@ -1305,7 +1601,7 @@ func (m *TopSQLRecordItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1333,7 +1629,7 @@ func (m *TopSQLRecordItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TimestampSec |= (uint64(b) & 0x7F) << shift + m.TimestampSec |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1352,7 +1648,7 @@ func (m *TopSQLRecordItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CpuTimeMs |= (uint32(b) & 0x7F) << shift + m.CpuTimeMs |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -1371,7 +1667,7 @@ func (m *TopSQLRecordItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StmtExecCount |= (uint64(b) & 0x7F) << shift + m.StmtExecCount |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1390,7 +1686,7 @@ func (m *TopSQLRecordItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1399,6 +1695,9 @@ func (m *TopSQLRecordItem) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTopsqlAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTopsqlAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1419,7 +1718,7 @@ func (m *TopSQLRecordItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1436,7 +1735,7 @@ func (m *TopSQLRecordItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift + stringLenmapkey |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1446,6 +1745,9 @@ func (m *TopSQLRecordItem) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTopsqlAgent } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTopsqlAgent + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -1461,7 +1763,7 @@ func (m *TopSQLRecordItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapvalue |= (uint64(b) & 0x7F) << shift + mapvalue |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1472,7 +1774,7 @@ func (m *TopSQLRecordItem) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTopsqlAgent } if (iNdEx + skippy) > postIndex { @@ -1497,7 +1799,7 @@ func (m *TopSQLRecordItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StmtDurationSumNs |= (uint64(b) & 0x7F) << shift + m.StmtDurationSumNs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1516,7 +1818,7 @@ func (m *TopSQLRecordItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StmtDurationCount |= (uint64(b) & 0x7F) << shift + m.StmtDurationCount |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1527,7 +1829,7 @@ func (m *TopSQLRecordItem) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTopsqlAgent } if (iNdEx + skippy) > l { @@ -1557,7 +1859,7 @@ func (m *SQLMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1585,7 +1887,7 @@ func (m *SQLMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1594,6 +1896,9 @@ func (m *SQLMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTopsqlAgent } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTopsqlAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1616,7 +1921,7 @@ func (m *SQLMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1626,6 +1931,9 @@ func (m *SQLMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTopsqlAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTopsqlAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1645,7 +1953,7 @@ func (m *SQLMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1657,7 +1965,7 @@ func (m *SQLMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTopsqlAgent } if (iNdEx + skippy) > l { @@ -1687,7 +1995,7 @@ func (m *PlanMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1715,7 +2023,7 @@ func (m *PlanMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1724,6 +2032,9 @@ func (m *PlanMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTopsqlAgent } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTopsqlAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1746,7 +2057,7 @@ func (m *PlanMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1756,6 +2067,9 @@ func (m *PlanMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTopsqlAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTopsqlAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1775,7 +2089,7 @@ func (m *PlanMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1785,6 +2099,9 @@ func (m *PlanMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTopsqlAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTopsqlAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1796,7 +2113,7 @@ func (m *PlanMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTopsqlAgent } if (iNdEx + skippy) > l { @@ -1826,7 +2143,7 @@ func (m *EmptyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1846,7 +2163,7 @@ func (m *EmptyResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTopsqlAgent } if (iNdEx + skippy) > l { @@ -1876,7 +2193,7 @@ func (m *TopSQLSubRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1896,7 +2213,7 @@ func (m *TopSQLSubRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTopsqlAgent } if (iNdEx + skippy) > l { @@ -1926,7 +2243,7 @@ func (m *TopSQLSubResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1954,7 +2271,7 @@ func (m *TopSQLSubResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1963,6 +2280,9 @@ func (m *TopSQLSubResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTopsqlAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTopsqlAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1986,7 +2306,7 @@ func (m *TopSQLSubResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1995,6 +2315,9 @@ func (m *TopSQLSubResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTopsqlAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTopsqlAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2018,7 +2341,7 @@ func (m *TopSQLSubResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2027,6 +2350,9 @@ func (m *TopSQLSubResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTopsqlAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTopsqlAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2042,7 +2368,7 @@ func (m *TopSQLSubResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTopsqlAgent } if (iNdEx + skippy) > l { @@ -2060,6 +2386,7 @@ func (m *TopSQLSubResponse) Unmarshal(dAtA []byte) error { func skipTopsqlAgent(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -2091,10 +2418,8 @@ func skipTopsqlAgent(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -2111,103 +2436,34 @@ func skipTopsqlAgent(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthTopsqlAgent } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTopsqlAgent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipTopsqlAgent(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTopsqlAgent + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthTopsqlAgent + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthTopsqlAgent = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTopsqlAgent = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthTopsqlAgent = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTopsqlAgent = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTopsqlAgent = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("topsql_agent.proto", fileDescriptorTopsqlAgent) } - -var fileDescriptorTopsqlAgent = []byte{ - // 697 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0x5b, 0x6e, 0xd3, 0x40, - 0x14, 0x8d, 0x9b, 0xb4, 0x4d, 0x6e, 0xe2, 0x3e, 0xa6, 0x29, 0x8d, 0x22, 0x11, 0xaa, 0x20, 0xa0, - 0x40, 0x49, 0x51, 0x90, 0x78, 0x7d, 0x41, 0x68, 0xa5, 0x56, 0xb4, 0x55, 0x3a, 0xee, 0x07, 0x7f, - 0x96, 0xed, 0x5c, 0x22, 0xab, 0xb6, 0x67, 0xe2, 0x19, 0x97, 0x16, 0xb1, 0x04, 0x16, 0xc0, 0x1a, - 0xd8, 0x07, 0x12, 0x9f, 0x2c, 0x01, 0x95, 0x7d, 0x20, 0x34, 0x63, 0xa7, 0xcd, 0xa3, 0x15, 0x7f, - 0xe3, 0x73, 0xcf, 0xb9, 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xb5, 0xa0, 0xcd, 0x3f, 0xbe, 0xde, 0x7c, - 0xcb, 0x92, 0xa1, 0x7c, 0x7f, 0x7a, 0xd9, 0x63, 0x27, 0x92, 0xf1, 0x39, 0xd5, 0xe3, 0x46, 0x50, - 0xb2, 0x05, 0x55, 0xdd, 0xb9, 0x97, 0xc4, 0x8e, 0xf4, 0x59, 0x64, 0x8b, 0x24, 0xb4, 0x23, 0x51, - 0x9b, 0xd5, 0x36, 0x96, 0x55, 0x6d, 0x3b, 0x2b, 0x59, 0x49, 0x78, 0x28, 0x48, 0x0b, 0x56, 0xc6, - 0x05, 0xa9, 0x97, 0xb9, 0x69, 0xbe, 0x1e, 0x50, 0xef, 0x40, 0xf5, 0x3a, 0x27, 0x64, 0x09, 0xf2, - 0x27, 0x78, 0xae, 0x53, 0x2b, 0x51, 0x75, 0x24, 0x55, 0x98, 0x3d, 0x75, 0x82, 0x04, 0x75, 0x4c, - 0x05, 0x9a, 0x7e, 0xbc, 0x9e, 0x79, 0x69, 0x34, 0x3f, 0xc1, 0xbc, 0x75, 0xb4, 0x7f, 0x80, 0xd2, - 0xf9, 0xdf, 0xcd, 0xdf, 0x83, 0x85, 0x88, 0xc5, 0xa1, 0x13, 0xf8, 0x9f, 0xb1, 0x67, 0x8b, 0x41, - 0xa0, 0x9b, 0x95, 0xa8, 0x79, 0x85, 0x5a, 0x83, 0x40, 0xe5, 0xee, 0x0b, 0xdb, 0x8f, 0x24, 0xc6, - 0x91, 0x13, 0x68, 0x9e, 0xca, 0xbd, 0x48, 0x4d, 0x5f, 0xec, 0x65, 0xa8, 0x35, 0x08, 0x9a, 0x5f, - 0x0d, 0x28, 0x76, 0x03, 0x27, 0xd2, 0xa3, 0x27, 0xb6, 0xca, 0x98, 0xda, 0xaa, 0x07, 0xb0, 0x38, - 0x32, 0x5c, 0x15, 0xb2, 0xe9, 0x23, 0x9e, 0x54, 0x37, 0xf2, 0x1c, 0xd6, 0x30, 0xf2, 0x58, 0x0f, - 0x7b, 0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x72, 0x75, 0x53, 0xf5, 0xb5, 0x29, 0x7c, - 0xd8, 0xf1, 0xa9, 0xd1, 0x79, 0xf8, 0xf3, 0xa2, 0x61, 0xfc, 0xba, 0x68, 0x18, 0xbf, 0x2f, 0x1a, - 0xc6, 0xb7, 0x3f, 0x8d, 0x1c, 0xac, 0x7a, 0x2c, 0x6c, 0x71, 0x3f, 0xea, 0x7b, 0x0e, 0x6f, 0x49, - 0xbf, 0xe7, 0x6a, 0x79, 0xd7, 0x70, 0xe7, 0xf4, 0x23, 0xf9, 0xec, 0x5f, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x7a, 0xb0, 0xac, 0x8b, 0x56, 0x05, 0x00, 0x00, -} diff --git a/go-tipb/trace.pb.go b/go-tipb/trace.pb.go index d3966c809..6c1108568 100644 --- a/go-tipb/trace.pb.go +++ b/go-tipb/trace.pb.go @@ -5,10 +5,10 @@ package tipb import ( "fmt" + "math" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - - math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -16,6 +16,12 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + type Event int32 const ( @@ -37,6 +43,7 @@ var Event_name = map[int32]string{ 1004: "TiKvCoprExecuteDagRunner", 1005: "TiKvCoprExecuteBatchDagRunner", } + var Event_value = map[string]int32{ "Unknown": 0, "TiKvCoprGetRequest": 1000, @@ -52,9 +59,11 @@ func (x Event) Enum() *Event { *p = x return p } + func (x Event) String() string { return proto.EnumName(Event_name, int32(x)) } + func (x *Event) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(Event_value, data, "Event") if err != nil { @@ -63,30 +72,34 @@ func (x *Event) UnmarshalJSON(data []byte) error { *x = Event(value) return nil } -func (Event) EnumDescriptor() ([]byte, []int) { return fileDescriptorTrace, []int{0} } + +func (Event) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0571941a1d628a80, []int{0} +} func init() { proto.RegisterEnum("tipb.Event", Event_name, Event_value) } -func init() { proto.RegisterFile("trace.proto", fileDescriptorTrace) } +func init() { proto.RegisterFile("trace.proto", fileDescriptor_0571941a1d628a80) } -var fileDescriptorTrace = []byte{ - // 241 bytes of a gzipped FileDescriptorProto +var fileDescriptor_0571941a1d628a80 = []byte{ + // 267 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2e, 0x29, 0x4a, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x29, 0xc9, 0x2c, 0x48, 0x92, 0x12, 0x49, - 0xcf, 0x4f, 0xcf, 0x07, 0x0b, 0xe8, 0x83, 0x58, 0x10, 0x39, 0xad, 0x83, 0x8c, 0x5c, 0xac, 0xae, - 0x65, 0xa9, 0x79, 0x25, 0x42, 0xdc, 0x5c, 0xec, 0xa1, 0x79, 0xd9, 0x79, 0xf9, 0xe5, 0x79, 0x02, - 0x0c, 0x42, 0xe2, 0x5c, 0x42, 0x21, 0x99, 0xde, 0x65, 0xce, 0xf9, 0x05, 0x45, 0xee, 0xa9, 0x25, - 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0x02, 0x2f, 0xd8, 0x85, 0xa4, 0xb8, 0x44, 0x61, 0x12, - 0x1e, 0x89, 0x79, 0x29, 0x39, 0xa9, 0x30, 0xb9, 0x97, 0xec, 0x42, 0x92, 0x5c, 0x22, 0x30, 0xb9, - 0xe0, 0xe4, 0x8c, 0xd4, 0x94, 0xd2, 0x9c, 0xd4, 0x90, 0xc4, 0xe2, 0x6c, 0x81, 0x57, 0xec, 0x42, - 0x12, 0x5c, 0xc2, 0x48, 0xe6, 0x05, 0xe7, 0x25, 0x16, 0x14, 0x67, 0xe4, 0x97, 0x08, 0xbc, 0x66, - 0x17, 0x92, 0xe5, 0x92, 0x80, 0xc9, 0xb8, 0x56, 0xa4, 0x26, 0x97, 0x96, 0xa4, 0xba, 0x24, 0xa6, - 0x07, 0x95, 0xe6, 0xe5, 0xa5, 0x16, 0x09, 0xbc, 0x61, 0x17, 0x52, 0xe2, 0x92, 0x45, 0x93, 0x76, - 0x4a, 0x2c, 0x49, 0xce, 0x40, 0xa8, 0x79, 0xcb, 0xee, 0xa4, 0x79, 0xe2, 0x91, 0x1c, 0xe3, 0x85, - 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0xce, 0x78, 0x2c, 0xc7, 0xc0, 0x25, 0x9a, 0x9c, 0x9f, - 0xab, 0x57, 0x90, 0x99, 0x97, 0x9e, 0x9c, 0x58, 0xa0, 0x57, 0x92, 0x99, 0x92, 0xa4, 0x07, 0x0a, - 0x82, 0x00, 0x46, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x65, 0xee, 0x61, 0x2c, 0x18, 0x01, 0x00, - 0x00, + 0xcf, 0x4f, 0xcf, 0x07, 0x0b, 0xe8, 0x83, 0x58, 0x10, 0x39, 0x29, 0xfe, 0xa2, 0xd2, 0xe2, 0x12, + 0x30, 0x13, 0x22, 0xa0, 0x75, 0x90, 0x91, 0x8b, 0xd5, 0xb5, 0x2c, 0x35, 0xaf, 0x44, 0x88, 0x9b, + 0x8b, 0x3d, 0x34, 0x2f, 0x3b, 0x2f, 0xbf, 0x3c, 0x4f, 0x80, 0x41, 0x48, 0x9c, 0x4b, 0x28, 0x24, + 0xd3, 0xbb, 0xcc, 0x39, 0xbf, 0xa0, 0xc8, 0x3d, 0xb5, 0x24, 0x28, 0xb5, 0xb0, 0x34, 0xb5, 0xb8, + 0x44, 0xe0, 0x05, 0xbb, 0x90, 0x14, 0x97, 0x28, 0x4c, 0xc2, 0x23, 0x31, 0x2f, 0x25, 0x27, 0x15, + 0x26, 0xf7, 0x92, 0x5d, 0x48, 0x92, 0x4b, 0x04, 0x26, 0x17, 0x9c, 0x9c, 0x91, 0x9a, 0x52, 0x9a, + 0x93, 0x1a, 0x92, 0x58, 0x9c, 0x2d, 0xf0, 0x8a, 0x5d, 0x48, 0x82, 0x4b, 0x18, 0xc9, 0xbc, 0xe0, + 0xbc, 0xc4, 0x82, 0xe2, 0x8c, 0xfc, 0x12, 0x81, 0xd7, 0xec, 0x42, 0xb2, 0x5c, 0x12, 0x30, 0x19, + 0xd7, 0x8a, 0xd4, 0xe4, 0xd2, 0x92, 0x54, 0x97, 0xc4, 0xf4, 0xa0, 0xd2, 0xbc, 0xbc, 0xd4, 0x22, + 0x81, 0x37, 0xec, 0x42, 0x4a, 0x5c, 0xb2, 0x68, 0xd2, 0x4e, 0x89, 0x25, 0xc9, 0x19, 0x08, 0x35, + 0x6f, 0xd9, 0x9d, 0x2c, 0x6f, 0xac, 0xe0, 0x60, 0x3c, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, + 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0x98, 0xf1, 0x58, 0x8e, 0xe1, 0xc2, 0x63, + 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xb8, 0x44, 0x93, 0xf3, 0x73, 0xf5, 0x0a, 0x32, 0xf3, 0xd2, + 0x93, 0x13, 0x0b, 0xf4, 0x4a, 0x32, 0x53, 0x92, 0xf4, 0x40, 0x61, 0x14, 0xc0, 0x08, 0x08, 0x00, + 0x00, 0xff, 0xff, 0x19, 0x0c, 0x1a, 0x80, 0x39, 0x01, 0x00, 0x00, } diff --git a/go.mod b/go.mod index 63d826b55..4b27ff4f8 100644 --- a/go.mod +++ b/go.mod @@ -3,9 +3,9 @@ module github.com/pingcap/tipb go 1.16 require ( - github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 - github.com/golang/protobuf v1.3.4 - golang.org/x/net v0.0.0-20201110031124-69a78807bb2b - golang.org/x/tools v0.0.0-20201125231158-b5590deeca9b + github.com/gogo/protobuf v1.3.2 + github.com/golang/protobuf v1.5.3 + golang.org/x/net v0.0.0-20201110031124-69a78807bb2b // indirect + golang.org/x/tools v0.0.0-20210106214847-113979e3529a google.golang.org/grpc v1.24.0 ) diff --git a/go.sum b/go.sum index 7189e32aa..d7466bd80 100644 --- a/go.sum +++ b/go.sum @@ -1,30 +1,39 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 h1:WSBJMqJbLxsn+bTCPyPYZfqHdJmc8MK4wrBjMft6BAM= -github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.4 h1:87PNWwrRvUSnqS4dlcBU/ftvOIBep4sYuBLlh6rX2wk= -github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b h1:uwuIcX0g4Yl1NC5XAz37xsr2lTtcqevgzYNVt49waME= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -37,10 +46,12 @@ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGm golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20201125231158-b5590deeca9b h1:Lq5JUTFhiybGVf28jB6QRpqd13/JPOaCnET17PVzYJE= -golang.org/x/tools v0.0.0-20201125231158-b5590deeca9b/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a h1:CB3a9Nez8M13wwlr/E2YtwoU+qYHKfC+JrDa45RXXoQ= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= @@ -48,4 +59,7 @@ google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8 h1:Nw54tB0rB7hY/N0 google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/grpc v1.24.0 h1:vb/1TCsVn3DcJlQ0Gs1yB1pKI6Do2/QNwxdKqmc/b0s= google.golang.org/grpc v1.24.0/go.mod h1:XDChyiUovWa60DnaeDeZmSW86xtLtjtZbwvSiRnRtcA= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/include/gogoproto/gogo.proto b/include/gogoproto/gogo.proto index bc8d889f1..b80c85653 100644 --- a/include/gogoproto/gogo.proto +++ b/include/gogoproto/gogo.proto @@ -84,6 +84,9 @@ extend google.protobuf.FileOptions { optional bool goproto_registration = 63032; optional bool messagename_all = 63033; + + optional bool goproto_sizecache_all = 63034; + optional bool goproto_unkeyed_all = 63035; } extend google.protobuf.MessageOptions { @@ -118,6 +121,9 @@ extend google.protobuf.MessageOptions { optional bool typedecl = 64030; optional bool messagename = 64033; + + optional bool goproto_sizecache = 64034; + optional bool goproto_unkeyed = 64035; } extend google.protobuf.FieldOptions { @@ -133,4 +139,6 @@ extend google.protobuf.FieldOptions { optional bool stdtime = 65010; optional bool stdduration = 65011; + optional bool wktpointer = 65012; + } diff --git a/include/rustproto.proto b/include/rustproto.proto new file mode 100644 index 000000000..83e76fdfb --- /dev/null +++ b/include/rustproto.proto @@ -0,0 +1,47 @@ +syntax = "proto2"; + +import "google/protobuf/descriptor.proto"; + +// see https://github.com/gogo/protobuf/blob/master/gogoproto/gogo.proto +// for the original idea + +package rustproto; + +extend google.protobuf.FileOptions { + // When true, oneof field is generated public + optional bool expose_oneof_all = 17001; + // When true all fields are public, and not accessors generated + optional bool expose_fields_all = 17003; + // When false, `get_`, `set_`, `mut_` etc. accessors are not generated + optional bool generate_accessors_all = 17004; + // Use `bytes::Bytes` for `bytes` fields + optional bool carllerche_bytes_for_bytes_all = 17011; + // Use `bytes::Bytes` for `string` fields + optional bool carllerche_bytes_for_string_all = 17012; + // When true, will only generate codes that works with lite runtime. + optional bool lite_runtime_all = 17035; +} + +extend google.protobuf.MessageOptions { + // When true, oneof field is generated public + optional bool expose_oneof = 17001; + // When true all fields are public, and not accessors generated + optional bool expose_fields = 17003; + // When false, `get_`, `set_`, `mut_` etc. accessors are not generated + optional bool generate_accessors = 17004; + // Use `bytes::Bytes` for `bytes` fields + optional bool carllerche_bytes_for_bytes = 17011; + // Use `bytes::Bytes` for `string` fields + optional bool carllerche_bytes_for_string = 17012; +} + +extend google.protobuf.FieldOptions { + // When true all fields are public, and not accessors generated + optional bool expose_fields_field = 17003; + // When false, `get_`, `set_`, `mut_` etc. accessors are not generated + optional bool generate_accessors_field = 17004; + // Use `bytes::Bytes` for `bytes` fields + optional bool carllerche_bytes_for_bytes_field = 17011; + // Use `bytes::Bytes` for `string` fields + optional bool carllerche_bytes_for_string_field = 17012; +} \ No newline at end of file diff --git a/proto/analyze.proto b/proto/analyze.proto index 2280106f7..b1d509d7d 100644 --- a/proto/analyze.proto +++ b/proto/analyze.proto @@ -6,11 +6,17 @@ option java_multiple_files = true; option java_package = "com.pingcap.tidb.tipb"; import "schema.proto"; + import "gogoproto/gogo.proto"; +import "rustproto.proto"; option (gogoproto.marshaler_all) = true; option (gogoproto.sizer_all) = true; option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unkeyed_all) = false; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_sizecache_all) = false; +option (rustproto.lite_runtime_all) = true; enum AnalyzeType { TypeIndex = 0; diff --git a/proto/checksum.proto b/proto/checksum.proto index 5cbc81e89..0754689ee 100644 --- a/proto/checksum.proto +++ b/proto/checksum.proto @@ -6,10 +6,15 @@ option java_multiple_files = true; option java_package = "com.pingcap.tidb.tipb"; import "gogoproto/gogo.proto"; +import "rustproto.proto"; -option (gogoproto.sizer_all) = true; option (gogoproto.marshaler_all) = true; +option (gogoproto.sizer_all) = true; option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unkeyed_all) = false; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_sizecache_all) = false; +option (rustproto.lite_runtime_all) = true; enum ChecksumScanOn { Table = 0; diff --git a/proto/executor.proto b/proto/executor.proto index bb4c287d7..8b5bfac47 100644 --- a/proto/executor.proto +++ b/proto/executor.proto @@ -7,11 +7,17 @@ option java_package = "com.pingcap.tidb.tipb"; import "expression.proto"; import "schema.proto"; + import "gogoproto/gogo.proto"; +import "rustproto.proto"; option (gogoproto.marshaler_all) = true; option (gogoproto.sizer_all) = true; option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unkeyed_all) = false; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_sizecache_all) = false; +option (rustproto.lite_runtime_all) = true; enum ExecType { TypeTableScan = 0; diff --git a/proto/explain.proto b/proto/explain.proto index 915cc5126..278d988f2 100644 --- a/proto/explain.proto +++ b/proto/explain.proto @@ -6,11 +6,15 @@ option java_multiple_files = true; option java_package = "com.pingcap.tidb.tipb"; import "gogoproto/gogo.proto"; +import "rustproto.proto"; option (gogoproto.marshaler_all) = true; option (gogoproto.sizer_all) = true; option (gogoproto.unmarshaler_all) = true; - +option (gogoproto.goproto_unkeyed_all) = false; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_sizecache_all) = false; +option (rustproto.lite_runtime_all) = true; message ExplainData { ExplainOperator main = 1; diff --git a/proto/expression.proto b/proto/expression.proto index 8779b72bf..1bc841283 100644 --- a/proto/expression.proto +++ b/proto/expression.proto @@ -5,12 +5,16 @@ package tipb; option java_multiple_files = true; option java_package = "com.pingcap.tidb.tipb"; -import "metadata.proto"; import "gogoproto/gogo.proto"; +import "rustproto.proto"; option (gogoproto.marshaler_all) = true; option (gogoproto.sizer_all) = true; option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unkeyed_all) = false; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_sizecache_all) = false; +option (rustproto.lite_runtime_all) = true; message FieldType { optional int32 tp = 1 [(gogoproto.nullable) = false]; diff --git a/proto/metadata.proto b/proto/metadata.proto index d0e44370f..94c9eb1c0 100644 --- a/proto/metadata.proto +++ b/proto/metadata.proto @@ -6,10 +6,15 @@ option java_multiple_files = true; option java_package = "com.pingcap.tidb.tipb"; import "gogoproto/gogo.proto"; +import "rustproto.proto"; option (gogoproto.marshaler_all) = true; option (gogoproto.sizer_all) = true; option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unkeyed_all) = false; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_sizecache_all) = false; +option (rustproto.lite_runtime_all) = true; message InUnionMetadata { required bool in_union = 1 [(gogoproto.nullable) = false]; diff --git a/proto/resourcetag.proto b/proto/resourcetag.proto index 321410b03..446c70c51 100644 --- a/proto/resourcetag.proto +++ b/proto/resourcetag.proto @@ -6,10 +6,15 @@ option java_multiple_files = true; option java_package = "com.pingcap.tidb.tipb"; import "gogoproto/gogo.proto"; +import "rustproto.proto"; option (gogoproto.marshaler_all) = true; option (gogoproto.sizer_all) = true; option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unkeyed_all) = false; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_sizecache_all) = false; +option (rustproto.lite_runtime_all) = true; message ResourceGroupTag { optional bytes sql_digest = 1; diff --git a/proto/schema.proto b/proto/schema.proto index b6796bcff..ac7a82a52 100644 --- a/proto/schema.proto +++ b/proto/schema.proto @@ -6,10 +6,15 @@ option java_multiple_files = true; option java_package = "com.pingcap.tidb.tipb"; import "gogoproto/gogo.proto"; +import "rustproto.proto"; option (gogoproto.marshaler_all) = true; option (gogoproto.sizer_all) = true; option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unkeyed_all) = false; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_sizecache_all) = false; +option (rustproto.lite_runtime_all) = true; message TableInfo { optional int64 table_id = 1 [(gogoproto.nullable) = false]; diff --git a/proto/select.proto b/proto/select.proto index 46ef6cc3f..a9491d5b5 100644 --- a/proto/select.proto +++ b/proto/select.proto @@ -6,11 +6,17 @@ option java_multiple_files = true; option java_package = "com.pingcap.tidb.tipb"; import "executor.proto"; + import "gogoproto/gogo.proto"; +import "rustproto.proto"; option (gogoproto.marshaler_all) = true; option (gogoproto.sizer_all) = true; option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unkeyed_all) = false; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_sizecache_all) = false; +option (rustproto.lite_runtime_all) = true; // values are all in text format. message Row { @@ -124,7 +130,7 @@ message DAGRequest { // UserIdentity uses to do privilege check. It is only used in TiDB cluster memory table. optional UserIdentity user = 16; - + // Represents tree struct based executors, if this field is set, should ignore the executors field, currently only used in TiFlash optional Executor root_executor = 17; diff --git a/proto/topsql_agent.proto b/proto/topsql_agent.proto index 3a5031828..a4af82a80 100644 --- a/proto/topsql_agent.proto +++ b/proto/topsql_agent.proto @@ -6,10 +6,15 @@ option java_multiple_files = true; option java_package = "com.pingcap.tidb.tipb"; import "gogoproto/gogo.proto"; +import "rustproto.proto"; option (gogoproto.marshaler_all) = true; option (gogoproto.sizer_all) = true; option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unkeyed_all) = false; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_sizecache_all) = false; +option (rustproto.lite_runtime_all) = true; // TopSQLAgent is the persistent agent service for TopSQL records service TopSQLAgent { @@ -47,7 +52,7 @@ message SQLMeta { string normalized_sql = 2; // If true, this sql and plan is internally generated by tidb itself, not user. - bool is_internal_sql = 3; + bool is_internal_sql = 3; } message PlanMeta { diff --git a/proto/trace.proto b/proto/trace.proto index 9345c8404..f3cd832ce 100644 --- a/proto/trace.proto +++ b/proto/trace.proto @@ -6,10 +6,15 @@ option java_multiple_files = true; option java_package = "com.pingcap.tidb.tipb"; import "gogoproto/gogo.proto"; +import "rustproto.proto"; option (gogoproto.marshaler_all) = true; option (gogoproto.sizer_all) = true; option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unkeyed_all) = false; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_sizecache_all) = false; +option (rustproto.lite_runtime_all) = true; enum Event { Unknown = 0; diff --git a/scripts/check.sh b/scripts/check.sh new file mode 100755 index 000000000..6c5598719 --- /dev/null +++ b/scripts/check.sh @@ -0,0 +1,86 @@ +#!/usr/bin/env bash + +check_protoc_version() { + version=$(protoc --version | awk '{print $NF}') + major=$(echo ${version} | cut -d '.' -f 1) + minor=$(echo ${version} | cut -d '.' -f 2) + if [ "$major" -eq 3 ] && [ "$minor" -ge 5 ]; then + return 0 + fi + # protobuf bumps the major version to 21 after 3. + # https://github.com/protocolbuffers/protobuf/releases/tag/v21.7 + if [ "$major" -ge 21 ]; then + return 0 + fi + echo "protoc version not match, version 3.5.x+ is needed, current version: ${version}" + return 1 +} + +check-protos-compatible() { + GOPATH=$(go env GOPATH) + if [ -z $GOPATH ]; then + printf "Error: the environment variable GOPATH is not set, please set it before running %s\n" $PROGRAM > /dev/stderr + exit 1 + fi + export PATH=$GOPATH/bin:$PATH + + if [ ! -f "$GOPATH/bin/protolock" ]; then + GO111MODULE=off go get github.com/nilslice/protolock/cmd/protolock + GO111MODULE=off go install github.com/nilslice/protolock/cmd/protolock + fi + + if protolock status -lockdir=scripts -protoroot=proto; then + protolock commit -lockdir=scripts -protoroot=proto + else + echo "Meet break compatibility problem, please check the code." + # In order not to block local branch development, when meet break compatibility will force to update `proto.lock`. + protolock commit --force -lockdir=scripts -protoroot=proto + fi + # git report error like "fatal: detected dubious ownership in repository at" when reading the host's git folder + git config --global --add safe.directory "$(pwd)" + # If the output message is encountered, please add proto.lock to git as well. + git diff scripts/proto.lock | cat + git diff --quiet scripts/proto.lock + if [ $? -ne 0 ]; then + echo "Please add proto.lock to git." + return 1 + fi + return 0 +} + +check-protos-options() { + local options=( + 'import "gogoproto/gogo.proto";' + 'import "rustproto.proto";' + + 'option (gogoproto.sizer_all) = true;' + 'option (gogoproto.marshaler_all) = true;' + 'option (gogoproto.unmarshaler_all) = true;' + # Remove unnecessary fields from pb structs. + # XXX_NoUnkeyedLiteral struct{} `json:"-"` + # XXX_unrecognized []byte `json:"-"` + # XXX_sizecache int32 `json:"-"` + 'option (gogoproto.goproto_unkeyed_all) = false;' + 'option (gogoproto.goproto_unrecognized_all) = false;' + 'option (gogoproto.goproto_sizecache_all) = false;' + # TiKV does not need reflection and descriptor data. + 'option (rustproto.lite_runtime_all) = true;' + ) + + local folder="./proto" + for pb in "$folder"/*; do + # Iterate through the array + for option in "${options[@]}"; do + if ! grep -q "$option" "$pb"; then + echo "Please add option \"$option\" to $pb" + return 1 + fi + done + done + + return 0 +} + +if ! check_protoc_version || ! check-protos-compatible || ! check-protos-options; then + exit 1 +fi diff --git a/generate-cpp.sh b/scripts/generate-cpp.sh similarity index 90% rename from generate-cpp.sh rename to scripts/generate-cpp.sh index f5b859e8b..3bdd17cd3 100755 --- a/generate-cpp.sh +++ b/scripts/generate-cpp.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail function sed_inplace() @@ -41,9 +41,11 @@ for file in `ls proto-cpp/*`; do clean_up ${file} done +PROTO_INCLUDE=.:../include + cd proto-cpp echo "generate cpp code..." -protoc --cpp_out=../cpp/tipb/ *.proto +protoc -I${PROTO_INCLUDE} --cpp_out=../cpp/tipb/ *.proto cd .. rm -rf proto-cpp diff --git a/scripts/generate-go.sh b/scripts/generate-go.sh new file mode 100755 index 000000000..b1b134a4c --- /dev/null +++ b/scripts/generate-go.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +set -ex + +cd proto +echo "generate go code..." +go install github.com/gogo/protobuf/protoc-gen-gofast +protoc -I.:../include --gofast_out=plugins=grpc:../go-tipb *.proto + +cd ../go-tipb +sed -i.bak -E 's/import _ \"gogoproto\"//g' *.pb.go +sed -i.bak -E 's/context \"context\"//g' *.pb.go +sed -i.bak -E 's/fmt \"fmt\"//g' *.pb.go +sed -i.bak -E 's/io \"io\"//g' *.pb.go +sed -i.bak -E 's/math \"math\"//g' *.pb.go +sed -i.bak -E 's/_ \".*rustproto\"//g' *.pb.go +rm -f *.bak +go run golang.org/x/tools/cmd/goimports -w *.pb.go diff --git a/scripts/proto.lock b/scripts/proto.lock new file mode 100644 index 000000000..f01e8f92b --- /dev/null +++ b/scripts/proto.lock @@ -0,0 +1,7514 @@ +{ + "definitions": [ + { + "protopath": "analyze.proto", + "def": { + "enums": [ + { + "name": "AnalyzeType", + "enum_fields": [ + { + "name": "TypeIndex" + }, + { + "name": "TypeColumn", + "integer": 1 + }, + { + "name": "TypeCommonHandle", + "integer": 2 + }, + { + "name": "TypeSampleIndex", + "integer": 3 + }, + { + "name": "TypeMixed", + "integer": 4 + }, + { + "name": "TypeFullSampling", + "integer": 5 + } + ] + } + ], + "messages": [ + { + "name": "AnalyzeReq", + "fields": [ + { + "id": 1, + "name": "tp", + "type": "AnalyzeType", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "start_ts_fallback", + "type": "uint64", + "optional": true + }, + { + "id": 3, + "name": "flags", + "type": "uint64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 4, + "name": "time_zone_offset", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 5, + "name": "idx_req", + "type": "AnalyzeIndexReq", + "optional": true + }, + { + "id": 6, + "name": "col_req", + "type": "AnalyzeColumnsReq", + "optional": true + } + ] + }, + { + "name": "AnalyzeIndexReq", + "fields": [ + { + "id": 1, + "name": "bucket_size", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "num_columns", + "type": "int32", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 3, + "name": "cmsketch_depth", + "type": "int32", + "optional": true + }, + { + "id": 4, + "name": "cmsketch_width", + "type": "int32", + "optional": true + }, + { + "id": 5, + "name": "sample_size", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 6, + "name": "sketch_size", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 7, + "name": "top_n_size", + "type": "int32", + "optional": true + }, + { + "id": 8, + "name": "version", + "type": "int32", + "optional": true + } + ] + }, + { + "name": "AnalyzeColumnsReq", + "fields": [ + { + "id": 1, + "name": "bucket_size", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "sample_size", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 3, + "name": "sketch_size", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 4, + "name": "columns_info", + "type": "ColumnInfo", + "is_repeated": true + }, + { + "id": 5, + "name": "cmsketch_depth", + "type": "int32", + "optional": true + }, + { + "id": 6, + "name": "cmsketch_width", + "type": "int32", + "optional": true + }, + { + "id": 7, + "name": "primary_column_ids", + "type": "int64", + "is_repeated": true + }, + { + "id": 8, + "name": "version", + "type": "int32", + "optional": true + }, + { + "id": 9, + "name": "primary_prefix_column_ids", + "type": "int64", + "is_repeated": true + }, + { + "id": 10, + "name": "column_groups", + "type": "AnalyzeColumnGroup", + "is_repeated": true + }, + { + "id": 11, + "name": "sample_rate", + "type": "double", + "optional": true + } + ] + }, + { + "name": "AnalyzeMixedResp", + "fields": [ + { + "id": 1, + "name": "columns_resp", + "type": "AnalyzeColumnsResp", + "optional": true + }, + { + "id": 2, + "name": "index_resp", + "type": "AnalyzeIndexResp", + "optional": true + } + ] + }, + { + "name": "AnalyzeColumnGroup", + "fields": [ + { + "id": 1, + "name": "column_offsets", + "type": "int64", + "is_repeated": true + }, + { + "id": 2, + "name": "prefix_lengths", + "type": "int64", + "is_repeated": true + } + ] + }, + { + "name": "AnalyzeColumnsResp", + "fields": [ + { + "id": 1, + "name": "collectors", + "type": "SampleCollector", + "is_repeated": true + }, + { + "id": 2, + "name": "pk_hist", + "type": "Histogram", + "optional": true + }, + { + "id": 3, + "name": "row_collector", + "type": "RowSampleCollector", + "optional": true + } + ] + }, + { + "name": "AnalyzeIndexResp", + "fields": [ + { + "id": 1, + "name": "hist", + "type": "Histogram", + "optional": true + }, + { + "id": 2, + "name": "cms", + "type": "CMSketch", + "optional": true + }, + { + "id": 3, + "name": "collector", + "type": "SampleCollector", + "optional": true + } + ] + }, + { + "name": "Bucket", + "fields": [ + { + "id": 1, + "name": "count", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "lower_bound", + "type": "bytes", + "optional": true + }, + { + "id": 3, + "name": "upper_bound", + "type": "bytes", + "optional": true + }, + { + "id": 4, + "name": "repeats", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 5, + "name": "ndv", + "type": "int64", + "optional": true + } + ] + }, + { + "name": "Histogram", + "fields": [ + { + "id": 1, + "name": "ndv", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "buckets", + "type": "Bucket", + "is_repeated": true + } + ] + }, + { + "name": "FMSketch", + "fields": [ + { + "id": 1, + "name": "mask", + "type": "uint64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "hashset", + "type": "uint64", + "is_repeated": true + } + ] + }, + { + "name": "SampleCollector", + "fields": [ + { + "id": 1, + "name": "samples", + "type": "bytes", + "is_repeated": true + }, + { + "id": 2, + "name": "null_count", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 3, + "name": "count", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 4, + "name": "fm_sketch", + "type": "FMSketch", + "optional": true + }, + { + "id": 5, + "name": "cm_sketch", + "type": "CMSketch", + "optional": true + }, + { + "id": 6, + "name": "total_size", + "type": "int64", + "optional": true + } + ] + }, + { + "name": "RowSampleCollector", + "fields": [ + { + "id": 1, + "name": "samples", + "type": "RowSample", + "is_repeated": true + }, + { + "id": 2, + "name": "null_counts", + "type": "int64", + "is_repeated": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 3, + "name": "count", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 4, + "name": "fm_sketch", + "type": "FMSketch", + "is_repeated": true + }, + { + "id": 5, + "name": "total_size", + "type": "int64", + "is_repeated": true + } + ] + }, + { + "name": "RowSample", + "fields": [ + { + "id": 1, + "name": "row", + "type": "bytes", + "is_repeated": true + }, + { + "id": 2, + "name": "weight", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + } + ] + }, + { + "name": "CMSketchRow", + "fields": [ + { + "id": 1, + "name": "counters", + "type": "uint32", + "is_repeated": true + } + ] + }, + { + "name": "CMSketchTopN", + "fields": [ + { + "id": 1, + "name": "data", + "type": "bytes", + "optional": true + }, + { + "id": 2, + "name": "count", + "type": "uint64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + } + ] + }, + { + "name": "CMSketch", + "fields": [ + { + "id": 1, + "name": "rows", + "type": "CMSketchRow", + "is_repeated": true + }, + { + "id": 2, + "name": "top_n", + "type": "CMSketchTopN", + "is_repeated": true + }, + { + "id": 3, + "name": "default_value", + "type": "uint64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + } + ] + } + ], + "imports": [ + { + "path": "schema.proto" + }, + { + "path": "gogoproto/gogo.proto" + }, + { + "path": "rustproto.proto" + } + ], + "package": { + "name": "tipb" + }, + "options": [ + { + "name": "java_multiple_files", + "value": "true" + }, + { + "name": "java_package", + "value": "com.pingcap.tidb.tipb" + }, + { + "name": "(gogoproto.marshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.sizer_all)", + "value": "true" + }, + { + "name": "(gogoproto.unmarshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.goproto_unkeyed_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_unrecognized_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_sizecache_all)", + "value": "false" + }, + { + "name": "(rustproto.lite_runtime_all)", + "value": "true" + } + ] + } + }, + { + "protopath": "checksum.proto", + "def": { + "enums": [ + { + "name": "ChecksumScanOn", + "enum_fields": [ + { + "name": "Table" + }, + { + "name": "Index", + "integer": 1 + } + ] + }, + { + "name": "ChecksumAlgorithm", + "enum_fields": [ + { + "name": "Crc64_Xor" + } + ] + } + ], + "messages": [ + { + "name": "ChecksumRewriteRule", + "fields": [ + { + "id": 1, + "name": "old_prefix", + "type": "bytes", + "optional": true + }, + { + "id": 2, + "name": "new_prefix", + "type": "bytes", + "optional": true + } + ] + }, + { + "name": "ChecksumRequest", + "fields": [ + { + "id": 1, + "name": "start_ts_fallback", + "type": "uint64", + "optional": true + }, + { + "id": 2, + "name": "scan_on", + "type": "ChecksumScanOn", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 3, + "name": "algorithm", + "type": "ChecksumAlgorithm", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 4, + "name": "rule", + "type": "ChecksumRewriteRule", + "optional": true + } + ] + }, + { + "name": "ChecksumResponse", + "fields": [ + { + "id": 1, + "name": "checksum", + "type": "uint64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "total_kvs", + "type": "uint64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 3, + "name": "total_bytes", + "type": "uint64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + } + ] + } + ], + "imports": [ + { + "path": "gogoproto/gogo.proto" + }, + { + "path": "rustproto.proto" + } + ], + "package": { + "name": "tipb" + }, + "options": [ + { + "name": "java_multiple_files", + "value": "true" + }, + { + "name": "java_package", + "value": "com.pingcap.tidb.tipb" + }, + { + "name": "(gogoproto.marshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.sizer_all)", + "value": "true" + }, + { + "name": "(gogoproto.unmarshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.goproto_unkeyed_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_unrecognized_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_sizecache_all)", + "value": "false" + }, + { + "name": "(rustproto.lite_runtime_all)", + "value": "true" + } + ] + } + }, + { + "protopath": "executor.proto", + "def": { + "enums": [ + { + "name": "ExecType", + "enum_fields": [ + { + "name": "TypeTableScan" + }, + { + "name": "TypeIndexScan", + "integer": 1 + }, + { + "name": "TypeSelection", + "integer": 2 + }, + { + "name": "TypeAggregation", + "integer": 3 + }, + { + "name": "TypeTopN", + "integer": 4 + }, + { + "name": "TypeLimit", + "integer": 5 + }, + { + "name": "TypeStreamAgg", + "integer": 6 + }, + { + "name": "TypeJoin", + "integer": 7 + }, + { + "name": "TypeKill", + "integer": 8 + }, + { + "name": "TypeExchangeSender", + "integer": 9 + }, + { + "name": "TypeExchangeReceiver", + "integer": 10 + }, + { + "name": "TypeProjection", + "integer": 11 + }, + { + "name": "TypePartitionTableScan", + "integer": 12 + }, + { + "name": "TypeSort", + "integer": 13 + }, + { + "name": "TypeWindow", + "integer": 14 + }, + { + "name": "TypeExpand", + "integer": 15 + }, + { + "name": "TypeExpand2", + "integer": 16 + } + ] + }, + { + "name": "ExchangeType", + "enum_fields": [ + { + "name": "PassThrough" + }, + { + "name": "Broadcast", + "integer": 1 + }, + { + "name": "Hash", + "integer": 2 + } + ] + }, + { + "name": "CompressionMode", + "enum_fields": [ + { + "name": "NONE" + }, + { + "name": "FAST", + "integer": 1 + }, + { + "name": "HIGH_COMPRESSION", + "integer": 2 + } + ] + }, + { + "name": "EngineType", + "enum_fields": [ + { + "name": "Local" + }, + { + "name": "TiKV", + "integer": 1 + }, + { + "name": "TiFlash", + "integer": 2 + } + ] + }, + { + "name": "VectorIndexKind", + "enum_fields": [ + { + "name": "INVALID_INDEX_KIND" + }, + { + "name": "HNSW", + "integer": 1 + } + ] + }, + { + "name": "VectorDistanceMetric", + "enum_fields": [ + { + "name": "INVALID_DISTANCE_METRIC" + }, + { + "name": "L1", + "integer": 1 + }, + { + "name": "L2", + "integer": 2 + }, + { + "name": "COSINE", + "integer": 3 + }, + { + "name": "INNER_PRODUCT", + "integer": 4 + } + ] + }, + { + "name": "ANNQueryType", + "enum_fields": [ + { + "name": "InvalidQueryType" + }, + { + "name": "OrderBy", + "integer": 1 + } + ] + }, + { + "name": "JoinType", + "enum_fields": [ + { + "name": "TypeInnerJoin" + }, + { + "name": "TypeLeftOuterJoin", + "integer": 1 + }, + { + "name": "TypeRightOuterJoin", + "integer": 2 + }, + { + "name": "TypeSemiJoin", + "integer": 3 + }, + { + "name": "TypeAntiSemiJoin", + "integer": 4 + }, + { + "name": "TypeLeftOuterSemiJoin", + "integer": 5 + }, + { + "name": "TypeAntiLeftOuterSemiJoin", + "integer": 6 + } + ] + }, + { + "name": "JoinExecType", + "enum_fields": [ + { + "name": "TypeHashJoin" + } + ] + }, + { + "name": "RuntimeFilterType", + "enum_fields": [ + { + "name": "IN" + }, + { + "name": "MIN_MAX", + "integer": 1 + }, + { + "name": "BLOOM_FILTER", + "integer": 2 + } + ] + }, + { + "name": "RuntimeFilterMode", + "enum_fields": [ + { + "name": "LOCAL" + }, + { + "name": "GLOBAL", + "integer": 1 + } + ] + }, + { + "name": "TiFlashPreAggMode", + "enum_fields": [ + { + "name": "ForcePreAgg" + }, + { + "name": "Auto", + "integer": 1 + }, + { + "name": "ForceStreaming", + "integer": 2 + } + ] + }, + { + "name": "WindowBoundType", + "enum_fields": [ + { + "name": "Following" + }, + { + "name": "Preceding", + "integer": 1 + }, + { + "name": "CurrentRow", + "integer": 2 + } + ] + }, + { + "name": "RangeCmpDataType", + "enum_fields": [ + { + "name": "Int" + }, + { + "name": "Float", + "integer": 1 + }, + { + "name": "Decimal", + "integer": 2 + }, + { + "name": "DateTime", + "integer": 3 + }, + { + "name": "Duration", + "integer": 4 + } + ] + }, + { + "name": "WindowFrameType", + "enum_fields": [ + { + "name": "Rows" + }, + { + "name": "Ranges", + "integer": 1 + }, + { + "name": "Groups", + "integer": 2 + } + ] + } + ], + "messages": [ + { + "name": "Executor", + "fields": [ + { + "id": 1, + "name": "tp", + "type": "ExecType", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "tbl_scan", + "type": "TableScan", + "optional": true + }, + { + "id": 3, + "name": "idx_scan", + "type": "IndexScan", + "optional": true + }, + { + "id": 4, + "name": "selection", + "type": "Selection", + "optional": true + }, + { + "id": 5, + "name": "aggregation", + "type": "Aggregation", + "optional": true + }, + { + "id": 6, + "name": "topN", + "type": "TopN", + "optional": true + }, + { + "id": 7, + "name": "limit", + "type": "Limit", + "optional": true + }, + { + "id": 8, + "name": "exchange_receiver", + "type": "ExchangeReceiver", + "optional": true + }, + { + "id": 9, + "name": "join", + "type": "Join", + "optional": true + }, + { + "id": 10, + "name": "executor_id", + "type": "string", + "optional": true + }, + { + "id": 11, + "name": "kill", + "type": "Kill", + "optional": true + }, + { + "id": 12, + "name": "exchange_sender", + "type": "ExchangeSender", + "optional": true + }, + { + "id": 13, + "name": "Projection", + "type": "Projection", + "optional": true + }, + { + "id": 14, + "name": "partition_table_scan", + "type": "PartitionTableScan", + "optional": true + }, + { + "id": 15, + "name": "sort", + "type": "Sort", + "optional": true + }, + { + "id": 16, + "name": "window", + "type": "Window", + "optional": true + }, + { + "id": 17, + "name": "fine_grained_shuffle_stream_count", + "type": "uint64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 18, + "name": "fine_grained_shuffle_batch_size", + "type": "uint64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 19, + "name": "expand", + "type": "Expand", + "optional": true + }, + { + "id": 20, + "name": "expand2", + "type": "Expand2", + "optional": true + } + ] + }, + { + "name": "ExchangeSender", + "fields": [ + { + "id": 1, + "name": "tp", + "type": "ExchangeType", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "encoded_task_meta", + "type": "bytes", + "is_repeated": true + }, + { + "id": 3, + "name": "partition_keys", + "type": "Expr", + "is_repeated": true + }, + { + "id": 4, + "name": "child", + "type": "Executor", + "optional": true + }, + { + "id": 5, + "name": "types", + "type": "FieldType", + "is_repeated": true + }, + { + "id": 6, + "name": "all_field_types", + "type": "FieldType", + "is_repeated": true + }, + { + "id": 7, + "name": "compression", + "type": "CompressionMode", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 8, + "name": "upstream_cte_task_meta", + "type": "EncodedBytesSlice", + "is_repeated": true + } + ] + }, + { + "name": "EncodedBytesSlice", + "fields": [ + { + "id": 1, + "name": "encoded_tasks", + "type": "bytes", + "is_repeated": true + } + ] + }, + { + "name": "ExchangeReceiver", + "fields": [ + { + "id": 1, + "name": "encoded_task_meta", + "type": "bytes", + "is_repeated": true + }, + { + "id": 2, + "name": "field_types", + "type": "FieldType", + "is_repeated": true + }, + { + "id": 3, + "name": "tp", + "type": "ExchangeType", + "optional": true + }, + { + "id": 4, + "name": "original_cte_prdocuer_task_meta", + "type": "bytes", + "is_repeated": true + } + ] + }, + { + "name": "ANNQueryInfo", + "fields": [ + { + "id": 1, + "name": "query_type", + "type": "ANNQueryType", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "distance_metric", + "type": "VectorDistanceMetric", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 3, + "name": "top_k", + "type": "uint32", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 4, + "name": "column_name", + "type": "string", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 5, + "name": "column_id", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 6, + "name": "ref_vec_f32", + "type": "bytes", + "optional": true + }, + { + "id": 8, + "name": "index_id", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 10, + "name": "max_distance", + "type": "double", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 20, + "name": "hnsw_ef_search", + "type": "uint32", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + } + ], + "reserved_ids": [ + 7 + ] + }, + { + "name": "TableScan", + "fields": [ + { + "id": 1, + "name": "table_id", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "columns", + "type": "ColumnInfo", + "is_repeated": true + }, + { + "id": 3, + "name": "desc", + "type": "bool", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 4, + "name": "primary_column_ids", + "type": "int64", + "is_repeated": true + }, + { + "id": 5, + "name": "next_read_engine", + "type": "EngineType", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 6, + "name": "ranges", + "type": "KeyRange", + "is_repeated": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 7, + "name": "primary_prefix_column_ids", + "type": "int64", + "is_repeated": true + }, + { + "id": 8, + "name": "keep_order", + "type": "bool", + "optional": true + }, + { + "id": 9, + "name": "is_fast_scan", + "type": "bool", + "optional": true + }, + { + "id": 10, + "name": "pushed_down_filter_conditions", + "type": "Expr", + "is_repeated": true + }, + { + "id": 13, + "name": "ann_query", + "type": "ANNQueryInfo", + "optional": true + }, + { + "id": 11, + "name": "runtime_filter_list", + "type": "RuntimeFilter", + "is_repeated": true + }, + { + "id": 12, + "name": "max_wait_time_ms", + "type": "int32", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + } + ] + }, + { + "name": "PartitionTableScan", + "fields": [ + { + "id": 1, + "name": "table_id", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "columns", + "type": "ColumnInfo", + "is_repeated": true + }, + { + "id": 3, + "name": "desc", + "type": "bool", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 4, + "name": "primary_column_ids", + "type": "int64", + "is_repeated": true + }, + { + "id": 5, + "name": "primary_prefix_column_ids", + "type": "int64", + "is_repeated": true + }, + { + "id": 6, + "name": "partition_ids", + "type": "int64", + "is_repeated": true + }, + { + "id": 7, + "name": "is_fast_scan", + "type": "bool", + "optional": true + }, + { + "id": 8, + "name": "pushed_down_filter_conditions", + "type": "Expr", + "is_repeated": true + }, + { + "id": 11, + "name": "ann_query", + "type": "ANNQueryInfo", + "optional": true + }, + { + "id": 9, + "name": "runtime_filter_list", + "type": "RuntimeFilter", + "is_repeated": true + }, + { + "id": 10, + "name": "max_wait_time_ms", + "type": "int32", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + } + ] + }, + { + "name": "Join", + "fields": [ + { + "id": 1, + "name": "join_type", + "type": "JoinType", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "join_exec_type", + "type": "JoinExecType", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 3, + "name": "children", + "type": "Executor", + "is_repeated": true + }, + { + "id": 4, + "name": "inner_idx", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 5, + "name": "left_join_keys", + "type": "Expr", + "is_repeated": true + }, + { + "id": 6, + "name": "right_join_keys", + "type": "Expr", + "is_repeated": true + }, + { + "id": 7, + "name": "probe_types", + "type": "FieldType", + "is_repeated": true + }, + { + "id": 8, + "name": "build_types", + "type": "FieldType", + "is_repeated": true + }, + { + "id": 9, + "name": "left_conditions", + "type": "Expr", + "is_repeated": true + }, + { + "id": 10, + "name": "right_conditions", + "type": "Expr", + "is_repeated": true + }, + { + "id": 11, + "name": "other_conditions", + "type": "Expr", + "is_repeated": true + }, + { + "id": 12, + "name": "other_eq_conditions_from_in", + "type": "Expr", + "is_repeated": true + }, + { + "id": 13, + "name": "is_null_aware_semi_join", + "type": "bool", + "optional": true + }, + { + "id": 14, + "name": "runtime_filter_list", + "type": "RuntimeFilter", + "is_repeated": true + } + ] + }, + { + "name": "RuntimeFilter", + "fields": [ + { + "id": 1, + "name": "id", + "type": "int32", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "source_expr_list", + "type": "Expr", + "is_repeated": true + }, + { + "id": 3, + "name": "target_expr_list", + "type": "Expr", + "is_repeated": true + }, + { + "id": 4, + "name": "source_executor_id", + "type": "string", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 5, + "name": "target_executor_id", + "type": "string", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 6, + "name": "rf_type", + "type": "RuntimeFilterType", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 7, + "name": "rf_mode", + "type": "RuntimeFilterMode", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + } + ] + }, + { + "name": "IndexScan", + "fields": [ + { + "id": 1, + "name": "table_id", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "index_id", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 3, + "name": "columns", + "type": "ColumnInfo", + "is_repeated": true + }, + { + "id": 4, + "name": "desc", + "type": "bool", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 5, + "name": "unique", + "type": "bool", + "optional": true + }, + { + "id": 6, + "name": "primary_column_ids", + "type": "int64", + "is_repeated": true + } + ] + }, + { + "name": "Selection", + "fields": [ + { + "id": 1, + "name": "conditions", + "type": "Expr", + "is_repeated": true + }, + { + "id": 2, + "name": "rpn_conditions", + "type": "RpnExpr", + "is_repeated": true + }, + { + "id": 3, + "name": "child", + "type": "Executor", + "optional": true + } + ] + }, + { + "name": "Projection", + "fields": [ + { + "id": 1, + "name": "exprs", + "type": "Expr", + "is_repeated": true + }, + { + "id": 2, + "name": "rpn_exprs", + "type": "RpnExpr", + "is_repeated": true + }, + { + "id": 3, + "name": "child", + "type": "Executor", + "optional": true + } + ] + }, + { + "name": "Aggregation", + "fields": [ + { + "id": 1, + "name": "group_by", + "type": "Expr", + "is_repeated": true + }, + { + "id": 4, + "name": "rpn_group_by", + "type": "RpnExpr", + "is_repeated": true + }, + { + "id": 2, + "name": "agg_func", + "type": "Expr", + "is_repeated": true + }, + { + "id": 5, + "name": "rpn_agg_func", + "type": "RpnExpr", + "is_repeated": true + }, + { + "id": 3, + "name": "streamed", + "type": "bool", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 6, + "name": "child", + "type": "Executor", + "optional": true + }, + { + "id": 7, + "name": "pre_agg_mode", + "type": "TiFlashPreAggMode", + "optional": true + } + ] + }, + { + "name": "TopN", + "fields": [ + { + "id": 1, + "name": "order_by", + "type": "ByItem", + "is_repeated": true + }, + { + "id": 2, + "name": "limit", + "type": "uint64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 3, + "name": "child", + "type": "Executor", + "optional": true + }, + { + "id": 4, + "name": "partition_by", + "type": "ByItem", + "is_repeated": true + } + ] + }, + { + "name": "Limit", + "fields": [ + { + "id": 1, + "name": "limit", + "type": "uint64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "child", + "type": "Executor", + "optional": true + }, + { + "id": 3, + "name": "partition_by", + "type": "ByItem", + "is_repeated": true + } + ] + }, + { + "name": "Kill", + "fields": [ + { + "id": 1, + "name": "connID", + "type": "uint64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "query", + "type": "bool", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + } + ] + }, + { + "name": "ExecutorExecutionSummary", + "fields": [ + { + "id": 1, + "name": "time_processed_ns", + "type": "uint64", + "optional": true + }, + { + "id": 2, + "name": "num_produced_rows", + "type": "uint64", + "optional": true + }, + { + "id": 3, + "name": "num_iterations", + "type": "uint64", + "optional": true + }, + { + "id": 4, + "name": "executor_id", + "type": "string", + "optional": true + }, + { + "id": 5, + "name": "concurrency", + "type": "uint64", + "optional": true + }, + { + "id": 6, + "name": "tiflash_scan_context", + "type": "TiFlashScanContext" + }, + { + "id": 7, + "name": "ru_consumption", + "type": "bytes", + "optional": true + }, + { + "id": 8, + "name": "tiflash_wait_summary", + "type": "TiFlashWaitSummary", + "optional": true + } + ] + }, + { + "name": "TiFlashExecutionInfo", + "fields": [ + { + "id": 1, + "name": "execution_summaries", + "type": "ExecutorExecutionSummary", + "is_repeated": true + } + ] + }, + { + "name": "TiFlashRegionNumOfInstance", + "fields": [ + { + "id": 1, + "name": "instance_id", + "type": "string", + "optional": true + }, + { + "id": 2, + "name": "region_num", + "type": "uint64", + "optional": true + } + ] + }, + { + "name": "TiFlashScanContext", + "fields": [ + { + "id": 1, + "name": "dmfile_scanned_packs", + "type": "uint64", + "optional": true, + "options": [ + { + "name": "deprecated", + "value": "true" + } + ] + }, + { + "id": 2, + "name": "dmfile_skipped_packs", + "type": "uint64", + "optional": true, + "options": [ + { + "name": "deprecated", + "value": "true" + } + ] + }, + { + "id": 3, + "name": "dmfile_data_scanned_rows", + "type": "uint64", + "optional": true + }, + { + "id": 4, + "name": "dmfile_data_skipped_rows", + "type": "uint64", + "optional": true + }, + { + "id": 5, + "name": "total_dmfile_rs_load_ms", + "type": "uint64", + "optional": true, + "options": [ + { + "name": "deprecated", + "value": "true" + } + ] + }, + { + "id": 6, + "name": "total_dmfile_read_ms", + "type": "uint64", + "optional": true + }, + { + "id": 7, + "name": "total_build_snapshot_ms", + "type": "uint64", + "optional": true + }, + { + "id": 8, + "name": "local_regions", + "type": "uint64", + "optional": true + }, + { + "id": 9, + "name": "remote_regions", + "type": "uint64", + "optional": true + }, + { + "id": 10, + "name": "user_read_bytes", + "type": "uint64", + "optional": true + }, + { + "id": 11, + "name": "total_learner_read_ms", + "type": "uint64", + "optional": true + }, + { + "id": 12, + "name": "disagg_read_cache_hit_bytes", + "type": "uint64", + "optional": true + }, + { + "id": 13, + "name": "disagg_read_cache_miss_bytes", + "type": "uint64", + "optional": true + }, + { + "id": 14, + "name": "total_dmfile_rs_check_ms", + "type": "uint64", + "optional": true + }, + { + "id": 15, + "name": "stale_read_regions", + "type": "uint64", + "optional": true + }, + { + "id": 16, + "name": "segments", + "type": "uint64", + "optional": true + }, + { + "id": 17, + "name": "read_tasks", + "type": "uint64", + "optional": true + }, + { + "id": 18, + "name": "delta_rows", + "type": "uint64", + "optional": true + }, + { + "id": 19, + "name": "delta_bytes", + "type": "uint64", + "optional": true + }, + { + "id": 20, + "name": "mvcc_input_rows", + "type": "uint64", + "optional": true + }, + { + "id": 21, + "name": "mvcc_input_bytes", + "type": "uint64", + "optional": true + }, + { + "id": 22, + "name": "mvcc_output_rows", + "type": "uint64", + "optional": true + }, + { + "id": 23, + "name": "lm_skip_rows", + "type": "uint64", + "optional": true + }, + { + "id": 24, + "name": "total_build_inputstream_ms", + "type": "uint64", + "optional": true + }, + { + "id": 25, + "name": "total_build_bitmap_ms", + "type": "uint64", + "optional": true + }, + { + "id": 26, + "name": "min_local_stream_ms", + "type": "uint64", + "optional": true + }, + { + "id": 27, + "name": "max_local_stream_ms", + "type": "uint64", + "optional": true + }, + { + "id": 28, + "name": "min_remote_stream_ms", + "type": "uint64", + "optional": true + }, + { + "id": 29, + "name": "max_remote_stream_ms", + "type": "uint64", + "optional": true + }, + { + "id": 30, + "name": "regions_of_instance", + "type": "TiFlashRegionNumOfInstance", + "is_repeated": true + }, + { + "id": 31, + "name": "dmfile_mvcc_scanned_rows", + "type": "uint64", + "optional": true + }, + { + "id": 32, + "name": "dmfile_mvcc_skipped_rows", + "type": "uint64", + "optional": true + }, + { + "id": 33, + "name": "dmfile_lm_filter_scanned_rows", + "type": "uint64", + "optional": true + }, + { + "id": 34, + "name": "dmfile_lm_filter_skipped_rows", + "type": "uint64", + "optional": true + }, + { + "id": 100, + "name": "total_vector_idx_load_from_s3", + "type": "uint64", + "optional": true + }, + { + "id": 101, + "name": "total_vector_idx_load_from_disk", + "type": "uint64", + "optional": true + }, + { + "id": 102, + "name": "total_vector_idx_load_from_cache", + "type": "uint64", + "optional": true + }, + { + "id": 103, + "name": "total_vector_idx_load_time_ms", + "type": "uint64", + "optional": true + }, + { + "id": 104, + "name": "total_vector_idx_search_time_ms", + "type": "uint64", + "optional": true + }, + { + "id": 105, + "name": "total_vector_idx_search_visited_nodes", + "type": "uint64", + "optional": true + }, + { + "id": 106, + "name": "total_vector_idx_search_discarded_nodes", + "type": "uint64", + "optional": true + }, + { + "id": 107, + "name": "total_vector_idx_read_vec_time_ms", + "type": "uint64", + "optional": true + }, + { + "id": 108, + "name": "total_vector_idx_read_others_time_ms", + "type": "uint64", + "optional": true + } + ] + }, + { + "name": "TiFlashWaitSummary", + "fields": [ + { + "id": 1, + "name": "minTSO_wait_ns", + "type": "uint64", + "optional": true + }, + { + "id": 2, + "name": "pipeline_queue_wait_ns", + "type": "uint64", + "optional": true + }, + { + "id": 3, + "name": "pipeline_breaker_wait_ns", + "type": "uint64", + "optional": true + } + ] + }, + { + "name": "Sort", + "fields": [ + { + "id": 1, + "name": "byItems", + "type": "ByItem", + "is_repeated": true + }, + { + "id": 2, + "name": "isPartialSort", + "type": "bool", + "optional": true + }, + { + "id": 3, + "name": "child", + "type": "Executor", + "optional": true + } + ] + }, + { + "name": "WindowFrameBound", + "fields": [ + { + "id": 1, + "name": "type", + "type": "WindowBoundType", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "unbounded", + "type": "bool", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 3, + "name": "offset", + "type": "uint64", + "optional": true + }, + { + "id": 4, + "name": "calcFuncs", + "type": "Expr", + "is_repeated": true + }, + { + "id": 5, + "name": "frame_range", + "type": "Expr", + "optional": true + }, + { + "id": 6, + "name": "cmp_data_type", + "type": "RangeCmpDataType", + "optional": true + } + ] + }, + { + "name": "WindowFrame", + "fields": [ + { + "id": 1, + "name": "type", + "type": "WindowFrameType", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "start", + "type": "WindowFrameBound", + "optional": true + }, + { + "id": 3, + "name": "end", + "type": "WindowFrameBound", + "optional": true + } + ] + }, + { + "name": "Window", + "fields": [ + { + "id": 1, + "name": "func_desc", + "type": "Expr", + "is_repeated": true + }, + { + "id": 2, + "name": "partition_by", + "type": "ByItem", + "is_repeated": true + }, + { + "id": 3, + "name": "order_by", + "type": "ByItem", + "is_repeated": true + }, + { + "id": 4, + "name": "frame", + "type": "WindowFrame", + "optional": true + }, + { + "id": 5, + "name": "child", + "type": "Executor", + "optional": true + } + ] + }, + { + "name": "GroupingExpr", + "fields": [ + { + "id": 1, + "name": "grouping_expr", + "type": "Expr", + "is_repeated": true + } + ] + }, + { + "name": "GroupingSet", + "fields": [ + { + "id": 1, + "name": "grouping_exprs", + "type": "GroupingExpr", + "is_repeated": true + } + ] + }, + { + "name": "Expand", + "fields": [ + { + "id": 1, + "name": "grouping_sets", + "type": "GroupingSet", + "is_repeated": true + }, + { + "id": 2, + "name": "child", + "type": "Executor", + "optional": true + }, + { + "id": 3, + "name": "version", + "type": "uint64", + "optional": true + } + ] + }, + { + "name": "ExprSlice", + "fields": [ + { + "id": 1, + "name": "exprs", + "type": "Expr", + "is_repeated": true + } + ] + }, + { + "name": "Expand2", + "fields": [ + { + "id": 1, + "name": "proj_exprs", + "type": "ExprSlice", + "is_repeated": true + }, + { + "id": 2, + "name": "generated_output_names", + "type": "string", + "is_repeated": true + }, + { + "id": 3, + "name": "child", + "type": "Executor", + "optional": true + } + ] + } + ], + "imports": [ + { + "path": "expression.proto" + }, + { + "path": "schema.proto" + }, + { + "path": "gogoproto/gogo.proto" + }, + { + "path": "rustproto.proto" + } + ], + "package": { + "name": "tipb" + }, + "options": [ + { + "name": "java_multiple_files", + "value": "true" + }, + { + "name": "java_package", + "value": "com.pingcap.tidb.tipb" + }, + { + "name": "(gogoproto.marshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.sizer_all)", + "value": "true" + }, + { + "name": "(gogoproto.unmarshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.goproto_unkeyed_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_unrecognized_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_sizecache_all)", + "value": "false" + }, + { + "name": "(rustproto.lite_runtime_all)", + "value": "true" + } + ] + } + }, + { + "protopath": "explain.proto", + "def": { + "enums": [ + { + "name": "TaskType", + "enum_fields": [ + { + "name": "unknown" + }, + { + "name": "root", + "integer": 1 + }, + { + "name": "cop", + "integer": 2 + }, + { + "name": "batchCop", + "integer": 3 + }, + { + "name": "mpp", + "integer": 4 + } + ] + }, + { + "name": "StoreType", + "enum_fields": [ + { + "name": "unspecified" + }, + { + "name": "tidb", + "integer": 1 + }, + { + "name": "tikv", + "integer": 2 + }, + { + "name": "tiflash", + "integer": 3 + } + ] + }, + { + "name": "OperatorLabel", + "enum_fields": [ + { + "name": "empty" + }, + { + "name": "buildSide", + "integer": 1 + }, + { + "name": "probeSide", + "integer": 2 + }, + { + "name": "seedPart", + "integer": 3 + }, + { + "name": "recursivePart", + "integer": 4 + } + ] + } + ], + "messages": [ + { + "name": "ExplainData", + "fields": [ + { + "id": 1, + "name": "main", + "type": "ExplainOperator" + }, + { + "id": 2, + "name": "ctes", + "type": "ExplainOperator", + "is_repeated": true + }, + { + "id": 3, + "name": "with_runtime_stats", + "type": "bool" + }, + { + "id": 4, + "name": "discarded_due_to_too_long", + "type": "bool" + } + ] + }, + { + "name": "ExplainOperator", + "fields": [ + { + "id": 1, + "name": "name", + "type": "string" + }, + { + "id": 2, + "name": "children", + "type": "ExplainOperator", + "is_repeated": true + }, + { + "id": 3, + "name": "labels", + "type": "OperatorLabel", + "is_repeated": true + }, + { + "id": 4, + "name": "cost", + "type": "double" + }, + { + "id": 5, + "name": "est_rows", + "type": "double" + }, + { + "id": 6, + "name": "act_rows", + "type": "uint64" + }, + { + "id": 7, + "name": "task_type", + "type": "TaskType" + }, + { + "id": 8, + "name": "store_type", + "type": "StoreType" + }, + { + "id": 9, + "name": "access_objects", + "type": "AccessObject", + "is_repeated": true + }, + { + "id": 10, + "name": "operator_info", + "type": "string" + }, + { + "id": 11, + "name": "root_basic_exec_info", + "type": "string" + }, + { + "id": 12, + "name": "root_group_exec_info", + "type": "string", + "is_repeated": true + }, + { + "id": 13, + "name": "cop_exec_info", + "type": "string" + }, + { + "id": 14, + "name": "memory_bytes", + "type": "int64" + }, + { + "id": 15, + "name": "disk_bytes", + "type": "int64" + } + ] + }, + { + "name": "AccessObject", + "fields": [ + { + "id": 1, + "name": "scan_object", + "type": "ScanAccessObject" + }, + { + "id": 2, + "name": "dynamic_partition_objects", + "type": "DynamicPartitionAccessObjects" + }, + { + "id": 3, + "name": "other_object", + "type": "string" + } + ] + }, + { + "name": "DynamicPartitionAccessObjects", + "fields": [ + { + "id": 1, + "name": "objects", + "type": "DynamicPartitionAccessObject", + "is_repeated": true + } + ] + }, + { + "name": "DynamicPartitionAccessObject", + "fields": [ + { + "id": 1, + "name": "database", + "type": "string" + }, + { + "id": 2, + "name": "table", + "type": "string" + }, + { + "id": 3, + "name": "all_partitions", + "type": "bool" + }, + { + "id": 4, + "name": "partitions", + "type": "string", + "is_repeated": true + } + ] + }, + { + "name": "ScanAccessObject", + "fields": [ + { + "id": 1, + "name": "database", + "type": "string" + }, + { + "id": 2, + "name": "table", + "type": "string" + }, + { + "id": 3, + "name": "indexes", + "type": "IndexAccess", + "is_repeated": true + }, + { + "id": 4, + "name": "partitions", + "type": "string", + "is_repeated": true + } + ] + }, + { + "name": "IndexAccess", + "fields": [ + { + "id": 1, + "name": "name", + "type": "string" + }, + { + "id": 2, + "name": "cols", + "type": "string", + "is_repeated": true + }, + { + "id": 3, + "name": "is_clustered_index", + "type": "bool" + } + ] + } + ], + "imports": [ + { + "path": "gogoproto/gogo.proto" + }, + { + "path": "rustproto.proto" + } + ], + "package": { + "name": "tipb" + }, + "options": [ + { + "name": "java_multiple_files", + "value": "true" + }, + { + "name": "java_package", + "value": "com.pingcap.tidb.tipb" + }, + { + "name": "(gogoproto.marshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.sizer_all)", + "value": "true" + }, + { + "name": "(gogoproto.unmarshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.goproto_unkeyed_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_unrecognized_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_sizecache_all)", + "value": "false" + }, + { + "name": "(rustproto.lite_runtime_all)", + "value": "true" + } + ] + } + }, + { + "protopath": "expression.proto", + "def": { + "enums": [ + { + "name": "ExprType", + "enum_fields": [ + { + "name": "Null" + }, + { + "name": "Int64", + "integer": 1 + }, + { + "name": "Uint64", + "integer": 2 + }, + { + "name": "Float32", + "integer": 3 + }, + { + "name": "Float64", + "integer": 4 + }, + { + "name": "String", + "integer": 5 + }, + { + "name": "Bytes", + "integer": 6 + }, + { + "name": "MysqlBit", + "integer": 101 + }, + { + "name": "MysqlDecimal", + "integer": 102 + }, + { + "name": "MysqlDuration", + "integer": 103 + }, + { + "name": "MysqlEnum", + "integer": 104 + }, + { + "name": "MysqlHex", + "integer": 105 + }, + { + "name": "MysqlSet", + "integer": 106 + }, + { + "name": "MysqlTime", + "integer": 107 + }, + { + "name": "MysqlJson", + "integer": 108 + }, + { + "name": "TiDBVectorFloat32", + "integer": 121 + }, + { + "name": "ValueList", + "integer": 151 + }, + { + "name": "ColumnRef", + "integer": 201 + }, + { + "name": "Count", + "integer": 3001 + }, + { + "name": "Sum", + "integer": 3002 + }, + { + "name": "Avg", + "integer": 3003 + }, + { + "name": "Min", + "integer": 3004 + }, + { + "name": "Max", + "integer": 3005 + }, + { + "name": "First", + "integer": 3006 + }, + { + "name": "GroupConcat", + "integer": 3007 + }, + { + "name": "Agg_BitAnd", + "integer": 3008 + }, + { + "name": "Agg_BitOr", + "integer": 3009 + }, + { + "name": "Agg_BitXor", + "integer": 3010 + }, + { + "name": "Std", + "integer": 3011 + }, + { + "name": "Stddev", + "integer": 3012 + }, + { + "name": "StddevPop", + "integer": 3013 + }, + { + "name": "StddevSamp", + "integer": 3014 + }, + { + "name": "VarPop", + "integer": 3015 + }, + { + "name": "VarSamp", + "integer": 3016 + }, + { + "name": "Variance", + "integer": 3017 + }, + { + "name": "JsonArrayAgg", + "integer": 3018 + }, + { + "name": "JsonObjectAgg", + "integer": 3019 + }, + { + "name": "ApproxCountDistinct", + "integer": 3020 + }, + { + "name": "RowNumber", + "integer": 4001 + }, + { + "name": "Rank", + "integer": 4002 + }, + { + "name": "DenseRank", + "integer": 4003 + }, + { + "name": "CumeDist", + "integer": 4004 + }, + { + "name": "PercentRank", + "integer": 4005 + }, + { + "name": "Ntile", + "integer": 4006 + }, + { + "name": "Lead", + "integer": 4007 + }, + { + "name": "Lag", + "integer": 4008 + }, + { + "name": "FirstValue", + "integer": 4009 + }, + { + "name": "LastValue", + "integer": 4010 + }, + { + "name": "NthValue", + "integer": 4011 + }, + { + "name": "ScalarFunc", + "integer": 10000 + } + ] + }, + { + "name": "ScalarFuncSig", + "enum_fields": [ + { + "name": "Unspecified" + }, + { + "name": "CastIntAsInt", + "integer": 1 + }, + { + "name": "CastIntAsReal", + "integer": 2 + }, + { + "name": "CastIntAsString", + "integer": 3 + }, + { + "name": "CastIntAsDecimal", + "integer": 4 + }, + { + "name": "CastIntAsTime", + "integer": 5 + }, + { + "name": "CastIntAsDuration", + "integer": 6 + }, + { + "name": "CastIntAsJson", + "integer": 7 + }, + { + "name": "CastRealAsInt", + "integer": 10 + }, + { + "name": "CastRealAsReal", + "integer": 11 + }, + { + "name": "CastRealAsString", + "integer": 12 + }, + { + "name": "CastRealAsDecimal", + "integer": 13 + }, + { + "name": "CastRealAsTime", + "integer": 14 + }, + { + "name": "CastRealAsDuration", + "integer": 15 + }, + { + "name": "CastRealAsJson", + "integer": 16 + }, + { + "name": "CastDecimalAsInt", + "integer": 20 + }, + { + "name": "CastDecimalAsReal", + "integer": 21 + }, + { + "name": "CastDecimalAsString", + "integer": 22 + }, + { + "name": "CastDecimalAsDecimal", + "integer": 23 + }, + { + "name": "CastDecimalAsTime", + "integer": 24 + }, + { + "name": "CastDecimalAsDuration", + "integer": 25 + }, + { + "name": "CastDecimalAsJson", + "integer": 26 + }, + { + "name": "CastStringAsInt", + "integer": 30 + }, + { + "name": "CastStringAsReal", + "integer": 31 + }, + { + "name": "CastStringAsString", + "integer": 32 + }, + { + "name": "CastStringAsDecimal", + "integer": 33 + }, + { + "name": "CastStringAsTime", + "integer": 34 + }, + { + "name": "CastStringAsDuration", + "integer": 35 + }, + { + "name": "CastStringAsJson", + "integer": 36 + }, + { + "name": "CastTimeAsInt", + "integer": 40 + }, + { + "name": "CastTimeAsReal", + "integer": 41 + }, + { + "name": "CastTimeAsString", + "integer": 42 + }, + { + "name": "CastTimeAsDecimal", + "integer": 43 + }, + { + "name": "CastTimeAsTime", + "integer": 44 + }, + { + "name": "CastTimeAsDuration", + "integer": 45 + }, + { + "name": "CastTimeAsJson", + "integer": 46 + }, + { + "name": "CastDurationAsInt", + "integer": 50 + }, + { + "name": "CastDurationAsReal", + "integer": 51 + }, + { + "name": "CastDurationAsString", + "integer": 52 + }, + { + "name": "CastDurationAsDecimal", + "integer": 53 + }, + { + "name": "CastDurationAsTime", + "integer": 54 + }, + { + "name": "CastDurationAsDuration", + "integer": 55 + }, + { + "name": "CastDurationAsJson", + "integer": 56 + }, + { + "name": "CastJsonAsInt", + "integer": 60 + }, + { + "name": "CastJsonAsReal", + "integer": 61 + }, + { + "name": "CastJsonAsString", + "integer": 62 + }, + { + "name": "CastJsonAsDecimal", + "integer": 63 + }, + { + "name": "CastJsonAsTime", + "integer": 64 + }, + { + "name": "CastJsonAsDuration", + "integer": 65 + }, + { + "name": "CastJsonAsJson", + "integer": 66 + }, + { + "name": "CoalesceInt", + "integer": 4201 + }, + { + "name": "CoalesceReal", + "integer": 4202 + }, + { + "name": "CoalesceDecimal", + "integer": 4203 + }, + { + "name": "CoalesceString", + "integer": 4204 + }, + { + "name": "CoalesceTime", + "integer": 4205 + }, + { + "name": "CoalesceDuration", + "integer": 4206 + }, + { + "name": "CoalesceJson", + "integer": 4207 + }, + { + "name": "LTInt", + "integer": 100 + }, + { + "name": "LTReal", + "integer": 101 + }, + { + "name": "LTDecimal", + "integer": 102 + }, + { + "name": "LTString", + "integer": 103 + }, + { + "name": "LTTime", + "integer": 104 + }, + { + "name": "LTDuration", + "integer": 105 + }, + { + "name": "LTJson", + "integer": 106 + }, + { + "name": "LEInt", + "integer": 110 + }, + { + "name": "LEReal", + "integer": 111 + }, + { + "name": "LEDecimal", + "integer": 112 + }, + { + "name": "LEString", + "integer": 113 + }, + { + "name": "LETime", + "integer": 114 + }, + { + "name": "LEDuration", + "integer": 115 + }, + { + "name": "LEJson", + "integer": 116 + }, + { + "name": "GTInt", + "integer": 120 + }, + { + "name": "GTReal", + "integer": 121 + }, + { + "name": "GTDecimal", + "integer": 122 + }, + { + "name": "GTString", + "integer": 123 + }, + { + "name": "GTTime", + "integer": 124 + }, + { + "name": "GTDuration", + "integer": 125 + }, + { + "name": "GTJson", + "integer": 126 + }, + { + "name": "GreatestInt", + "integer": 4215 + }, + { + "name": "GreatestReal", + "integer": 4216 + }, + { + "name": "GreatestDecimal", + "integer": 4217 + }, + { + "name": "GreatestString", + "integer": 4218 + }, + { + "name": "GreatestTime", + "integer": 4219 + }, + { + "name": "LeastInt", + "integer": 4220 + }, + { + "name": "LeastReal", + "integer": 4221 + }, + { + "name": "LeastDecimal", + "integer": 4222 + }, + { + "name": "LeastString", + "integer": 4223 + }, + { + "name": "LeastTime", + "integer": 4224 + }, + { + "name": "IntervalInt", + "integer": 4225 + }, + { + "name": "IntervalReal", + "integer": 4226 + }, + { + "name": "GEInt", + "integer": 130 + }, + { + "name": "GEReal", + "integer": 131 + }, + { + "name": "GEDecimal", + "integer": 132 + }, + { + "name": "GEString", + "integer": 133 + }, + { + "name": "GETime", + "integer": 134 + }, + { + "name": "GEDuration", + "integer": 135 + }, + { + "name": "GEJson", + "integer": 136 + }, + { + "name": "EQInt", + "integer": 140 + }, + { + "name": "EQReal", + "integer": 141 + }, + { + "name": "EQDecimal", + "integer": 142 + }, + { + "name": "EQString", + "integer": 143 + }, + { + "name": "EQTime", + "integer": 144 + }, + { + "name": "EQDuration", + "integer": 145 + }, + { + "name": "EQJson", + "integer": 146 + }, + { + "name": "NEInt", + "integer": 150 + }, + { + "name": "NEReal", + "integer": 151 + }, + { + "name": "NEDecimal", + "integer": 152 + }, + { + "name": "NEString", + "integer": 153 + }, + { + "name": "NETime", + "integer": 154 + }, + { + "name": "NEDuration", + "integer": 155 + }, + { + "name": "NEJson", + "integer": 156 + }, + { + "name": "NullEQInt", + "integer": 160 + }, + { + "name": "NullEQReal", + "integer": 161 + }, + { + "name": "NullEQDecimal", + "integer": 162 + }, + { + "name": "NullEQString", + "integer": 163 + }, + { + "name": "NullEQTime", + "integer": 164 + }, + { + "name": "NullEQDuration", + "integer": 165 + }, + { + "name": "NullEQJson", + "integer": 166 + }, + { + "name": "PlusReal", + "integer": 200 + }, + { + "name": "PlusDecimal", + "integer": 201 + }, + { + "name": "PlusInt", + "integer": 203 + }, + { + "name": "MinusReal", + "integer": 204 + }, + { + "name": "MinusDecimal", + "integer": 205 + }, + { + "name": "MinusInt", + "integer": 207 + }, + { + "name": "MultiplyReal", + "integer": 208 + }, + { + "name": "MultiplyDecimal", + "integer": 209 + }, + { + "name": "MultiplyInt", + "integer": 210 + }, + { + "name": "DivideReal", + "integer": 211 + }, + { + "name": "DivideDecimal", + "integer": 212 + }, + { + "name": "IntDivideInt", + "integer": 213 + }, + { + "name": "IntDivideDecimal", + "integer": 214 + }, + { + "name": "ModReal", + "integer": 215 + }, + { + "name": "ModDecimal", + "integer": 216 + }, + { + "name": "ModInt", + "integer": 217 + }, + { + "name": "MultiplyIntUnsigned", + "integer": 218 + }, + { + "name": "PlusIntUnsignedUnsigned", + "integer": 219 + }, + { + "name": "PlusIntUnsignedSigned", + "integer": 220 + }, + { + "name": "PlusIntSignedUnsigned", + "integer": 221 + }, + { + "name": "PlusIntSignedSigned", + "integer": 222 + }, + { + "name": "ModIntUnsignedUnsigned", + "integer": 223 + }, + { + "name": "ModIntUnsignedSigned", + "integer": 224 + }, + { + "name": "ModIntSignedUnsigned", + "integer": 225 + }, + { + "name": "ModIntSignedSigned", + "integer": 226 + }, + { + "name": "MinusIntUnsignedUnsigned", + "integer": 227 + }, + { + "name": "MinusIntUnsignedSigned", + "integer": 228 + }, + { + "name": "MinusIntSignedUnsigned", + "integer": 229 + }, + { + "name": "MinusIntSignedSigned", + "integer": 230 + }, + { + "name": "MinusIntForcedUnsignedUnsigned", + "integer": 231 + }, + { + "name": "MinusIntForcedUnsignedSigned", + "integer": 232 + }, + { + "name": "MinusIntForcedSignedUnsigned", + "integer": 233 + }, + { + "name": "IntDivideIntUnsignedUnsigned", + "integer": 234 + }, + { + "name": "IntDivideIntUnsignedSigned", + "integer": 235 + }, + { + "name": "IntDivideIntSignedSigned", + "integer": 236 + }, + { + "name": "IntDivideIntSignedUnsigned", + "integer": 237 + }, + { + "name": "AbsInt", + "integer": 2101 + }, + { + "name": "AbsUInt", + "integer": 2102 + }, + { + "name": "AbsReal", + "integer": 2103 + }, + { + "name": "AbsDecimal", + "integer": 2104 + }, + { + "name": "CeilIntToDec", + "integer": 2105 + }, + { + "name": "CeilIntToInt", + "integer": 2106 + }, + { + "name": "CeilDecToInt", + "integer": 2107 + }, + { + "name": "CeilDecToDec", + "integer": 2108 + }, + { + "name": "CeilReal", + "integer": 2109 + }, + { + "name": "FloorIntToDec", + "integer": 2110 + }, + { + "name": "FloorIntToInt", + "integer": 2111 + }, + { + "name": "FloorDecToInt", + "integer": 2112 + }, + { + "name": "FloorDecToDec", + "integer": 2113 + }, + { + "name": "FloorReal", + "integer": 2114 + }, + { + "name": "RoundReal", + "integer": 2121 + }, + { + "name": "RoundInt", + "integer": 2122 + }, + { + "name": "RoundDec", + "integer": 2123 + }, + { + "name": "RoundWithFracReal", + "integer": 2124 + }, + { + "name": "RoundWithFracInt", + "integer": 2125 + }, + { + "name": "RoundWithFracDec", + "integer": 2126 + }, + { + "name": "Log1Arg", + "integer": 2131 + }, + { + "name": "Log2Args", + "integer": 2132 + }, + { + "name": "Log2", + "integer": 2133 + }, + { + "name": "Log10", + "integer": 2134 + }, + { + "name": "Rand", + "integer": 2135 + }, + { + "name": "RandWithSeedFirstGen", + "integer": 2136 + }, + { + "name": "Pow", + "integer": 2137 + }, + { + "name": "Conv", + "integer": 2138 + }, + { + "name": "CRC32", + "integer": 2139 + }, + { + "name": "Sign", + "integer": 2140 + }, + { + "name": "Sqrt", + "integer": 2141 + }, + { + "name": "Acos", + "integer": 2142 + }, + { + "name": "Asin", + "integer": 2143 + }, + { + "name": "Atan1Arg", + "integer": 2144 + }, + { + "name": "Atan2Args", + "integer": 2145 + }, + { + "name": "Cos", + "integer": 2146 + }, + { + "name": "Cot", + "integer": 2147 + }, + { + "name": "Degrees", + "integer": 2148 + }, + { + "name": "Exp", + "integer": 2149 + }, + { + "name": "PI", + "integer": 2150 + }, + { + "name": "Radians", + "integer": 2151 + }, + { + "name": "Sin", + "integer": 2152 + }, + { + "name": "Tan", + "integer": 2153 + }, + { + "name": "TruncateInt", + "integer": 2154 + }, + { + "name": "TruncateReal", + "integer": 2155 + }, + { + "name": "TruncateDecimal", + "integer": 2156 + }, + { + "name": "TruncateUint", + "integer": 2157 + }, + { + "name": "LogicalAnd", + "integer": 3101 + }, + { + "name": "LogicalOr", + "integer": 3102 + }, + { + "name": "LogicalXor", + "integer": 3103 + }, + { + "name": "UnaryNotInt", + "integer": 3104 + }, + { + "name": "UnaryNotDecimal", + "integer": 3105 + }, + { + "name": "UnaryNotReal", + "integer": 3106 + }, + { + "name": "UnaryNotJSON", + "integer": 3107 + }, + { + "name": "UnaryMinusInt", + "integer": 3108 + }, + { + "name": "UnaryMinusReal", + "integer": 3109 + }, + { + "name": "UnaryMinusDecimal", + "integer": 3110 + }, + { + "name": "DecimalIsNull", + "integer": 3111 + }, + { + "name": "DurationIsNull", + "integer": 3112 + }, + { + "name": "RealIsNull", + "integer": 3113 + }, + { + "name": "StringIsNull", + "integer": 3114 + }, + { + "name": "TimeIsNull", + "integer": 3115 + }, + { + "name": "IntIsNull", + "integer": 3116 + }, + { + "name": "JsonIsNull", + "integer": 3117 + }, + { + "name": "BitAndSig", + "integer": 3118 + }, + { + "name": "BitOrSig", + "integer": 3119 + }, + { + "name": "BitXorSig", + "integer": 3120 + }, + { + "name": "BitNegSig", + "integer": 3121 + }, + { + "name": "IntIsTrue", + "integer": 3122 + }, + { + "name": "RealIsTrue", + "integer": 3123 + }, + { + "name": "DecimalIsTrue", + "integer": 3124 + }, + { + "name": "IntIsFalse", + "integer": 3125 + }, + { + "name": "RealIsFalse", + "integer": 3126 + }, + { + "name": "DecimalIsFalse", + "integer": 3127 + }, + { + "name": "LeftShift", + "integer": 3129 + }, + { + "name": "RightShift", + "integer": 3130 + }, + { + "name": "IntIsTrueWithNull", + "integer": 3142 + }, + { + "name": "RealIsTrueWithNull", + "integer": 3143 + }, + { + "name": "DecimalIsTrueWithNull", + "integer": 3144 + }, + { + "name": "IntIsFalseWithNull", + "integer": 3145 + }, + { + "name": "RealIsFalseWithNull", + "integer": 3146 + }, + { + "name": "DecimalIsFalseWithNull", + "integer": 3147 + }, + { + "name": "BitCount", + "integer": 3128 + }, + { + "name": "GetParamString", + "integer": 3131 + }, + { + "name": "GetVar", + "integer": 3132 + }, + { + "name": "RowSig", + "integer": 3133 + }, + { + "name": "SetVar", + "integer": 3134 + }, + { + "name": "ValuesDecimal", + "integer": 3135 + }, + { + "name": "ValuesDuration", + "integer": 3136 + }, + { + "name": "ValuesInt", + "integer": 3137 + }, + { + "name": "ValuesJSON", + "integer": 3138 + }, + { + "name": "ValuesReal", + "integer": 3139 + }, + { + "name": "ValuesString", + "integer": 3140 + }, + { + "name": "ValuesTime", + "integer": 3141 + }, + { + "name": "InInt", + "integer": 4001 + }, + { + "name": "InReal", + "integer": 4002 + }, + { + "name": "InDecimal", + "integer": 4003 + }, + { + "name": "InString", + "integer": 4004 + }, + { + "name": "InTime", + "integer": 4005 + }, + { + "name": "InDuration", + "integer": 4006 + }, + { + "name": "InJson", + "integer": 4007 + }, + { + "name": "IfNullInt", + "integer": 4101 + }, + { + "name": "IfNullReal", + "integer": 4102 + }, + { + "name": "IfNullDecimal", + "integer": 4103 + }, + { + "name": "IfNullString", + "integer": 4104 + }, + { + "name": "IfNullTime", + "integer": 4105 + }, + { + "name": "IfNullDuration", + "integer": 4106 + }, + { + "name": "IfInt", + "integer": 4107 + }, + { + "name": "IfReal", + "integer": 4108 + }, + { + "name": "IfDecimal", + "integer": 4109 + }, + { + "name": "IfString", + "integer": 4110 + }, + { + "name": "IfTime", + "integer": 4111 + }, + { + "name": "IfDuration", + "integer": 4112 + }, + { + "name": "IfNullJson", + "integer": 4113 + }, + { + "name": "IfJson", + "integer": 4114 + }, + { + "name": "CaseWhenInt", + "integer": 4208 + }, + { + "name": "CaseWhenReal", + "integer": 4209 + }, + { + "name": "CaseWhenDecimal", + "integer": 4210 + }, + { + "name": "CaseWhenString", + "integer": 4211 + }, + { + "name": "CaseWhenTime", + "integer": 4212 + }, + { + "name": "CaseWhenDuration", + "integer": 4213 + }, + { + "name": "CaseWhenJson", + "integer": 4214 + }, + { + "name": "AesDecrypt", + "integer": 4501 + }, + { + "name": "AesEncrypt", + "integer": 4502 + }, + { + "name": "Compress", + "integer": 4503 + }, + { + "name": "MD5", + "integer": 4504 + }, + { + "name": "Password", + "integer": 4505 + }, + { + "name": "RandomBytes", + "integer": 4506 + }, + { + "name": "SHA1", + "integer": 4507 + }, + { + "name": "SHA2", + "integer": 4508 + }, + { + "name": "Uncompress", + "integer": 4509 + }, + { + "name": "UncompressedLength", + "integer": 4510 + }, + { + "name": "AesDecryptIV", + "integer": 4511 + }, + { + "name": "AesEncryptIV", + "integer": 4512 + }, + { + "name": "Encode", + "integer": 4513 + }, + { + "name": "Decode", + "integer": 4514 + }, + { + "name": "SM3", + "integer": 4515 + }, + { + "name": "Database", + "integer": 4521 + }, + { + "name": "FoundRows", + "integer": 4522 + }, + { + "name": "CurrentUser", + "integer": 4523 + }, + { + "name": "User", + "integer": 4524 + }, + { + "name": "ConnectionID", + "integer": 4525 + }, + { + "name": "LastInsertID", + "integer": 4526 + }, + { + "name": "LastInsertIDWithID", + "integer": 4527 + }, + { + "name": "Version", + "integer": 4528 + }, + { + "name": "TiDBVersion", + "integer": 4529 + }, + { + "name": "RowCount", + "integer": 4530 + }, + { + "name": "Sleep", + "integer": 4551 + }, + { + "name": "Lock", + "integer": 4552 + }, + { + "name": "ReleaseLock", + "integer": 4553 + }, + { + "name": "DecimalAnyValue", + "integer": 4554 + }, + { + "name": "DurationAnyValue", + "integer": 4555 + }, + { + "name": "IntAnyValue", + "integer": 4556 + }, + { + "name": "JSONAnyValue", + "integer": 4557 + }, + { + "name": "RealAnyValue", + "integer": 4558 + }, + { + "name": "StringAnyValue", + "integer": 4559 + }, + { + "name": "TimeAnyValue", + "integer": 4560 + }, + { + "name": "InetAton", + "integer": 4561 + }, + { + "name": "InetNtoa", + "integer": 4562 + }, + { + "name": "Inet6Aton", + "integer": 4563 + }, + { + "name": "Inet6Ntoa", + "integer": 4564 + }, + { + "name": "IsIPv4", + "integer": 4565 + }, + { + "name": "IsIPv4Compat", + "integer": 4566 + }, + { + "name": "IsIPv4Mapped", + "integer": 4567 + }, + { + "name": "IsIPv6", + "integer": 4568 + }, + { + "name": "UUID", + "integer": 4569 + }, + { + "name": "VitessHash", + "integer": 4570 + }, + { + "name": "IsUUID", + "integer": 4571 + }, + { + "name": "TiDBShard", + "integer": 4572 + }, + { + "name": "GroupingSig", + "integer": 4573 + }, + { + "name": "IlikeSig", + "integer": 4309 + }, + { + "name": "LikeSig", + "integer": 4310 + }, + { + "name": "RegexpSig", + "integer": 4311 + }, + { + "name": "RegexpUTF8Sig", + "integer": 4312 + }, + { + "name": "RegexpLikeSig", + "integer": 4313 + }, + { + "name": "RegexpLikeUTF8Sig", + "integer": 4314 + }, + { + "name": "RegexpInStrSig", + "integer": 4315 + }, + { + "name": "RegexpInStrUTF8Sig", + "integer": 4316 + }, + { + "name": "RegexpReplaceSig", + "integer": 4317 + }, + { + "name": "RegexpReplaceUTF8Sig", + "integer": 4318 + }, + { + "name": "RegexpSubstrSig", + "integer": 4319 + }, + { + "name": "RegexpSubstrUTF8Sig", + "integer": 4320 + }, + { + "name": "JsonExtractSig", + "integer": 5001 + }, + { + "name": "JsonUnquoteSig", + "integer": 5002 + }, + { + "name": "JsonTypeSig", + "integer": 5003 + }, + { + "name": "JsonSetSig", + "integer": 5004 + }, + { + "name": "JsonInsertSig", + "integer": 5005 + }, + { + "name": "JsonReplaceSig", + "integer": 5006 + }, + { + "name": "JsonRemoveSig", + "integer": 5007 + }, + { + "name": "JsonMergeSig", + "integer": 5008 + }, + { + "name": "JsonObjectSig", + "integer": 5009 + }, + { + "name": "JsonArraySig", + "integer": 5010 + }, + { + "name": "JsonValidJsonSig", + "integer": 5011 + }, + { + "name": "JsonContainsSig", + "integer": 5012 + }, + { + "name": "JsonArrayAppendSig", + "integer": 5013 + }, + { + "name": "JsonArrayInsertSig", + "integer": 5014 + }, + { + "name": "JsonMergePatchSig", + "integer": 5015 + }, + { + "name": "JsonMergePreserveSig", + "integer": 5016 + }, + { + "name": "JsonContainsPathSig", + "integer": 5017 + }, + { + "name": "JsonPrettySig", + "integer": 5018 + }, + { + "name": "JsonQuoteSig", + "integer": 5019 + }, + { + "name": "JsonSearchSig", + "integer": 5020 + }, + { + "name": "JsonStorageSizeSig", + "integer": 5021 + }, + { + "name": "JsonDepthSig", + "integer": 5022 + }, + { + "name": "JsonKeysSig", + "integer": 5023 + }, + { + "name": "JsonLengthSig", + "integer": 5024 + }, + { + "name": "JsonKeys2ArgsSig", + "integer": 5025 + }, + { + "name": "JsonValidStringSig", + "integer": 5026 + }, + { + "name": "JsonValidOthersSig", + "integer": 5027 + }, + { + "name": "JsonStorageFreeSig", + "integer": 5028 + }, + { + "name": "JsonMemberOfSig", + "integer": 5029 + }, + { + "name": "VecAsTextSig", + "integer": 5110 + }, + { + "name": "VecFromTextSig", + "integer": 5111 + }, + { + "name": "VecDimsSig", + "integer": 5112 + }, + { + "name": "VecL1DistanceSig", + "integer": 5113 + }, + { + "name": "VecL2DistanceSig", + "integer": 5114 + }, + { + "name": "VecNegativeInnerProductSig", + "integer": 5115 + }, + { + "name": "VecCosineDistanceSig", + "integer": 5116 + }, + { + "name": "VecL2NormSig", + "integer": 5117 + }, + { + "name": "CastStringAsVectorFloat32", + "integer": 5180 + }, + { + "name": "CastVectorFloat32AsInt", + "integer": 5181 + }, + { + "name": "CastVectorFloat32AsReal", + "integer": 5182 + }, + { + "name": "CastVectorFloat32AsString", + "integer": 5183 + }, + { + "name": "CastVectorFloat32AsDecimal", + "integer": 5184 + }, + { + "name": "CastVectorFloat32AsTime", + "integer": 5185 + }, + { + "name": "CastVectorFloat32AsDuration", + "integer": 5186 + }, + { + "name": "CastVectorFloat32AsJson", + "integer": 5187 + }, + { + "name": "CastVectorFloat32AsVectorFloat32", + "integer": 5188 + }, + { + "name": "PlusVectorFloat32", + "integer": 5141 + }, + { + "name": "MinusVectorFloat32", + "integer": 5142 + }, + { + "name": "MultiplyVectorFloat32", + "integer": 5143 + }, + { + "name": "VectorFloat32AnyValue", + "integer": 5144 + }, + { + "name": "CoalesceVectorFloat32", + "integer": 5145 + }, + { + "name": "LTVectorFloat32", + "integer": 5146 + }, + { + "name": "LEVectorFloat32", + "integer": 5147 + }, + { + "name": "GTVectorFloat32", + "integer": 5148 + }, + { + "name": "GreatestVectorFloat32", + "integer": 5149 + }, + { + "name": "LeastVectorFloat32", + "integer": 5150 + }, + { + "name": "GEVectorFloat32", + "integer": 5151 + }, + { + "name": "EQVectorFloat32", + "integer": 5152 + }, + { + "name": "NEVectorFloat32", + "integer": 5153 + }, + { + "name": "NullEQVectorFloat32", + "integer": 5154 + }, + { + "name": "VectorFloat32IsNull", + "integer": 5155 + }, + { + "name": "VectorFloat32IsTrue", + "integer": 5156 + }, + { + "name": "VectorFloat32IsFalse", + "integer": 5157 + }, + { + "name": "VectorFloat32IsTrueWithNull", + "integer": 5158 + }, + { + "name": "VectorFloat32IsFalseWithNull", + "integer": 5159 + }, + { + "name": "IfNullVectorFloat32", + "integer": 5160 + }, + { + "name": "IfVectorFloat32", + "integer": 5161 + }, + { + "name": "CaseWhenVectorFloat32", + "integer": 5162 + }, + { + "name": "DateFormatSig", + "integer": 6001 + }, + { + "name": "DateLiteral", + "integer": 6002 + }, + { + "name": "DateDiff", + "integer": 6003 + }, + { + "name": "NullTimeDiff", + "integer": 6004 + }, + { + "name": "TimeStringTimeDiff", + "integer": 6005 + }, + { + "name": "DurationStringTimeDiff", + "integer": 6006 + }, + { + "name": "DurationDurationTimeDiff", + "integer": 6007 + }, + { + "name": "StringTimeTimeDiff", + "integer": 6008 + }, + { + "name": "StringDurationTimeDiff", + "integer": 6009 + }, + { + "name": "StringStringTimeDiff", + "integer": 6010 + }, + { + "name": "TimeTimeTimeDiff", + "integer": 6011 + }, + { + "name": "Date", + "integer": 6012 + }, + { + "name": "Hour", + "integer": 6013 + }, + { + "name": "Minute", + "integer": 6014 + }, + { + "name": "Second", + "integer": 6015 + }, + { + "name": "MicroSecond", + "integer": 6016 + }, + { + "name": "Month", + "integer": 6017 + }, + { + "name": "MonthName", + "integer": 6018 + }, + { + "name": "NowWithArg", + "integer": 6019 + }, + { + "name": "NowWithoutArg", + "integer": 6020 + }, + { + "name": "DayName", + "integer": 6021 + }, + { + "name": "DayOfMonth", + "integer": 6022 + }, + { + "name": "DayOfWeek", + "integer": 6023 + }, + { + "name": "DayOfYear", + "integer": 6024 + }, + { + "name": "WeekWithMode", + "integer": 6025 + }, + { + "name": "WeekWithoutMode", + "integer": 6026 + }, + { + "name": "WeekDay", + "integer": 6027 + }, + { + "name": "WeekOfYear", + "integer": 6028 + }, + { + "name": "Year", + "integer": 6029 + }, + { + "name": "YearWeekWithMode", + "integer": 6030 + }, + { + "name": "YearWeekWithoutMode", + "integer": 6031 + }, + { + "name": "GetFormat", + "integer": 6032 + }, + { + "name": "SysDateWithFsp", + "integer": 6033 + }, + { + "name": "SysDateWithoutFsp", + "integer": 6034 + }, + { + "name": "CurrentDate", + "integer": 6035 + }, + { + "name": "CurrentTime0Arg", + "integer": 6036 + }, + { + "name": "CurrentTime1Arg", + "integer": 6037 + }, + { + "name": "Time", + "integer": 6038 + }, + { + "name": "TimeLiteral", + "integer": 6039 + }, + { + "name": "UTCDate", + "integer": 6040 + }, + { + "name": "UTCTimestampWithArg", + "integer": 6041 + }, + { + "name": "UTCTimestampWithoutArg", + "integer": 6042 + }, + { + "name": "AddDatetimeAndDuration", + "integer": 6043 + }, + { + "name": "AddDatetimeAndString", + "integer": 6044 + }, + { + "name": "AddTimeDateTimeNull", + "integer": 6045 + }, + { + "name": "AddStringAndDuration", + "integer": 6046 + }, + { + "name": "AddStringAndString", + "integer": 6047 + }, + { + "name": "AddTimeStringNull", + "integer": 6048 + }, + { + "name": "AddDurationAndDuration", + "integer": 6049 + }, + { + "name": "AddDurationAndString", + "integer": 6050 + }, + { + "name": "AddTimeDurationNull", + "integer": 6051 + }, + { + "name": "AddDateAndDuration", + "integer": 6052 + }, + { + "name": "AddDateAndString", + "integer": 6053 + }, + { + "name": "SubDatetimeAndDuration", + "integer": 6054 + }, + { + "name": "SubDatetimeAndString", + "integer": 6055 + }, + { + "name": "SubTimeDateTimeNull", + "integer": 6056 + }, + { + "name": "SubStringAndDuration", + "integer": 6057 + }, + { + "name": "SubStringAndString", + "integer": 6058 + }, + { + "name": "SubTimeStringNull", + "integer": 6059 + }, + { + "name": "SubDurationAndDuration", + "integer": 6060 + }, + { + "name": "SubDurationAndString", + "integer": 6061 + }, + { + "name": "SubTimeDurationNull", + "integer": 6062 + }, + { + "name": "SubDateAndDuration", + "integer": 6063 + }, + { + "name": "SubDateAndString", + "integer": 6064 + }, + { + "name": "UnixTimestampCurrent", + "integer": 6065 + }, + { + "name": "UnixTimestampInt", + "integer": 6066 + }, + { + "name": "UnixTimestampDec", + "integer": 6067 + }, + { + "name": "ConvertTz", + "integer": 6068 + }, + { + "name": "MakeDate", + "integer": 6069 + }, + { + "name": "MakeTime", + "integer": 6070 + }, + { + "name": "PeriodAdd", + "integer": 6071 + }, + { + "name": "PeriodDiff", + "integer": 6072 + }, + { + "name": "Quarter", + "integer": 6073 + }, + { + "name": "SecToTime", + "integer": 6074 + }, + { + "name": "TimeToSec", + "integer": 6075 + }, + { + "name": "TimestampAdd", + "integer": 6076 + }, + { + "name": "ToDays", + "integer": 6077 + }, + { + "name": "ToSeconds", + "integer": 6078 + }, + { + "name": "UTCTimeWithArg", + "integer": 6079 + }, + { + "name": "UTCTimeWithoutArg", + "integer": 6080 + }, + { + "name": "Timestamp1Arg", + "integer": 6081 + }, + { + "name": "Timestamp2Args", + "integer": 6082 + }, + { + "name": "TimestampLiteral", + "integer": 6083 + }, + { + "name": "LastDay", + "integer": 6084 + }, + { + "name": "StrToDateDate", + "integer": 6085 + }, + { + "name": "StrToDateDatetime", + "integer": 6086 + }, + { + "name": "StrToDateDuration", + "integer": 6087 + }, + { + "name": "FromUnixTime1Arg", + "integer": 6088 + }, + { + "name": "FromUnixTime2Arg", + "integer": 6089 + }, + { + "name": "ExtractDatetime", + "integer": 6090 + }, + { + "name": "ExtractDuration", + "integer": 6091 + }, + { + "name": "AddDateStringString", + "integer": 6092 + }, + { + "name": "AddDateStringInt", + "integer": 6093 + }, + { + "name": "AddDateStringDecimal", + "integer": 6094 + }, + { + "name": "AddDateIntString", + "integer": 6095 + }, + { + "name": "AddDateIntInt", + "integer": 6096 + }, + { + "name": "AddDateDatetimeString", + "integer": 6097 + }, + { + "name": "AddDateDatetimeInt", + "integer": 6098 + }, + { + "name": "SubDateStringString", + "integer": 6099 + }, + { + "name": "SubDateStringInt", + "integer": 6100 + }, + { + "name": "SubDateStringDecimal", + "integer": 6101 + }, + { + "name": "SubDateIntString", + "integer": 6102 + }, + { + "name": "SubDateIntInt", + "integer": 6103 + }, + { + "name": "SubDateDatetimeString", + "integer": 6104 + }, + { + "name": "SubDateDatetimeInt", + "integer": 6105 + }, + { + "name": "FromDays", + "integer": 6106 + }, + { + "name": "TimeFormat", + "integer": 6107 + }, + { + "name": "TimestampDiff", + "integer": 6108 + }, + { + "name": "SubDateStringReal", + "integer": 6109 + }, + { + "name": "SubDateIntReal", + "integer": 6110 + }, + { + "name": "SubDateIntDecimal", + "integer": 6111 + }, + { + "name": "SubDateDatetimeReal", + "integer": 6112 + }, + { + "name": "SubDateDatetimeDecimal", + "integer": 6113 + }, + { + "name": "SubDateDurationString", + "integer": 6114 + }, + { + "name": "SubDateDurationInt", + "integer": 6115 + }, + { + "name": "SubDateDurationReal", + "integer": 6116 + }, + { + "name": "SubDateDurationDecimal", + "integer": 6117 + }, + { + "name": "AddDateStringReal", + "integer": 6118 + }, + { + "name": "AddDateIntReal", + "integer": 6119 + }, + { + "name": "AddDateIntDecimal", + "integer": 6120 + }, + { + "name": "AddDateDatetimeReal", + "integer": 6121 + }, + { + "name": "AddDateDatetimeDecimal", + "integer": 6122 + }, + { + "name": "AddDateDurationString", + "integer": 6123 + }, + { + "name": "AddDateDurationInt", + "integer": 6124 + }, + { + "name": "AddDateDurationReal", + "integer": 6125 + }, + { + "name": "AddDateDurationDecimal", + "integer": 6126 + }, + { + "name": "ExtractDatetimeFromString", + "integer": 6127 + }, + { + "name": "AddDateRealString", + "integer": 6128 + }, + { + "name": "AddDateRealInt", + "integer": 6129 + }, + { + "name": "AddDateRealReal", + "integer": 6130 + }, + { + "name": "AddDateRealDecimal", + "integer": 6131 + }, + { + "name": "AddDateDecimalString", + "integer": 6132 + }, + { + "name": "AddDateDecimalInt", + "integer": 6133 + }, + { + "name": "AddDateDecimalReal", + "integer": 6134 + }, + { + "name": "AddDateDecimalDecimal", + "integer": 6135 + }, + { + "name": "SubDateRealString", + "integer": 6136 + }, + { + "name": "SubDateRealInt", + "integer": 6137 + }, + { + "name": "SubDateRealReal", + "integer": 6138 + }, + { + "name": "SubDateRealDecimal", + "integer": 6139 + }, + { + "name": "SubDateDecimalString", + "integer": 6140 + }, + { + "name": "SubDateDecimalInt", + "integer": 6141 + }, + { + "name": "SubDateDecimalReal", + "integer": 6142 + }, + { + "name": "SubDateDecimalDecimal", + "integer": 6143 + }, + { + "name": "AddDateDurationStringDatetime", + "integer": 6144 + }, + { + "name": "AddDateDurationIntDatetime", + "integer": 6145 + }, + { + "name": "AddDateDurationRealDatetime", + "integer": 6146 + }, + { + "name": "AddDateDurationDecimalDatetime", + "integer": 6147 + }, + { + "name": "SubDateDurationStringDatetime", + "integer": 6148 + }, + { + "name": "SubDateDurationIntDatetime", + "integer": 6149 + }, + { + "name": "SubDateDurationRealDatetime", + "integer": 6150 + }, + { + "name": "SubDateDurationDecimalDatetime", + "integer": 6151 + }, + { + "name": "BitLength", + "integer": 7001 + }, + { + "name": "Bin", + "integer": 7002 + }, + { + "name": "ASCII", + "integer": 7003 + }, + { + "name": "Char", + "integer": 7004 + }, + { + "name": "CharLengthUTF8", + "integer": 7005 + }, + { + "name": "Concat", + "integer": 7006 + }, + { + "name": "ConcatWS", + "integer": 7007 + }, + { + "name": "Convert", + "integer": 7008 + }, + { + "name": "Elt", + "integer": 7009 + }, + { + "name": "ExportSet3Arg", + "integer": 7010 + }, + { + "name": "ExportSet4Arg", + "integer": 7011 + }, + { + "name": "ExportSet5Arg", + "integer": 7012 + }, + { + "name": "FieldInt", + "integer": 7013 + }, + { + "name": "FieldReal", + "integer": 7014 + }, + { + "name": "FieldString", + "integer": 7015 + }, + { + "name": "FindInSet", + "integer": 7016 + }, + { + "name": "Format", + "integer": 7017 + }, + { + "name": "FormatWithLocale", + "integer": 7018 + }, + { + "name": "FromBase64", + "integer": 7019 + }, + { + "name": "HexIntArg", + "integer": 7020 + }, + { + "name": "HexStrArg", + "integer": 7021 + }, + { + "name": "InsertUTF8", + "integer": 7022 + }, + { + "name": "Insert", + "integer": 7023 + }, + { + "name": "InstrUTF8", + "integer": 7024 + }, + { + "name": "Instr", + "integer": 7025 + }, + { + "name": "LTrim", + "integer": 7026 + }, + { + "name": "LeftUTF8", + "integer": 7027 + }, + { + "name": "Left", + "integer": 7028 + }, + { + "name": "Length", + "integer": 7029 + }, + { + "name": "Locate2ArgsUTF8", + "integer": 7030 + }, + { + "name": "Locate3ArgsUTF8", + "integer": 7031 + }, + { + "name": "Locate2Args", + "integer": 7032 + }, + { + "name": "Locate3Args", + "integer": 7033 + }, + { + "name": "Lower", + "integer": 7034 + }, + { + "name": "LpadUTF8", + "integer": 7035 + }, + { + "name": "Lpad", + "integer": 7036 + }, + { + "name": "MakeSet", + "integer": 7037 + }, + { + "name": "OctInt", + "integer": 7038 + }, + { + "name": "OctString", + "integer": 7039 + }, + { + "name": "Ord", + "integer": 7040 + }, + { + "name": "Quote", + "integer": 7041 + }, + { + "name": "RTrim", + "integer": 7042 + }, + { + "name": "Repeat", + "integer": 7043 + }, + { + "name": "Replace", + "integer": 7044 + }, + { + "name": "ReverseUTF8", + "integer": 7045 + }, + { + "name": "Reverse", + "integer": 7046 + }, + { + "name": "RightUTF8", + "integer": 7047 + }, + { + "name": "Right", + "integer": 7048 + }, + { + "name": "RpadUTF8", + "integer": 7049 + }, + { + "name": "Rpad", + "integer": 7050 + }, + { + "name": "Space", + "integer": 7051 + }, + { + "name": "Strcmp", + "integer": 7052 + }, + { + "name": "Substring2ArgsUTF8", + "integer": 7053 + }, + { + "name": "Substring3ArgsUTF8", + "integer": 7054 + }, + { + "name": "Substring2Args", + "integer": 7055 + }, + { + "name": "Substring3Args", + "integer": 7056 + }, + { + "name": "SubstringIndex", + "integer": 7057 + }, + { + "name": "ToBase64", + "integer": 7058 + }, + { + "name": "Trim1Arg", + "integer": 7059 + }, + { + "name": "Trim2Args", + "integer": 7060 + }, + { + "name": "Trim3Args", + "integer": 7061 + }, + { + "name": "UnHex", + "integer": 7062 + }, + { + "name": "UpperUTF8", + "integer": 7063 + }, + { + "name": "Upper", + "integer": 7064 + }, + { + "name": "CharLength", + "integer": 7065 + }, + { + "name": "LowerUTF8", + "integer": 7066 + }, + { + "name": "GreatestDuration", + "integer": 7067 + }, + { + "name": "GreatestCmpStringAsTime", + "integer": 7068 + }, + { + "name": "LeastDuration", + "integer": 7069 + }, + { + "name": "LeastCmpStringAsTime", + "integer": 7070 + }, + { + "name": "ToBinary", + "integer": 7071 + }, + { + "name": "FromBinary", + "integer": 7072 + }, + { + "name": "GreatestCmpStringAsDate", + "integer": 7073 + }, + { + "name": "LeastCmpStringAsDate", + "integer": 7074 + }, + { + "name": "GreatestDate", + "integer": 7075 + }, + { + "name": "LeastDate", + "integer": 7076 + } + ] + }, + { + "name": "AggFunctionMode", + "enum_fields": [ + { + "name": "CompleteMode" + }, + { + "name": "FinalMode", + "integer": 1 + }, + { + "name": "Partial1Mode", + "integer": 2 + }, + { + "name": "Partial2Mode", + "integer": 3 + }, + { + "name": "DedupMode", + "integer": 4 + } + ] + } + ], + "messages": [ + { + "name": "FieldType", + "fields": [ + { + "id": 1, + "name": "tp", + "type": "int32", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "flag", + "type": "uint32", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 3, + "name": "flen", + "type": "int32", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 4, + "name": "decimal", + "type": "int32", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 5, + "name": "collate", + "type": "int32", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 6, + "name": "charset", + "type": "string", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 7, + "name": "elems", + "type": "string", + "is_repeated": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 8, + "name": "array", + "type": "bool", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + } + ] + }, + { + "name": "Expr", + "fields": [ + { + "id": 1, + "name": "tp", + "type": "ExprType", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "val", + "type": "bytes", + "optional": true + }, + { + "id": 3, + "name": "children", + "type": "Expr", + "is_repeated": true + }, + { + "id": 6, + "name": "rpn_args_len", + "type": "uint32", + "optional": true + }, + { + "id": 4, + "name": "sig", + "type": "ScalarFuncSig", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 5, + "name": "field_type", + "type": "FieldType", + "optional": true + }, + { + "id": 7, + "name": "has_distinct", + "type": "bool", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 8, + "name": "order_by", + "type": "ByItem", + "is_repeated": true + }, + { + "id": 9, + "name": "aggFuncMode", + "type": "AggFunctionMode", + "optional": true + } + ] + }, + { + "name": "RpnExpr", + "fields": [ + { + "id": 1, + "name": "exprs", + "type": "Expr", + "is_repeated": true + } + ] + }, + { + "name": "ByItem", + "fields": [ + { + "id": 1, + "name": "expr", + "type": "Expr", + "optional": true + }, + { + "id": 3, + "name": "rpn_expr", + "type": "RpnExpr", + "optional": true + }, + { + "id": 2, + "name": "desc", + "type": "bool", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + } + ] + } + ], + "imports": [ + { + "path": "gogoproto/gogo.proto" + }, + { + "path": "rustproto.proto" + } + ], + "package": { + "name": "tipb" + }, + "options": [ + { + "name": "java_multiple_files", + "value": "true" + }, + { + "name": "java_package", + "value": "com.pingcap.tidb.tipb" + }, + { + "name": "(gogoproto.marshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.sizer_all)", + "value": "true" + }, + { + "name": "(gogoproto.unmarshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.goproto_unkeyed_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_unrecognized_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_sizecache_all)", + "value": "false" + }, + { + "name": "(rustproto.lite_runtime_all)", + "value": "true" + } + ] + } + }, + { + "protopath": "metadata.proto", + "def": { + "enums": [ + { + "name": "GroupingMode", + "enum_fields": [ + { + "name": "ModeBitAnd", + "integer": 1 + }, + { + "name": "ModeNumericCmp", + "integer": 2 + }, + { + "name": "ModeNumericSet", + "integer": 3 + } + ] + } + ], + "messages": [ + { + "name": "InUnionMetadata", + "fields": [ + { + "id": 1, + "name": "in_union", + "type": "bool", + "required": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + } + ] + }, + { + "name": "CompareInMetadata", + "fields": [ + { + "id": 1, + "name": "has_null", + "type": "bool", + "required": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "consts", + "type": "bytes", + "optional": true + } + ] + }, + { + "name": "GroupingMark", + "fields": [ + { + "id": 1, + "name": "grouping_nums", + "type": "uint64", + "is_repeated": true + } + ] + }, + { + "name": "GroupingFunctionMetadata", + "fields": [ + { + "id": 1, + "name": "mode", + "type": "GroupingMode", + "required": true + }, + { + "id": 2, + "name": "grouping_marks", + "type": "GroupingMark", + "is_repeated": true + } + ] + } + ], + "imports": [ + { + "path": "gogoproto/gogo.proto" + }, + { + "path": "rustproto.proto" + } + ], + "package": { + "name": "tipb" + }, + "options": [ + { + "name": "java_multiple_files", + "value": "true" + }, + { + "name": "java_package", + "value": "com.pingcap.tidb.tipb" + }, + { + "name": "(gogoproto.marshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.sizer_all)", + "value": "true" + }, + { + "name": "(gogoproto.unmarshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.goproto_unkeyed_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_unrecognized_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_sizecache_all)", + "value": "false" + }, + { + "name": "(rustproto.lite_runtime_all)", + "value": "true" + } + ] + } + }, + { + "protopath": "resourcetag.proto", + "def": { + "enums": [ + { + "name": "ResourceGroupTagLabel", + "enum_fields": [ + { + "name": "ResourceGroupTagLabelUnknown" + }, + { + "name": "ResourceGroupTagLabelRow", + "integer": 1 + }, + { + "name": "ResourceGroupTagLabelIndex", + "integer": 2 + } + ] + } + ], + "messages": [ + { + "name": "ResourceGroupTag", + "fields": [ + { + "id": 1, + "name": "sql_digest", + "type": "bytes", + "optional": true + }, + { + "id": 2, + "name": "plan_digest", + "type": "bytes", + "optional": true + }, + { + "id": 3, + "name": "label", + "type": "ResourceGroupTagLabel", + "optional": true + }, + { + "id": 4, + "name": "table_id", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + } + ] + } + ], + "imports": [ + { + "path": "gogoproto/gogo.proto" + }, + { + "path": "rustproto.proto" + } + ], + "package": { + "name": "tipb" + }, + "options": [ + { + "name": "java_multiple_files", + "value": "true" + }, + { + "name": "java_package", + "value": "com.pingcap.tidb.tipb" + }, + { + "name": "(gogoproto.marshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.sizer_all)", + "value": "true" + }, + { + "name": "(gogoproto.unmarshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.goproto_unkeyed_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_unrecognized_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_sizecache_all)", + "value": "false" + }, + { + "name": "(rustproto.lite_runtime_all)", + "value": "true" + } + ] + } + }, + { + "protopath": "schema.proto", + "def": { + "messages": [ + { + "name": "TableInfo", + "fields": [ + { + "id": 1, + "name": "table_id", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "columns", + "type": "ColumnInfo", + "is_repeated": true + } + ] + }, + { + "name": "ColumnInfo", + "fields": [ + { + "id": 1, + "name": "column_id", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "tp", + "type": "int32", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 3, + "name": "collation", + "type": "int32", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 4, + "name": "columnLen", + "type": "int32", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 5, + "name": "decimal", + "type": "int32", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 6, + "name": "flag", + "type": "int32", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 7, + "name": "elems", + "type": "string", + "is_repeated": true + }, + { + "id": 8, + "name": "default_val", + "type": "bytes", + "optional": true + }, + { + "id": 21, + "name": "pk_handle", + "type": "bool", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 22, + "name": "array", + "type": "bool", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + } + ] + }, + { + "name": "IndexInfo", + "fields": [ + { + "id": 1, + "name": "table_id", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "index_id", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 3, + "name": "columns", + "type": "ColumnInfo", + "is_repeated": true + }, + { + "id": 4, + "name": "unique", + "type": "bool", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + } + ] + }, + { + "name": "KeyRange", + "fields": [ + { + "id": 1, + "name": "low", + "type": "bytes", + "optional": true + }, + { + "id": 2, + "name": "high", + "type": "bytes", + "optional": true + } + ] + } + ], + "imports": [ + { + "path": "gogoproto/gogo.proto" + }, + { + "path": "rustproto.proto" + } + ], + "package": { + "name": "tipb" + }, + "options": [ + { + "name": "java_multiple_files", + "value": "true" + }, + { + "name": "java_package", + "value": "com.pingcap.tidb.tipb" + }, + { + "name": "(gogoproto.marshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.sizer_all)", + "value": "true" + }, + { + "name": "(gogoproto.unmarshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.goproto_unkeyed_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_unrecognized_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_sizecache_all)", + "value": "false" + }, + { + "name": "(rustproto.lite_runtime_all)", + "value": "true" + } + ] + } + }, + { + "protopath": "select.proto", + "def": { + "enums": [ + { + "name": "EncodeType", + "enum_fields": [ + { + "name": "TypeDefault" + }, + { + "name": "TypeChunk", + "integer": 1 + }, + { + "name": "TypeCHBlock", + "integer": 2 + } + ] + }, + { + "name": "Endian", + "enum_fields": [ + { + "name": "LittleEndian" + }, + { + "name": "BigEndian", + "integer": 1 + } + ] + } + ], + "messages": [ + { + "name": "Row", + "fields": [ + { + "id": 1, + "name": "handle", + "type": "bytes", + "optional": true + }, + { + "id": 2, + "name": "data", + "type": "bytes", + "optional": true + } + ] + }, + { + "name": "Error", + "fields": [ + { + "id": 1, + "name": "code", + "type": "int32", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "msg", + "type": "string", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + } + ] + }, + { + "name": "SelectResponse", + "fields": [ + { + "id": 1, + "name": "error", + "type": "Error", + "optional": true + }, + { + "id": 2, + "name": "rows", + "type": "Row", + "is_repeated": true + }, + { + "id": 3, + "name": "chunks", + "type": "Chunk", + "is_repeated": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 4, + "name": "warnings", + "type": "Error", + "is_repeated": true + }, + { + "id": 5, + "name": "output_counts", + "type": "int64", + "is_repeated": true + }, + { + "id": 6, + "name": "warning_count", + "type": "int64", + "optional": true + }, + { + "id": 8, + "name": "execution_summaries", + "type": "ExecutorExecutionSummary", + "is_repeated": true + }, + { + "id": 9, + "name": "encode_type", + "type": "EncodeType", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 10, + "name": "ndvs", + "type": "int64", + "is_repeated": true + } + ] + }, + { + "name": "Chunk", + "fields": [ + { + "id": 3, + "name": "rows_data", + "type": "bytes", + "optional": true, + "options": [ + { + "name": "(gogoproto.customtype)", + "value": "github.com/pingcap/tipb/sharedbytes.SharedBytes" + }, + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 4, + "name": "rows_meta", + "type": "RowMeta", + "is_repeated": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + } + ] + }, + { + "name": "RowMeta", + "fields": [ + { + "id": 1, + "name": "handle", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "length", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + } + ] + }, + { + "name": "DAGRequest", + "fields": [ + { + "id": 1, + "name": "start_ts_fallback", + "type": "uint64", + "optional": true + }, + { + "id": 2, + "name": "executors", + "type": "Executor", + "is_repeated": true + }, + { + "id": 3, + "name": "time_zone_offset", + "type": "int64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 4, + "name": "flags", + "type": "uint64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 5, + "name": "output_offsets", + "type": "uint32", + "is_repeated": true + }, + { + "id": 6, + "name": "collect_range_counts", + "type": "bool", + "optional": true + }, + { + "id": 7, + "name": "max_warning_count", + "type": "uint64", + "optional": true + }, + { + "id": 8, + "name": "encode_type", + "type": "EncodeType", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 9, + "name": "sql_mode", + "type": "uint64", + "optional": true + }, + { + "id": 11, + "name": "time_zone_name", + "type": "string", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 12, + "name": "collect_execution_summaries", + "type": "bool", + "optional": true + }, + { + "id": 13, + "name": "max_allowed_packet", + "type": "uint64", + "optional": true + }, + { + "id": 14, + "name": "chunk_memory_layout", + "type": "ChunkMemoryLayout", + "optional": true + }, + { + "id": 15, + "name": "is_rpn_expr", + "type": "bool", + "optional": true + }, + { + "id": 16, + "name": "user", + "type": "UserIdentity", + "optional": true + }, + { + "id": 17, + "name": "root_executor", + "type": "Executor", + "optional": true + }, + { + "id": 18, + "name": "force_encode_type", + "type": "bool", + "optional": true + }, + { + "id": 19, + "name": "div_precision_increment", + "type": "uint32", + "optional": true + } + ] + }, + { + "name": "ChunkMemoryLayout", + "fields": [ + { + "id": 1, + "name": "endian", + "type": "Endian", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + } + ] + }, + { + "name": "UserIdentity", + "fields": [ + { + "id": 1, + "name": "user_name", + "type": "string", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 2, + "name": "user_host", + "type": "string", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + } + ] + }, + { + "name": "StreamResponse", + "fields": [ + { + "id": 1, + "name": "error", + "type": "Error", + "optional": true + }, + { + "id": 3, + "name": "data", + "type": "bytes", + "optional": true, + "options": [ + { + "name": "(gogoproto.customtype)", + "value": "github.com/pingcap/tipb/sharedbytes.SharedBytes" + }, + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + }, + { + "id": 4, + "name": "warnings", + "type": "Error", + "is_repeated": true + }, + { + "id": 5, + "name": "output_counts", + "type": "int64", + "is_repeated": true + }, + { + "id": 6, + "name": "warning_count", + "type": "int64", + "optional": true + }, + { + "id": 7, + "name": "ndvs", + "type": "int64", + "is_repeated": true + } + ] + } + ], + "imports": [ + { + "path": "executor.proto" + }, + { + "path": "gogoproto/gogo.proto" + }, + { + "path": "rustproto.proto" + } + ], + "package": { + "name": "tipb" + }, + "options": [ + { + "name": "java_multiple_files", + "value": "true" + }, + { + "name": "java_package", + "value": "com.pingcap.tidb.tipb" + }, + { + "name": "(gogoproto.marshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.sizer_all)", + "value": "true" + }, + { + "name": "(gogoproto.unmarshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.goproto_unkeyed_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_unrecognized_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_sizecache_all)", + "value": "false" + }, + { + "name": "(rustproto.lite_runtime_all)", + "value": "true" + } + ] + } + }, + { + "protopath": "topsql_agent.proto", + "def": { + "messages": [ + { + "name": "TopSQLRecord", + "fields": [ + { + "id": 1, + "name": "sql_digest", + "type": "bytes" + }, + { + "id": 2, + "name": "plan_digest", + "type": "bytes" + }, + { + "id": 3, + "name": "items", + "type": "TopSQLRecordItem", + "is_repeated": true + } + ] + }, + { + "name": "TopSQLRecordItem", + "fields": [ + { + "id": 1, + "name": "timestamp_sec", + "type": "uint64" + }, + { + "id": 2, + "name": "cpu_time_ms", + "type": "uint32" + }, + { + "id": 3, + "name": "stmt_exec_count", + "type": "uint64" + }, + { + "id": 5, + "name": "stmt_duration_sum_ns", + "type": "uint64" + }, + { + "id": 6, + "name": "stmt_duration_count", + "type": "uint64" + } + ], + "maps": [ + { + "key_type": "string", + "field": { + "id": 4, + "name": "stmt_kv_exec_count", + "type": "uint64" + } + } + ] + }, + { + "name": "SQLMeta", + "fields": [ + { + "id": 1, + "name": "sql_digest", + "type": "bytes" + }, + { + "id": 2, + "name": "normalized_sql", + "type": "string" + }, + { + "id": 3, + "name": "is_internal_sql", + "type": "bool" + } + ] + }, + { + "name": "PlanMeta", + "fields": [ + { + "id": 1, + "name": "plan_digest", + "type": "bytes" + }, + { + "id": 2, + "name": "normalized_plan", + "type": "string" + }, + { + "id": 3, + "name": "encoded_normalized_plan", + "type": "string" + } + ] + }, + { + "name": "EmptyResponse" + }, + { + "name": "TopSQLSubRequest" + }, + { + "name": "TopSQLSubResponse", + "fields": [ + { + "id": 1, + "name": "record", + "type": "TopSQLRecord" + }, + { + "id": 2, + "name": "sql_meta", + "type": "SQLMeta" + }, + { + "id": 3, + "name": "plan_meta", + "type": "PlanMeta" + } + ] + } + ], + "services": [ + { + "name": "TopSQLAgent", + "rpcs": [ + { + "name": "ReportTopSQLRecords", + "in_type": "TopSQLRecord", + "out_type": "EmptyResponse", + "in_streamed": true + }, + { + "name": "ReportSQLMeta", + "in_type": "SQLMeta", + "out_type": "EmptyResponse", + "in_streamed": true + }, + { + "name": "ReportPlanMeta", + "in_type": "PlanMeta", + "out_type": "EmptyResponse", + "in_streamed": true + } + ] + }, + { + "name": "TopSQLPubSub", + "rpcs": [ + { + "name": "Subscribe", + "in_type": "TopSQLSubRequest", + "out_type": "TopSQLSubResponse", + "out_streamed": true + } + ] + } + ], + "imports": [ + { + "path": "gogoproto/gogo.proto" + }, + { + "path": "rustproto.proto" + } + ], + "package": { + "name": "tipb" + }, + "options": [ + { + "name": "java_multiple_files", + "value": "true" + }, + { + "name": "java_package", + "value": "com.pingcap.tidb.tipb" + }, + { + "name": "(gogoproto.marshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.sizer_all)", + "value": "true" + }, + { + "name": "(gogoproto.unmarshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.goproto_unkeyed_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_unrecognized_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_sizecache_all)", + "value": "false" + }, + { + "name": "(rustproto.lite_runtime_all)", + "value": "true" + } + ] + } + }, + { + "protopath": "trace.proto", + "def": { + "enums": [ + { + "name": "Event", + "enum_fields": [ + { + "name": "Unknown" + }, + { + "name": "TiKvCoprGetRequest", + "integer": 1000 + }, + { + "name": "TiKvCoprHandleRequest", + "integer": 1001 + }, + { + "name": "TiKvCoprScheduleTask", + "integer": 1002 + }, + { + "name": "TiKvCoprGetSnapshot", + "integer": 1003 + }, + { + "name": "TiKvCoprExecuteDagRunner", + "integer": 1004 + }, + { + "name": "TiKvCoprExecuteBatchDagRunner", + "integer": 1005 + } + ] + } + ], + "imports": [ + { + "path": "gogoproto/gogo.proto" + }, + { + "path": "rustproto.proto" + } + ], + "package": { + "name": "tipb" + }, + "options": [ + { + "name": "java_multiple_files", + "value": "true" + }, + { + "name": "java_package", + "value": "com.pingcap.tidb.tipb" + }, + { + "name": "(gogoproto.marshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.sizer_all)", + "value": "true" + }, + { + "name": "(gogoproto.unmarshaler_all)", + "value": "true" + }, + { + "name": "(gogoproto.goproto_unkeyed_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_unrecognized_all)", + "value": "false" + }, + { + "name": "(gogoproto.goproto_sizecache_all)", + "value": "false" + }, + { + "name": "(rustproto.lite_runtime_all)", + "value": "true" + } + ] + } + } + ] +} \ No newline at end of file