From b573fd4fafda627da610a48a13ea43816ba616f7 Mon Sep 17 00:00:00 2001 From: niedhui Date: Wed, 9 Jan 2019 22:47:40 +0800 Subject: [PATCH] add projection type for executor Signed-off-by: niedhui --- go-binlog/binlog.pb.go | 6 +- go-binlog/cistern.pb.go | 8 +- go-binlog/pump.pb.go | 8 +- go-tipb/analyze.pb.go | 6 +- go-tipb/checksum.pb.go | 6 +- go-tipb/executor.pb.go | 157 +++++++++----- go-tipb/expression.pb.go | 6 +- go-tipb/schema.pb.go | 6 +- go-tipb/select.pb.go | 7 +- proto/executor.proto | 4 +- src/analyze.rs | 2 +- src/checksum.rs | 4 +- src/executor.rs | 453 ++++++++++++++++++++++----------------- src/schema.rs | 2 +- src/select.rs | 12 +- 15 files changed, 419 insertions(+), 268 deletions(-) diff --git a/go-binlog/binlog.pb.go b/go-binlog/binlog.pb.go index c6f060328..b59c30e7a 100644 --- a/go-binlog/binlog.pb.go +++ b/go-binlog/binlog.pb.go @@ -16,10 +16,12 @@ package binlog import ( "fmt" - io "io" - math "math" proto "github.com/golang/protobuf/proto" + + math "math" + + io "io" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/go-binlog/cistern.pb.go b/go-binlog/cistern.pb.go index aff101e0e..352167050 100644 --- a/go-binlog/cistern.pb.go +++ b/go-binlog/cistern.pb.go @@ -19,12 +19,16 @@ package binlog import ( "fmt" - io "io" - math "math" proto "github.com/golang/protobuf/proto" + + math "math" + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" + + io "io" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/go-binlog/pump.pb.go b/go-binlog/pump.pb.go index dfbedabaf..48ebaf110 100644 --- a/go-binlog/pump.pb.go +++ b/go-binlog/pump.pb.go @@ -19,12 +19,16 @@ package binlog import ( "fmt" - io "io" - math "math" proto "github.com/golang/protobuf/proto" + + math "math" + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" + + io "io" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/go-tipb/analyze.pb.go b/go-tipb/analyze.pb.go index 1a5034c83..0fa639cfd 100644 --- a/go-tipb/analyze.pb.go +++ b/go-tipb/analyze.pb.go @@ -54,10 +54,12 @@ package tipb import ( "fmt" - io "io" - math "math" proto "github.com/golang/protobuf/proto" + + math "math" + + io "io" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/go-tipb/checksum.pb.go b/go-tipb/checksum.pb.go index 836afdb3e..e33c5a208 100644 --- a/go-tipb/checksum.pb.go +++ b/go-tipb/checksum.pb.go @@ -5,10 +5,12 @@ package tipb import ( "fmt" - io "io" - math "math" proto "github.com/golang/protobuf/proto" + + math "math" + + io "io" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/go-tipb/executor.pb.go b/go-tipb/executor.pb.go index 6c0fa6d35..dd2e80f92 100644 --- a/go-tipb/executor.pb.go +++ b/go-tipb/executor.pb.go @@ -5,10 +5,12 @@ package tipb import ( "fmt" - io "io" - math "math" proto "github.com/golang/protobuf/proto" + + math "math" + + io "io" ) // Reference imports to suppress errors if they are not otherwise used. @@ -26,6 +28,7 @@ const ( ExecType_TypeTopN ExecType = 4 ExecType_TypeLimit ExecType = 5 ExecType_TypeStreamAgg ExecType = 6 + ExecType_TypeProjection ExecType = 7 ) var ExecType_name = map[int32]string{ @@ -36,6 +39,7 @@ var ExecType_name = map[int32]string{ 4: "TypeTopN", 5: "TypeLimit", 6: "TypeStreamAgg", + 7: "TypeProjection", } var ExecType_value = map[string]int32{ "TypeTableScan": 0, @@ -45,6 +49,7 @@ var ExecType_value = map[string]int32{ "TypeTopN": 4, "TypeLimit": 5, "TypeStreamAgg": 6, + "TypeProjection": 7, } func (x ExecType) Enum() *ExecType { @@ -75,6 +80,7 @@ type Executor struct { TopN *TopN `protobuf:"bytes,6,opt,name=topN" json:"topN,omitempty"` Limit *Limit `protobuf:"bytes,7,opt,name=limit" json:"limit,omitempty"` StreamAgg *Aggregation `protobuf:"bytes,8,opt,name=stream_agg,json=streamAgg" json:"stream_agg,omitempty"` + Projection *Projection `protobuf:"bytes,9,opt,name=projection" json:"projection,omitempty"` XXX_unrecognized []byte `json:"-"` } @@ -139,6 +145,13 @@ func (m *Executor) GetStreamAgg() *Aggregation { return nil } +func (m *Executor) GetProjection() *Projection { + if m != nil { + return m.Projection + } + return nil +} + type TableScan 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"` @@ -473,6 +486,16 @@ func (m *Executor) MarshalTo(dAtA []byte) (int, error) { } i += n7 } + if m.Projection != nil { + dAtA[i] = 0x4a + i++ + i = encodeVarintExecutor(dAtA, i, uint64(m.Projection.Size())) + n8, err := m.Projection.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 + } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } @@ -836,6 +859,10 @@ func (m *Executor) Size() (n int) { l = m.StreamAgg.Size() n += 1 + l + sovExecutor(uint64(l)) } + if m.Projection != nil { + l = m.Projection.Size() + n += 1 + l + sovExecutor(uint64(l)) + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -1268,6 +1295,39 @@ func (m *Executor) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Projection", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowExecutor + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthExecutor + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Projection == nil { + m.Projection = &Projection{} + } + if err := m.Projection.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipExecutor(dAtA[iNdEx:]) @@ -2259,50 +2319,51 @@ var ( func init() { proto.RegisterFile("executor.proto", fileDescriptorExecutor) } var fileDescriptorExecutor = []byte{ - // 718 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xcf, 0x6e, 0xdb, 0x38, - 0x10, 0xc6, 0x23, 0x5b, 0x8e, 0xe5, 0x71, 0x62, 0x2b, 0xdc, 0x3f, 0x10, 0x72, 0x70, 0xbc, 0xda, - 0x0d, 0xd6, 0x6b, 0x60, 0xbd, 0x8b, 0xf4, 0xd0, 0x73, 0x5c, 0xb4, 0x80, 0xd1, 0xc2, 0x30, 0x94, - 0xdc, 0x05, 0x59, 0x62, 0x58, 0x16, 0x16, 0xa9, 0x52, 0x14, 0x62, 0x1f, 0x7a, 0xef, 0x23, 0xb4, - 0xcf, 0xd0, 0x17, 0xc9, 0xb1, 0x4f, 0x50, 0xb4, 0xe9, 0x8b, 0x14, 0x24, 0x25, 0xd9, 0x69, 0x53, - 0xb4, 0x27, 0x91, 0xdf, 0xfc, 0x66, 0x48, 0xcc, 0x37, 0x14, 0xf4, 0xf0, 0x1a, 0xc7, 0x85, 0xe4, - 0x62, 0x92, 0x09, 0x2e, 0x39, 0xb2, 0x25, 0xcd, 0x96, 0xc7, 0x2e, 0x5e, 0x67, 0x02, 0xe7, 0x39, - 0xe5, 0xcc, 0xe8, 0xc7, 0x07, 0x79, 0xfc, 0x1c, 0xa7, 0x51, 0xb9, 0xfb, 0x95, 0x70, 0xc2, 0xf5, - 0xf2, 0x3f, 0xb5, 0x32, 0xaa, 0xff, 0xa9, 0x01, 0xce, 0xe3, 0xb2, 0x1c, 0xfa, 0x0b, 0x1a, 0x32, - 0xf3, 0xac, 0xa1, 0x35, 0xea, 0x9d, 0xf5, 0x26, 0xaa, 0xea, 0x44, 0xc5, 0x2e, 0x37, 0x19, 0x9e, - 0xda, 0x37, 0x1f, 0x4e, 0xf6, 0x82, 0x86, 0xcc, 0xd0, 0x18, 0x1c, 0xb9, 0x5c, 0x85, 0x79, 0x1c, - 0x31, 0xaf, 0x31, 0xb4, 0x46, 0xdd, 0xb3, 0xbe, 0x61, 0x2f, 0xa3, 0xe5, 0x0a, 0x5f, 0xc4, 0x11, - 0x0b, 0xda, 0x72, 0xb9, 0x52, 0x0b, 0xc5, 0xd2, 0x64, 0x6d, 0xd8, 0xe6, 0x2e, 0x3b, 0x63, 0x09, - 0x5e, 0x1b, 0x96, 0x26, 0x7a, 0x81, 0xfe, 0x85, 0x4e, 0x8e, 0x57, 0x38, 0x96, 0x94, 0x33, 0xcf, - 0xde, 0x85, 0x2f, 0x2a, 0x39, 0xd8, 0x12, 0xe8, 0x01, 0x74, 0x23, 0x42, 0x04, 0x26, 0x91, 0x4e, - 0x68, 0xe9, 0x84, 0x23, 0x93, 0x70, 0xbe, 0x0d, 0x04, 0xbb, 0x14, 0x1a, 0x80, 0x2d, 0x79, 0x36, - 0xf7, 0xf6, 0x35, 0x0d, 0xe5, 0xbd, 0x79, 0x36, 0x0f, 0xb4, 0x8e, 0xfe, 0x80, 0xd6, 0x8a, 0xa6, - 0x54, 0x7a, 0x6d, 0x0d, 0x74, 0x0d, 0xf0, 0x4c, 0x49, 0x81, 0x89, 0xa0, 0xff, 0x01, 0x72, 0x29, - 0x70, 0x94, 0x86, 0x11, 0x21, 0x9e, 0xf3, 0xbd, 0x63, 0x3b, 0x06, 0x3a, 0x27, 0xc4, 0x17, 0xd0, - 0xa9, 0x5b, 0x83, 0x4e, 0xc0, 0x91, 0x6a, 0x13, 0xd2, 0x44, 0x77, 0xba, 0x59, 0x76, 0xb6, 0xad, - 0xd5, 0x59, 0x82, 0xc6, 0xd0, 0x8e, 0xf9, 0xaa, 0x48, 0x59, 0xee, 0x35, 0x86, 0xcd, 0x51, 0xf7, - 0xcc, 0x35, 0xc5, 0x1f, 0x69, 0x71, 0xc6, 0xae, 0x78, 0x50, 0x01, 0xc8,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 0xfc, 0xf8, 0x28, 0x7e, 0x05, 0x00, 0x00, + // 734 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xdf, 0x6e, 0xd3, 0x30, + 0x14, 0xc6, 0x97, 0x36, 0x5d, 0xd3, 0xd3, 0xad, 0xcd, 0xcc, 0x1f, 0x45, 0xbb, 0xe8, 0x4a, 0x60, + 0x62, 0x54, 0xa2, 0xa0, 0x71, 0xc1, 0xf5, 0x8a, 0x40, 0xaa, 0x40, 0x55, 0x95, 0xed, 0x3e, 0x4a, + 0x13, 0x2f, 0x18, 0x35, 0x76, 0x70, 0x1c, 0xad, 0xbd, 0xe0, 0x29, 0xb8, 0x01, 0x89, 0x37, 0xe0, + 0x45, 0x76, 0xc9, 0x13, 0x20, 0x34, 0x5e, 0x04, 0xd9, 0x4e, 0xd2, 0x0c, 0x86, 0xe0, 0x2a, 0xf6, + 0x77, 0x7e, 0xe7, 0xd8, 0xf1, 0x77, 0x6c, 0xe8, 0xe1, 0x15, 0x0e, 0x73, 0xc1, 0xf8, 0x38, 0xe5, + 0x4c, 0x30, 0x64, 0x0a, 0x92, 0x2e, 0xf6, 0x6d, 0xbc, 0x4a, 0x39, 0xce, 0x32, 0xc2, 0xa8, 0xd6, + 0xf7, 0x77, 0xb2, 0xf0, 0x2d, 0x4e, 0x82, 0x62, 0x76, 0x3b, 0x66, 0x31, 0x53, 0xc3, 0x27, 0x72, + 0xa4, 0x55, 0xf7, 0x63, 0x13, 0xac, 0x97, 0x45, 0x39, 0xf4, 0x00, 0x1a, 0x22, 0x75, 0x8c, 0xa1, + 0x71, 0xd4, 0x3b, 0xee, 0x8d, 0x65, 0xd5, 0xb1, 0x8c, 0x9d, 0xad, 0x53, 0x3c, 0x31, 0x2f, 0xbf, + 0x1f, 0x6c, 0x79, 0x0d, 0x91, 0xa2, 0x11, 0x58, 0x62, 0xb1, 0xf4, 0xb3, 0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xfc, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x41, 0x51, 0x90, 0x24, 0xc4, 0x05, 0x00, 0x00, } diff --git a/go-tipb/expression.pb.go b/go-tipb/expression.pb.go index 048a77823..6bf020ca7 100644 --- a/go-tipb/expression.pb.go +++ b/go-tipb/expression.pb.go @@ -5,10 +5,12 @@ package tipb import ( "fmt" - io "io" - math "math" proto "github.com/golang/protobuf/proto" + + math "math" + + io "io" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/go-tipb/schema.pb.go b/go-tipb/schema.pb.go index bfe5b321c..0d835717e 100644 --- a/go-tipb/schema.pb.go +++ b/go-tipb/schema.pb.go @@ -5,10 +5,12 @@ package tipb import ( "fmt" - io "io" - math "math" proto "github.com/golang/protobuf/proto" + + math "math" + + io "io" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/go-tipb/select.pb.go b/go-tipb/select.pb.go index 98fe59bce..bfba04e36 100644 --- a/go-tipb/select.pb.go +++ b/go-tipb/select.pb.go @@ -5,11 +5,14 @@ package tipb import ( "fmt" - io "io" - math "math" proto "github.com/golang/protobuf/proto" + + math "math" + github_com_pingcap_tipb_sharedbytes "github.com/pingcap/tipb/sharedbytes" + + io "io" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/proto/executor.proto b/proto/executor.proto index 7735212d4..1cdde5312 100644 --- a/proto/executor.proto +++ b/proto/executor.proto @@ -21,6 +21,7 @@ enum ExecType { TypeTopN = 4; TypeLimit = 5; TypeStreamAgg = 6; + TypeProjection = 7; } // It represents a Executor. @@ -32,7 +33,8 @@ message Executor { optional Aggregation aggregation = 5; optional TopN topN = 6; optional Limit limit = 7; - optional Aggregation stream_agg= 8; + optional Aggregation stream_agg = 8; + optional Projection projection = 9; } message TableScan { diff --git a/src/analyze.rs b/src/analyze.rs index 23415369d..1432e0fd4 100644 --- a/src/analyze.rs +++ b/src/analyze.rs @@ -3041,7 +3041,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x18\x01\x20\x03(\rR\x08counters\"1\n\x08CMSketch\x12%\n\x04rows\x18\x01\ \x20\x03(\x0b2\x11.tipb.CMSketchRowR\x04rows*,\n\x0bAnalyzeType\x12\r\n\ \tTypeIndex\x10\0\x12\x0e\n\nTypeColumn\x10\x01B%\n\x15com.pingcap.tidb.\ - tipbP\x01\xc8\xe2\x1e\x01\xd0\xe2\x1e\x01\xe0\xe2\x1e\x01J\xd5,\n\x06\ + tipbP\x01\xe0\xe2\x1e\x01\xd0\xe2\x1e\x01\xc8\xe2\x1e\x01J\xd5,\n\x06\ \x12\x04\0\0n\x01\n\x08\n\x01\x0c\x12\x03\0\0\x12\n\x08\n\x01\x02\x12\ \x03\x02\x08\x0c\n\x08\n\x01\x08\x12\x03\x04\0\"\n\x0b\n\x04\x08\xe7\x07\ \0\x12\x03\x04\0\"\n\x0c\n\x05\x08\xe7\x07\0\x02\x12\x03\x04\x07\x1a\n\r\ diff --git a/src/checksum.rs b/src/checksum.rs index f16d0fb23..b9bd89874 100644 --- a/src/checksum.rs +++ b/src/checksum.rs @@ -595,8 +595,8 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x08totalKvsB\x04\xc8\xde\x1f\0\x12%\n\x0btotal_bytes\x18\x03\x20\x01(\ \x04R\ntotalBytesB\x04\xc8\xde\x1f\0*&\n\x0eChecksumScanOn\x12\t\n\x05Ta\ ble\x10\0\x12\t\n\x05Index\x10\x01*\"\n\x11ChecksumAlgorithm\x12\r\n\tCr\ - c64_Xor\x10\0B%\n\x15com.pingcap.tidb.tipbP\x01\xd0\xe2\x1e\x01\xe0\xe2\ - \x1e\x01\xc8\xe2\x1e\x01J\xb6\r\n\x06\x12\x04\0\0\x20\x01\n\x08\n\x01\ + c64_Xor\x10\0B%\n\x15com.pingcap.tidb.tipbP\x01\xd0\xe2\x1e\x01\xc8\xe2\ + \x1e\x01\xe0\xe2\x1e\x01J\xb6\r\n\x06\x12\x04\0\0\x20\x01\n\x08\n\x01\ \x0c\x12\x03\0\0\x12\n\x08\n\x01\x02\x12\x03\x02\x08\x0c\n\x08\n\x01\x08\ \x12\x03\x04\0\"\n\x0b\n\x04\x08\xe7\x07\0\x12\x03\x04\0\"\n\x0c\n\x05\ \x08\xe7\x07\0\x02\x12\x03\x04\x07\x1a\n\r\n\x06\x08\xe7\x07\0\x02\0\x12\ diff --git a/src/executor.rs b/src/executor.rs index 5fe0ef024..641f04e8b 100644 --- a/src/executor.rs +++ b/src/executor.rs @@ -32,6 +32,7 @@ pub struct Executor { topN: ::protobuf::SingularPtrField, limit: ::protobuf::SingularPtrField, stream_agg: ::protobuf::SingularPtrField, + projection: ::protobuf::SingularPtrField, // special fields unknown_fields: ::protobuf::UnknownFields, cached_size: ::protobuf::CachedSize, @@ -291,6 +292,39 @@ impl Executor { pub fn get_stream_agg(&self) -> &Aggregation { self.stream_agg.as_ref().unwrap_or_else(|| Aggregation::default_instance()) } + + // optional .tipb.Projection projection = 9; + + pub fn clear_projection(&mut self) { + self.projection.clear(); + } + + pub fn has_projection(&self) -> bool { + self.projection.is_some() + } + + // Param is passed by value, moved + pub fn set_projection(&mut self, v: Projection) { + self.projection = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_projection(&mut self) -> &mut Projection { + if self.projection.is_none() { + self.projection.set_default(); + } + self.projection.as_mut().unwrap() + } + + // Take field + pub fn take_projection(&mut self) -> Projection { + self.projection.take().unwrap_or_else(|| Projection::new()) + } + + pub fn get_projection(&self) -> &Projection { + self.projection.as_ref().unwrap_or_else(|| Projection::default_instance()) + } } impl ::protobuf::Message for Executor { @@ -330,6 +364,11 @@ impl ::protobuf::Message for Executor { return false; } }; + for v in &self.projection { + if !v.is_initialized() { + return false; + } + }; true } @@ -361,6 +400,9 @@ impl ::protobuf::Message for Executor { 8 => { ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.stream_agg)?; }, + 9 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.projection)?; + }, _ => { ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; }, @@ -404,6 +446,10 @@ impl ::protobuf::Message for Executor { let len = v.compute_size(); my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; } + if let Some(ref v) = self.projection.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); self.cached_size.set(my_size); my_size @@ -448,6 +494,11 @@ impl ::protobuf::Message for Executor { os.write_raw_varint32(v.get_cached_size())?; v.write_to_with_cached_sizes(os)?; } + if let Some(ref v) = self.projection.as_ref() { + os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; + os.write_raw_varint32(v.get_cached_size())?; + v.write_to_with_cached_sizes(os)?; + } os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) } @@ -530,6 +581,11 @@ impl ::protobuf::Message for Executor { |m: &Executor| { &m.stream_agg }, |m: &mut Executor| { &mut m.stream_agg }, )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "projection", + |m: &Executor| { &m.projection }, + |m: &mut Executor| { &mut m.projection }, + )); ::protobuf::reflect::MessageDescriptor::new::( "Executor", fields, @@ -560,6 +616,7 @@ impl ::protobuf::Clear for Executor { self.clear_topN(); self.clear_limit(); self.clear_stream_agg(); + self.clear_projection(); self.unknown_fields.clear(); } } @@ -2364,6 +2421,7 @@ pub enum ExecType { TypeTopN = 4, TypeLimit = 5, TypeStreamAgg = 6, + TypeProjection = 7, } impl ::protobuf::ProtobufEnum for ExecType { @@ -2380,6 +2438,7 @@ impl ::protobuf::ProtobufEnum for ExecType { 4 => ::std::option::Option::Some(ExecType::TypeTopN), 5 => ::std::option::Option::Some(ExecType::TypeLimit), 6 => ::std::option::Option::Some(ExecType::TypeStreamAgg), + 7 => ::std::option::Option::Some(ExecType::TypeProjection), _ => ::std::option::Option::None } } @@ -2393,6 +2452,7 @@ impl ::protobuf::ProtobufEnum for ExecType { ExecType::TypeTopN, ExecType::TypeLimit, ExecType::TypeStreamAgg, + ExecType::TypeProjection, ]; values } @@ -2421,7 +2481,7 @@ impl ::protobuf::reflect::ProtobufValue for ExecType { static file_descriptor_proto_data: &'static [u8] = b"\ \n\x0eexecutor.proto\x12\x04tipb\x1a\x10expression.proto\x1a\x0cschema.p\ - roto\x1a\x14gogoproto/gogo.proto\"\xe1\x02\n\x08Executor\x12$\n\x02tp\ + roto\x1a\x14gogoproto/gogo.proto\"\x93\x03\n\x08Executor\x12$\n\x02tp\ \x18\x01\x20\x01(\x0e2\x0e.tipb.ExecTypeR\x02tpB\x04\xc8\xde\x1f\0\x12*\ \n\x08tbl_scan\x18\x02\x20\x01(\x0b2\x0f.tipb.TableScanR\x07tblScan\x12*\ \n\x08idx_scan\x18\x03\x20\x01(\x0b2\x0f.tipb.IndexScanR\x07idxScan\x12-\ @@ -2429,7 +2489,8 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \n\x0baggregation\x18\x05\x20\x01(\x0b2\x11.tipb.AggregationR\x0baggrega\ tion\x12\x1e\n\x04topN\x18\x06\x20\x01(\x0b2\n.tipb.TopNR\x04topN\x12!\n\ \x05limit\x18\x07\x20\x01(\x0b2\x0b.tipb.LimitR\x05limit\x120\n\nstream_\ - agg\x18\x08\x20\x01(\x0b2\x11.tipb.AggregationR\tstreamAgg\"r\n\tTableSc\ + agg\x18\x08\x20\x01(\x0b2\x11.tipb.AggregationR\tstreamAgg\x120\n\nproje\ + ction\x18\t\x20\x01(\x0b2\x10.tipb.ProjectionR\nprojection\"r\n\tTableSc\ an\x12\x1f\n\x08table_id\x18\x01\x20\x01(\x03R\x07tableIdB\x04\xc8\xde\ \x1f\0\x12*\n\x07columns\x18\x02\x20\x03(\x0b2\x10.tipb.ColumnInfoR\x07c\ olumns\x12\x18\n\x04desc\x18\x03\x20\x01(\x08R\x04descB\x04\xc8\xde\x1f\ @@ -2450,199 +2511,205 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x01\n\x18ExecutorExecutionSummary\x12*\n\x11time_processed_ns\x18\x01\ \x20\x01(\x04R\x0ftimeProcessedNs\x12*\n\x11num_produced_rows\x18\x02\ \x20\x01(\x04R\x0fnumProducedRows\x12%\n\x0enum_iterations\x18\x03\x20\ - \x01(\x04R\rnumIterations*\x88\x01\n\x08ExecType\x12\x11\n\rTypeTableSca\ + \x01(\x04R\rnumIterations*\x9c\x01\n\x08ExecType\x12\x11\n\rTypeTableSca\ n\x10\0\x12\x11\n\rTypeIndexScan\x10\x01\x12\x11\n\rTypeSelection\x10\ \x02\x12\x13\n\x0fTypeAggregation\x10\x03\x12\x0c\n\x08TypeTopN\x10\x04\ - \x12\r\n\tTypeLimit\x10\x05\x12\x11\n\rTypeStreamAgg\x10\x06B%\n\x15com.\ - pingcap.tidb.tipbP\x01\xc8\xe2\x1e\x01\xd0\xe2\x1e\x01\xe0\xe2\x1e\x01J\ - \xe9!\n\x06\x12\x04\0\0Z\x01\n\x08\n\x01\x0c\x12\x03\0\0\x12\n\x08\n\x01\ - \x02\x12\x03\x02\x08\x0c\n\x08\n\x01\x08\x12\x03\x04\0\"\n\x0b\n\x04\x08\ - \xe7\x07\0\x12\x03\x04\0\"\n\x0c\n\x05\x08\xe7\x07\0\x02\x12\x03\x04\x07\ - \x1a\n\r\n\x06\x08\xe7\x07\0\x02\0\x12\x03\x04\x07\x1a\n\x0e\n\x07\x08\ - \xe7\x07\0\x02\0\x01\x12\x03\x04\x07\x1a\n\x0c\n\x05\x08\xe7\x07\0\x03\ - \x12\x03\x04\x1d!\n\x08\n\x01\x08\x12\x03\x05\0.\n\x0b\n\x04\x08\xe7\x07\ - \x01\x12\x03\x05\0.\n\x0c\n\x05\x08\xe7\x07\x01\x02\x12\x03\x05\x07\x13\ - \n\r\n\x06\x08\xe7\x07\x01\x02\0\x12\x03\x05\x07\x13\n\x0e\n\x07\x08\xe7\ - \x07\x01\x02\0\x01\x12\x03\x05\x07\x13\n\x0c\n\x05\x08\xe7\x07\x01\x07\ - \x12\x03\x05\x16-\n\t\n\x02\x03\0\x12\x03\x07\x07\x19\n\t\n\x02\x03\x01\ - \x12\x03\x08\x07\x15\n\t\n\x02\x03\x02\x12\x03\t\x07\x1d\n\x08\n\x01\x08\ - \x12\x03\x0b\0(\n\x0b\n\x04\x08\xe7\x07\x02\x12\x03\x0b\0(\n\x0c\n\x05\ - \x08\xe7\x07\x02\x02\x12\x03\x0b\x07\x20\n\r\n\x06\x08\xe7\x07\x02\x02\0\ - \x12\x03\x0b\x07\x20\n\x0e\n\x07\x08\xe7\x07\x02\x02\0\x01\x12\x03\x0b\ - \x08\x1f\n\x0c\n\x05\x08\xe7\x07\x02\x03\x12\x03\x0b#'\n\x08\n\x01\x08\ - \x12\x03\x0c\0$\n\x0b\n\x04\x08\xe7\x07\x03\x12\x03\x0c\0$\n\x0c\n\x05\ - \x08\xe7\x07\x03\x02\x12\x03\x0c\x07\x1c\n\r\n\x06\x08\xe7\x07\x03\x02\0\ - \x12\x03\x0c\x07\x1c\n\x0e\n\x07\x08\xe7\x07\x03\x02\0\x01\x12\x03\x0c\ - \x08\x1b\n\x0c\n\x05\x08\xe7\x07\x03\x03\x12\x03\x0c\x1f#\n\x08\n\x01\ - \x08\x12\x03\r\0*\n\x0b\n\x04\x08\xe7\x07\x04\x12\x03\r\0*\n\x0c\n\x05\ - \x08\xe7\x07\x04\x02\x12\x03\r\x07\"\n\r\n\x06\x08\xe7\x07\x04\x02\0\x12\ - \x03\r\x07\"\n\x0e\n\x07\x08\xe7\x07\x04\x02\0\x01\x12\x03\r\x08!\n\x0c\ - \n\x05\x08\xe7\x07\x04\x03\x12\x03\r%)\n\n\n\x02\x05\0\x12\x04\x0f\0\x17\ - \x01\n\n\n\x03\x05\0\x01\x12\x03\x0f\x05\r\n\x0b\n\x04\x05\0\x02\0\x12\ - \x03\x10\x08\x1a\n\x0c\n\x05\x05\0\x02\0\x01\x12\x03\x10\x08\x15\n\x0c\n\ - \x05\x05\0\x02\0\x02\x12\x03\x10\x18\x19\n\x0b\n\x04\x05\0\x02\x01\x12\ - \x03\x11\x08\x1a\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x03\x11\x08\x15\n\x0c\ - \n\x05\x05\0\x02\x01\x02\x12\x03\x11\x18\x19\n\x0b\n\x04\x05\0\x02\x02\ - \x12\x03\x12\x08\x1a\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03\x12\x08\x15\n\ - \x0c\n\x05\x05\0\x02\x02\x02\x12\x03\x12\x18\x19\n\\\n\x04\x05\0\x02\x03\ - \x12\x03\x13\x08\x1c\"O\x20TODO:\x20Rename\x20it\x20to\x20hash\x20aggreg\ - ation\x20after\x20support\x20stream\x20aggregation\x20in\x20TiKV.\n\n\ - \x0c\n\x05\x05\0\x02\x03\x01\x12\x03\x13\x08\x17\n\x0c\n\x05\x05\0\x02\ - \x03\x02\x12\x03\x13\x1a\x1b\n\x0b\n\x04\x05\0\x02\x04\x12\x03\x14\x08\ - \x15\n\x0c\n\x05\x05\0\x02\x04\x01\x12\x03\x14\x08\x10\n\x0c\n\x05\x05\0\ - \x02\x04\x02\x12\x03\x14\x13\x14\n\x0b\n\x04\x05\0\x02\x05\x12\x03\x15\ - \x08\x16\n\x0c\n\x05\x05\0\x02\x05\x01\x12\x03\x15\x08\x11\n\x0c\n\x05\ - \x05\0\x02\x05\x02\x12\x03\x15\x14\x15\n\x0b\n\x04\x05\0\x02\x06\x12\x03\ - \x16\x08\x1a\n\x0c\n\x05\x05\0\x02\x06\x01\x12\x03\x16\x08\x15\n\x0c\n\ - \x05\x05\0\x02\x06\x02\x12\x03\x16\x18\x19\n'\n\x02\x04\0\x12\x04\x1a\0#\ - \x01\x1a\x1b\x20It\x20represents\x20a\x20Executor.\n\n\n\n\x03\x04\0\x01\ - \x12\x03\x1a\x08\x10\n\x0b\n\x04\x04\0\x02\0\x12\x03\x1b\x08@\n\x0c\n\ - \x05\x04\0\x02\0\x04\x12\x03\x1b\x08\x10\n\x0c\n\x05\x04\0\x02\0\x06\x12\ - \x03\x1b\x11\x19\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x1b\x1a\x1c\n\x0c\n\ - \x05\x04\0\x02\0\x03\x12\x03\x1b\x1f\x20\n\x0c\n\x05\x04\0\x02\0\x08\x12\ - \x03\x1b!?\n\x0f\n\x08\x04\0\x02\0\x08\xe7\x07\0\x12\x03\x1b\">\n\x10\n\ - \t\x04\0\x02\0\x08\xe7\x07\0\x02\x12\x03\x1b\"6\n\x11\n\n\x04\0\x02\0\ - \x08\xe7\x07\0\x02\0\x12\x03\x1b\"6\n\x12\n\x0b\x04\0\x02\0\x08\xe7\x07\ - \0\x02\0\x01\x12\x03\x1b#5\n\x10\n\t\x04\0\x02\0\x08\xe7\x07\0\x03\x12\ - \x03\x1b9>\n\x0b\n\x04\x04\0\x02\x01\x12\x03\x1c\x08(\n\x0c\n\x05\x04\0\ - \x02\x01\x04\x12\x03\x1c\x08\x10\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03\ - \x1c\x11\x1a\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\x1c\x1b#\n\x0c\n\x05\ - \x04\0\x02\x01\x03\x12\x03\x1c&'\n\x0b\n\x04\x04\0\x02\x02\x12\x03\x1d\ - \x08(\n\x0c\n\x05\x04\0\x02\x02\x04\x12\x03\x1d\x08\x10\n\x0c\n\x05\x04\ - \0\x02\x02\x06\x12\x03\x1d\x11\x1a\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03\ - \x1d\x1b#\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03\x1d&'\n\x0b\n\x04\x04\0\ - \x02\x03\x12\x03\x1e\x08)\n\x0c\n\x05\x04\0\x02\x03\x04\x12\x03\x1e\x08\ - \x10\n\x0c\n\x05\x04\0\x02\x03\x06\x12\x03\x1e\x11\x1a\n\x0c\n\x05\x04\0\ - \x02\x03\x01\x12\x03\x1e\x1b$\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03\x1e'\ - (\n\x0b\n\x04\x04\0\x02\x04\x12\x03\x1f\x08-\n\x0c\n\x05\x04\0\x02\x04\ - \x04\x12\x03\x1f\x08\x10\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03\x1f\x11\ - \x1c\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03\x1f\x1d(\n\x0c\n\x05\x04\0\ - \x02\x04\x03\x12\x03\x1f+,\n\x0b\n\x04\x04\0\x02\x05\x12\x03\x20\x08\x1f\ - \n\x0c\n\x05\x04\0\x02\x05\x04\x12\x03\x20\x08\x10\n\x0c\n\x05\x04\0\x02\ - \x05\x06\x12\x03\x20\x11\x15\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03\x20\ - \x16\x1a\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03\x20\x1d\x1e\n\x0b\n\x04\ - \x04\0\x02\x06\x12\x03!\x08!\n\x0c\n\x05\x04\0\x02\x06\x04\x12\x03!\x08\ - \x10\n\x0c\n\x05\x04\0\x02\x06\x06\x12\x03!\x11\x16\n\x0c\n\x05\x04\0\ - \x02\x06\x01\x12\x03!\x17\x1c\n\x0c\n\x05\x04\0\x02\x06\x03\x12\x03!\x1f\ - \x20\n\x0b\n\x04\x04\0\x02\x07\x12\x03\"\x08+\n\x0c\n\x05\x04\0\x02\x07\ - \x04\x12\x03\"\x08\x10\n\x0c\n\x05\x04\0\x02\x07\x06\x12\x03\"\x11\x1c\n\ - \x0c\n\x05\x04\0\x02\x07\x01\x12\x03\"\x1d'\n\x0c\n\x05\x04\0\x02\x07\ - \x03\x12\x03\")*\n\n\n\x02\x04\x01\x12\x04%\0)\x01\n\n\n\x03\x04\x01\x01\ - \x12\x03%\x08\x11\n\x0b\n\x04\x04\x01\x02\0\x12\x03&\x08C\n\x0c\n\x05\ - \x04\x01\x02\0\x04\x12\x03&\x08\x10\n\x0c\n\x05\x04\x01\x02\0\x05\x12\ - \x03&\x11\x16\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03&\x17\x1f\n\x0c\n\x05\ - \x04\x01\x02\0\x03\x12\x03&\"#\n\x0c\n\x05\x04\x01\x02\0\x08\x12\x03&$B\ - \n\x0f\n\x08\x04\x01\x02\0\x08\xe7\x07\0\x12\x03&%A\n\x10\n\t\x04\x01\ - \x02\0\x08\xe7\x07\0\x02\x12\x03&%9\n\x11\n\n\x04\x01\x02\0\x08\xe7\x07\ - \0\x02\0\x12\x03&%9\n\x12\n\x0b\x04\x01\x02\0\x08\xe7\x07\0\x02\0\x01\ - \x12\x03&&8\n\x10\n\t\x04\x01\x02\0\x08\xe7\x07\0\x03\x12\x03&\n\x0c\n\x05\x04\ - \x01\x02\x02\x04\x12\x03(\x08\x10\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\ - \x03(\x11\x15\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03(\x16\x1a\n\x0c\n\ - \x05\x04\x01\x02\x02\x03\x12\x03(\x1d\x1e\n\x0c\n\x05\x04\x01\x02\x02\ - \x08\x12\x03(\x1f=\n\x0f\n\x08\x04\x01\x02\x02\x08\xe7\x07\0\x12\x03(\ - \x20<\n\x10\n\t\x04\x01\x02\x02\x08\xe7\x07\0\x02\x12\x03(\x204\n\x11\n\ - \n\x04\x01\x02\x02\x08\xe7\x07\0\x02\0\x12\x03(\x204\n\x12\n\x0b\x04\x01\ - \x02\x02\x08\xe7\x07\0\x02\0\x01\x12\x03(!3\n\x10\n\t\x04\x01\x02\x02\ - \x08\xe7\x07\0\x03\x12\x03(7<\n\n\n\x02\x04\x02\x12\x04+\01\x01\n\n\n\ - \x03\x04\x02\x01\x12\x03+\x08\x11\n\x0b\n\x04\x04\x02\x02\0\x12\x03,\x08\ - C\n\x0c\n\x05\x04\x02\x02\0\x04\x12\x03,\x08\x10\n\x0c\n\x05\x04\x02\x02\ - \0\x05\x12\x03,\x11\x16\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03,\x17\x1f\n\ - \x0c\n\x05\x04\x02\x02\0\x03\x12\x03,\"#\n\x0c\n\x05\x04\x02\x02\0\x08\ - \x12\x03,$B\n\x0f\n\x08\x04\x02\x02\0\x08\xe7\x07\0\x12\x03,%A\n\x10\n\t\ - \x04\x02\x02\0\x08\xe7\x07\0\x02\x12\x03,%9\n\x11\n\n\x04\x02\x02\0\x08\ - \xe7\x07\0\x02\0\x12\x03,%9\n\x12\n\x0b\x04\x02\x02\0\x08\xe7\x07\0\x02\ - \0\x01\x12\x03,&8\n\x10\n\t\x04\x02\x02\0\x08\xe7\x07\0\x03\x12\x03,\n\x0c\n\x05\x04\x02\ - \x02\x03\x04\x12\x03/\x08\x10\n\x0c\n\x05\x04\x02\x02\x03\x05\x12\x03/\ - \x11\x15\n\x0c\n\x05\x04\x02\x02\x03\x01\x12\x03/\x16\x1a\n\x0c\n\x05\ - \x04\x02\x02\x03\x03\x12\x03/\x1d\x1e\n\x0c\n\x05\x04\x02\x02\x03\x08\ - \x12\x03/\x1f=\n\x0f\n\x08\x04\x02\x02\x03\x08\xe7\x07\0\x12\x03/\x20<\n\ - \x10\n\t\x04\x02\x02\x03\x08\xe7\x07\0\x02\x12\x03/\x204\n\x11\n\n\x04\ - \x02\x02\x03\x08\xe7\x07\0\x02\0\x12\x03/\x204\n\x12\n\x0b\x04\x02\x02\ - \x03\x08\xe7\x07\0\x02\0\x01\x12\x03/!3\n\x10\n\t\x04\x02\x02\x03\x08\ - \xe7\x07\0\x03\x12\x03/7<\n2\n\x04\x04\x02\x02\x04\x12\x030\x08!\"%\x20c\ - heck\x20whether\x20it\x20is\x20a\x20unique\x20index.\n\n\x0c\n\x05\x04\ - \x02\x02\x04\x04\x12\x030\x08\x10\n\x0c\n\x05\x04\x02\x02\x04\x05\x12\ - \x030\x11\x15\n\x0c\n\x05\x04\x02\x02\x04\x01\x12\x030\x16\x1c\n\x0c\n\ - \x05\x04\x02\x02\x04\x03\x12\x030\x1f\x20\n\n\n\x02\x04\x03\x12\x043\06\ - \x01\n\n\n\x03\x04\x03\x01\x12\x033\x08\x11\n\x20\n\x04\x04\x03\x02\0\ - \x12\x035\x08%\x1a\x13\x20Where\x20conditions.\n\n\x0c\n\x05\x04\x03\x02\ - \0\x04\x12\x035\x08\x10\n\x0c\n\x05\x04\x03\x02\0\x06\x12\x035\x11\x15\n\ - \x0c\n\x05\x04\x03\x02\0\x01\x12\x035\x16\x20\n\x0c\n\x05\x04\x03\x02\0\ - \x03\x12\x035#$\n\n\n\x02\x04\x04\x12\x048\0;\x01\n\n\n\x03\x04\x04\x01\ - \x12\x038\x08\x12\n&\n\x04\x04\x04\x02\0\x12\x03:\x08\x20\x1a\x19\x20Pro\ - jection\x20expressions.\n\n\x0c\n\x05\x04\x04\x02\0\x04\x12\x03:\x08\x10\ - \n\x0c\n\x05\x04\x04\x02\0\x06\x12\x03:\x11\x15\n\x0c\n\x05\x04\x04\x02\ - \0\x01\x12\x03:\x16\x1b\n\x0c\n\x05\x04\x04\x02\0\x03\x12\x03:\x1e\x1f\n\ - \n\n\x02\x04\x05\x12\x04=\0D\x01\n\n\n\x03\x04\x05\x01\x12\x03=\x08\x13\ - \n\x1f\n\x04\x04\x05\x02\0\x12\x03?\x08#\x1a\x12\x20Group\x20by\x20claus\ - e.\n\n\x0c\n\x05\x04\x05\x02\0\x04\x12\x03?\x08\x10\n\x0c\n\x05\x04\x05\ - \x02\0\x06\x12\x03?\x11\x15\n\x0c\n\x05\x04\x05\x02\0\x01\x12\x03?\x16\ - \x1e\n\x0c\n\x05\x04\x05\x02\0\x03\x12\x03?!\"\n#\n\x04\x04\x05\x02\x01\ - \x12\x03A\x08#\x1a\x16\x20Aggregate\x20functions.\n\n\x0c\n\x05\x04\x05\ - \x02\x01\x04\x12\x03A\x08\x10\n\x0c\n\x05\x04\x05\x02\x01\x06\x12\x03A\ - \x11\x15\n\x0c\n\x05\x04\x05\x02\x01\x01\x12\x03A\x16\x1e\n\x0c\n\x05\ - \x04\x05\x02\x01\x03\x12\x03A!\"\n-\n\x04\x04\x05\x02\x02\x12\x03C\x08B\ - \x1a\x20\x20If\x20it\x20is\x20a\x20stream\x20aggregation.\n\n\x0c\n\x05\ - \x04\x05\x02\x02\x04\x12\x03C\x08\x10\n\x0c\n\x05\x04\x05\x02\x02\x05\ - \x12\x03C\x11\x15\n\x0c\n\x05\x04\x05\x02\x02\x01\x12\x03C\x16\x1e\n\x0c\ - \n\x05\x04\x05\x02\x02\x03\x12\x03C!\"\n\x0c\n\x05\x04\x05\x02\x02\x08\ - \x12\x03C#A\n\x0f\n\x08\x04\x05\x02\x02\x08\xe7\x07\0\x12\x03C$@\n\x10\n\ - \t\x04\x05\x02\x02\x08\xe7\x07\0\x02\x12\x03C$8\n\x11\n\n\x04\x05\x02\ - \x02\x08\xe7\x07\0\x02\0\x12\x03C$8\n\x12\n\x0b\x04\x05\x02\x02\x08\xe7\ - \x07\0\x02\0\x01\x12\x03C%7\n\x10\n\t\x04\x05\x02\x02\x08\xe7\x07\0\x03\ - \x12\x03C;@\n\n\n\x02\x04\x06\x12\x04F\0J\x01\n\n\n\x03\x04\x06\x01\x12\ - \x03F\x08\x0c\n\x1f\n\x04\x04\x06\x02\0\x12\x03H\x08%\x1a\x12\x20Order\ - \x20by\x20clause.\n\n\x0c\n\x05\x04\x06\x02\0\x04\x12\x03H\x08\x10\n\x0c\ - \n\x05\x04\x06\x02\0\x06\x12\x03H\x11\x17\n\x0c\n\x05\x04\x06\x02\0\x01\ - \x12\x03H\x18\x20\n\x0c\n\x05\x04\x06\x02\0\x03\x12\x03H#$\n\x0b\n\x04\ - \x04\x06\x02\x01\x12\x03I\x08A\n\x0c\n\x05\x04\x06\x02\x01\x04\x12\x03I\ - \x08\x10\n\x0c\n\x05\x04\x06\x02\x01\x05\x12\x03I\x11\x17\n\x0c\n\x05\ - \x04\x06\x02\x01\x01\x12\x03I\x18\x1d\n\x0c\n\x05\x04\x06\x02\x01\x03\ - \x12\x03I\x20!\n\x0c\n\x05\x04\x06\x02\x01\x08\x12\x03I\"@\n\x0f\n\x08\ - \x04\x06\x02\x01\x08\xe7\x07\0\x12\x03I#?\n\x10\n\t\x04\x06\x02\x01\x08\ - \xe7\x07\0\x02\x12\x03I#7\n\x11\n\n\x04\x06\x02\x01\x08\xe7\x07\0\x02\0\ - \x12\x03I#7\n\x12\n\x0b\x04\x06\x02\x01\x08\xe7\x07\0\x02\0\x01\x12\x03I\ - $6\n\x10\n\t\x04\x06\x02\x01\x08\xe7\x07\0\x03\x12\x03I:?\n\n\n\x02\x04\ - \x07\x12\x04L\0O\x01\n\n\n\x03\x04\x07\x01\x12\x03L\x08\r\n/\n\x04\x04\ - \x07\x02\0\x12\x03N\x08A\x1a\"\x20Limit\x20the\x20result\x20to\x20be\x20\ - returned.\n\n\x0c\n\x05\x04\x07\x02\0\x04\x12\x03N\x08\x10\n\x0c\n\x05\ - \x04\x07\x02\0\x05\x12\x03N\x11\x17\n\x0c\n\x05\x04\x07\x02\0\x01\x12\ - \x03N\x18\x1d\n\x0c\n\x05\x04\x07\x02\0\x03\x12\x03N\x20!\n\x0c\n\x05\ - \x04\x07\x02\0\x08\x12\x03N\"@\n\x0f\n\x08\x04\x07\x02\0\x08\xe7\x07\0\ - \x12\x03N#?\n\x10\n\t\x04\x07\x02\0\x08\xe7\x07\0\x02\x12\x03N#7\n\x11\n\ - \n\x04\x07\x02\0\x08\xe7\x07\0\x02\0\x12\x03N#7\n\x12\n\x0b\x04\x07\x02\ - \0\x08\xe7\x07\0\x02\0\x01\x12\x03N$6\n\x10\n\t\x04\x07\x02\0\x08\xe7\ - \x07\0\x03\x12\x03N:?\n\n\n\x02\x04\x08\x12\x04Q\0Z\x01\n\n\n\x03\x04\ - \x08\x01\x12\x03Q\x08\x20\n`\n\x04\x04\x08\x02\0\x12\x03S\x08.\x1aS\x20T\ - otal\x20time\x20cost\x20in\x20this\x20executor.\x20Includes\x20self\x20t\ - ime\x20cost\x20and\x20children\x20time\x20cost.\n\n\x0c\n\x05\x04\x08\ - \x02\0\x04\x12\x03S\x08\x10\n\x0c\n\x05\x04\x08\x02\0\x05\x12\x03S\x11\ - \x17\n\x0c\n\x05\x04\x08\x02\0\x01\x12\x03S\x18)\n\x0c\n\x05\x04\x08\x02\ - \0\x03\x12\x03S,-\n<\n\x04\x04\x08\x02\x01\x12\x03V\x08.\x1a/\x20How\x20\ - many\x20rows\x20this\x20executor\x20produced\x20totally.\n\n\x0c\n\x05\ - \x04\x08\x02\x01\x04\x12\x03V\x08\x10\n\x0c\n\x05\x04\x08\x02\x01\x05\ - \x12\x03V\x11\x17\n\x0c\n\x05\x04\x08\x02\x01\x01\x12\x03V\x18)\n\x0c\n\ - \x05\x04\x08\x02\x01\x03\x12\x03V,-\n<\n\x04\x04\x08\x02\x02\x12\x03Y\ - \x08+\x1a/\x20How\x20many\x20times\x20executor's\x20`next()`\x20is\x20ca\ - lled.\n\n\x0c\n\x05\x04\x08\x02\x02\x04\x12\x03Y\x08\x10\n\x0c\n\x05\x04\ - \x08\x02\x02\x05\x12\x03Y\x11\x17\n\x0c\n\x05\x04\x08\x02\x02\x01\x12\ - \x03Y\x18&\n\x0c\n\x05\x04\x08\x02\x02\x03\x12\x03Y)*\ + \x12\r\n\tTypeLimit\x10\x05\x12\x11\n\rTypeStreamAgg\x10\x06\x12\x12\n\ + \x0eTypeProjection\x10\x07B%\n\x15com.pingcap.tidb.tipbP\x01\xd0\xe2\x1e\ + \x01\xe0\xe2\x1e\x01\xc8\xe2\x1e\x01J\xd7\"\n\x06\x12\x04\0\0\\\x01\n\ + \x08\n\x01\x0c\x12\x03\0\0\x12\n\x08\n\x01\x02\x12\x03\x02\x08\x0c\n\x08\ + \n\x01\x08\x12\x03\x04\0\"\n\x0b\n\x04\x08\xe7\x07\0\x12\x03\x04\0\"\n\ + \x0c\n\x05\x08\xe7\x07\0\x02\x12\x03\x04\x07\x1a\n\r\n\x06\x08\xe7\x07\0\ + \x02\0\x12\x03\x04\x07\x1a\n\x0e\n\x07\x08\xe7\x07\0\x02\0\x01\x12\x03\ + \x04\x07\x1a\n\x0c\n\x05\x08\xe7\x07\0\x03\x12\x03\x04\x1d!\n\x08\n\x01\ + \x08\x12\x03\x05\0.\n\x0b\n\x04\x08\xe7\x07\x01\x12\x03\x05\0.\n\x0c\n\ + \x05\x08\xe7\x07\x01\x02\x12\x03\x05\x07\x13\n\r\n\x06\x08\xe7\x07\x01\ + \x02\0\x12\x03\x05\x07\x13\n\x0e\n\x07\x08\xe7\x07\x01\x02\0\x01\x12\x03\ + \x05\x07\x13\n\x0c\n\x05\x08\xe7\x07\x01\x07\x12\x03\x05\x16-\n\t\n\x02\ + \x03\0\x12\x03\x07\x07\x19\n\t\n\x02\x03\x01\x12\x03\x08\x07\x15\n\t\n\ + \x02\x03\x02\x12\x03\t\x07\x1d\n\x08\n\x01\x08\x12\x03\x0b\0(\n\x0b\n\ + \x04\x08\xe7\x07\x02\x12\x03\x0b\0(\n\x0c\n\x05\x08\xe7\x07\x02\x02\x12\ + \x03\x0b\x07\x20\n\r\n\x06\x08\xe7\x07\x02\x02\0\x12\x03\x0b\x07\x20\n\ + \x0e\n\x07\x08\xe7\x07\x02\x02\0\x01\x12\x03\x0b\x08\x1f\n\x0c\n\x05\x08\ + \xe7\x07\x02\x03\x12\x03\x0b#'\n\x08\n\x01\x08\x12\x03\x0c\0$\n\x0b\n\ + \x04\x08\xe7\x07\x03\x12\x03\x0c\0$\n\x0c\n\x05\x08\xe7\x07\x03\x02\x12\ + \x03\x0c\x07\x1c\n\r\n\x06\x08\xe7\x07\x03\x02\0\x12\x03\x0c\x07\x1c\n\ + \x0e\n\x07\x08\xe7\x07\x03\x02\0\x01\x12\x03\x0c\x08\x1b\n\x0c\n\x05\x08\ + \xe7\x07\x03\x03\x12\x03\x0c\x1f#\n\x08\n\x01\x08\x12\x03\r\0*\n\x0b\n\ + \x04\x08\xe7\x07\x04\x12\x03\r\0*\n\x0c\n\x05\x08\xe7\x07\x04\x02\x12\ + \x03\r\x07\"\n\r\n\x06\x08\xe7\x07\x04\x02\0\x12\x03\r\x07\"\n\x0e\n\x07\ + \x08\xe7\x07\x04\x02\0\x01\x12\x03\r\x08!\n\x0c\n\x05\x08\xe7\x07\x04\ + \x03\x12\x03\r%)\n\n\n\x02\x05\0\x12\x04\x0f\0\x18\x01\n\n\n\x03\x05\0\ + \x01\x12\x03\x0f\x05\r\n\x0b\n\x04\x05\0\x02\0\x12\x03\x10\x08\x1a\n\x0c\ + \n\x05\x05\0\x02\0\x01\x12\x03\x10\x08\x15\n\x0c\n\x05\x05\0\x02\0\x02\ + \x12\x03\x10\x18\x19\n\x0b\n\x04\x05\0\x02\x01\x12\x03\x11\x08\x1a\n\x0c\ + \n\x05\x05\0\x02\x01\x01\x12\x03\x11\x08\x15\n\x0c\n\x05\x05\0\x02\x01\ + \x02\x12\x03\x11\x18\x19\n\x0b\n\x04\x05\0\x02\x02\x12\x03\x12\x08\x1a\n\ + \x0c\n\x05\x05\0\x02\x02\x01\x12\x03\x12\x08\x15\n\x0c\n\x05\x05\0\x02\ + \x02\x02\x12\x03\x12\x18\x19\n\\\n\x04\x05\0\x02\x03\x12\x03\x13\x08\x1c\ + \"O\x20TODO:\x20Rename\x20it\x20to\x20hash\x20aggregation\x20after\x20su\ + pport\x20stream\x20aggregation\x20in\x20TiKV.\n\n\x0c\n\x05\x05\0\x02\ + \x03\x01\x12\x03\x13\x08\x17\n\x0c\n\x05\x05\0\x02\x03\x02\x12\x03\x13\ + \x1a\x1b\n\x0b\n\x04\x05\0\x02\x04\x12\x03\x14\x08\x15\n\x0c\n\x05\x05\0\ + \x02\x04\x01\x12\x03\x14\x08\x10\n\x0c\n\x05\x05\0\x02\x04\x02\x12\x03\ + \x14\x13\x14\n\x0b\n\x04\x05\0\x02\x05\x12\x03\x15\x08\x16\n\x0c\n\x05\ + \x05\0\x02\x05\x01\x12\x03\x15\x08\x11\n\x0c\n\x05\x05\0\x02\x05\x02\x12\ + \x03\x15\x14\x15\n\x0b\n\x04\x05\0\x02\x06\x12\x03\x16\x08\x1a\n\x0c\n\ + \x05\x05\0\x02\x06\x01\x12\x03\x16\x08\x15\n\x0c\n\x05\x05\0\x02\x06\x02\ + \x12\x03\x16\x18\x19\n\x0b\n\x04\x05\0\x02\x07\x12\x03\x17\x08\x1b\n\x0c\ + \n\x05\x05\0\x02\x07\x01\x12\x03\x17\x08\x16\n\x0c\n\x05\x05\0\x02\x07\ + \x02\x12\x03\x17\x19\x1a\n'\n\x02\x04\0\x12\x04\x1b\0%\x01\x1a\x1b\x20It\ + \x20represents\x20a\x20Executor.\n\n\n\n\x03\x04\0\x01\x12\x03\x1b\x08\ + \x10\n\x0b\n\x04\x04\0\x02\0\x12\x03\x1c\x08@\n\x0c\n\x05\x04\0\x02\0\ + \x04\x12\x03\x1c\x08\x10\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03\x1c\x11\x19\ + \n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x1c\x1a\x1c\n\x0c\n\x05\x04\0\x02\0\ + \x03\x12\x03\x1c\x1f\x20\n\x0c\n\x05\x04\0\x02\0\x08\x12\x03\x1c!?\n\x0f\ + \n\x08\x04\0\x02\0\x08\xe7\x07\0\x12\x03\x1c\">\n\x10\n\t\x04\0\x02\0\ + \x08\xe7\x07\0\x02\x12\x03\x1c\"6\n\x11\n\n\x04\0\x02\0\x08\xe7\x07\0\ + \x02\0\x12\x03\x1c\"6\n\x12\n\x0b\x04\0\x02\0\x08\xe7\x07\0\x02\0\x01\ + \x12\x03\x1c#5\n\x10\n\t\x04\0\x02\0\x08\xe7\x07\0\x03\x12\x03\x1c9>\n\ + \x0b\n\x04\x04\0\x02\x01\x12\x03\x1d\x08(\n\x0c\n\x05\x04\0\x02\x01\x04\ + \x12\x03\x1d\x08\x10\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03\x1d\x11\x1a\n\ + \x0c\n\x05\x04\0\x02\x01\x01\x12\x03\x1d\x1b#\n\x0c\n\x05\x04\0\x02\x01\ + \x03\x12\x03\x1d&'\n\x0b\n\x04\x04\0\x02\x02\x12\x03\x1e\x08(\n\x0c\n\ + \x05\x04\0\x02\x02\x04\x12\x03\x1e\x08\x10\n\x0c\n\x05\x04\0\x02\x02\x06\ + \x12\x03\x1e\x11\x1a\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03\x1e\x1b#\n\ + \x0c\n\x05\x04\0\x02\x02\x03\x12\x03\x1e&'\n\x0b\n\x04\x04\0\x02\x03\x12\ + \x03\x1f\x08)\n\x0c\n\x05\x04\0\x02\x03\x04\x12\x03\x1f\x08\x10\n\x0c\n\ + \x05\x04\0\x02\x03\x06\x12\x03\x1f\x11\x1a\n\x0c\n\x05\x04\0\x02\x03\x01\ + \x12\x03\x1f\x1b$\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03\x1f'(\n\x0b\n\ + \x04\x04\0\x02\x04\x12\x03\x20\x08-\n\x0c\n\x05\x04\0\x02\x04\x04\x12\ + \x03\x20\x08\x10\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03\x20\x11\x1c\n\x0c\ + \n\x05\x04\0\x02\x04\x01\x12\x03\x20\x1d(\n\x0c\n\x05\x04\0\x02\x04\x03\ + \x12\x03\x20+,\n\x0b\n\x04\x04\0\x02\x05\x12\x03!\x08\x1f\n\x0c\n\x05\ + \x04\0\x02\x05\x04\x12\x03!\x08\x10\n\x0c\n\x05\x04\0\x02\x05\x06\x12\ + \x03!\x11\x15\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03!\x16\x1a\n\x0c\n\x05\ + \x04\0\x02\x05\x03\x12\x03!\x1d\x1e\n\x0b\n\x04\x04\0\x02\x06\x12\x03\"\ + \x08!\n\x0c\n\x05\x04\0\x02\x06\x04\x12\x03\"\x08\x10\n\x0c\n\x05\x04\0\ + \x02\x06\x06\x12\x03\"\x11\x16\n\x0c\n\x05\x04\0\x02\x06\x01\x12\x03\"\ + \x17\x1c\n\x0c\n\x05\x04\0\x02\x06\x03\x12\x03\"\x1f\x20\n\x0b\n\x04\x04\ + \0\x02\x07\x12\x03#\x08,\n\x0c\n\x05\x04\0\x02\x07\x04\x12\x03#\x08\x10\ + \n\x0c\n\x05\x04\0\x02\x07\x06\x12\x03#\x11\x1c\n\x0c\n\x05\x04\0\x02\ + \x07\x01\x12\x03#\x1d'\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03#*+\n\x0b\n\ + \x04\x04\0\x02\x08\x12\x03$\x08+\n\x0c\n\x05\x04\0\x02\x08\x04\x12\x03$\ + \x08\x10\n\x0c\n\x05\x04\0\x02\x08\x06\x12\x03$\x11\x1b\n\x0c\n\x05\x04\ + \0\x02\x08\x01\x12\x03$\x1c&\n\x0c\n\x05\x04\0\x02\x08\x03\x12\x03$)*\n\ + \n\n\x02\x04\x01\x12\x04'\0+\x01\n\n\n\x03\x04\x01\x01\x12\x03'\x08\x11\ + \n\x0b\n\x04\x04\x01\x02\0\x12\x03(\x08C\n\x0c\n\x05\x04\x01\x02\0\x04\ + \x12\x03(\x08\x10\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03(\x11\x16\n\x0c\n\ + \x05\x04\x01\x02\0\x01\x12\x03(\x17\x1f\n\x0c\n\x05\x04\x01\x02\0\x03\ + \x12\x03(\"#\n\x0c\n\x05\x04\x01\x02\0\x08\x12\x03($B\n\x0f\n\x08\x04\ + \x01\x02\0\x08\xe7\x07\0\x12\x03(%A\n\x10\n\t\x04\x01\x02\0\x08\xe7\x07\ + \0\x02\x12\x03(%9\n\x11\n\n\x04\x01\x02\0\x08\xe7\x07\0\x02\0\x12\x03(%9\ + \n\x12\n\x0b\x04\x01\x02\0\x08\xe7\x07\0\x02\0\x01\x12\x03(&8\n\x10\n\t\ + \x04\x01\x02\0\x08\xe7\x07\0\x03\x12\x03(\n\x0c\n\x05\x04\x01\x02\x02\x04\x12\ + \x03*\x08\x10\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03*\x11\x15\n\x0c\n\ + \x05\x04\x01\x02\x02\x01\x12\x03*\x16\x1a\n\x0c\n\x05\x04\x01\x02\x02\ + \x03\x12\x03*\x1d\x1e\n\x0c\n\x05\x04\x01\x02\x02\x08\x12\x03*\x1f=\n\ + \x0f\n\x08\x04\x01\x02\x02\x08\xe7\x07\0\x12\x03*\x20<\n\x10\n\t\x04\x01\ + \x02\x02\x08\xe7\x07\0\x02\x12\x03*\x204\n\x11\n\n\x04\x01\x02\x02\x08\ + \xe7\x07\0\x02\0\x12\x03*\x204\n\x12\n\x0b\x04\x01\x02\x02\x08\xe7\x07\0\ + \x02\0\x01\x12\x03*!3\n\x10\n\t\x04\x01\x02\x02\x08\xe7\x07\0\x03\x12\ + \x03*7<\n\n\n\x02\x04\x02\x12\x04-\03\x01\n\n\n\x03\x04\x02\x01\x12\x03-\ + \x08\x11\n\x0b\n\x04\x04\x02\x02\0\x12\x03.\x08C\n\x0c\n\x05\x04\x02\x02\ + \0\x04\x12\x03.\x08\x10\n\x0c\n\x05\x04\x02\x02\0\x05\x12\x03.\x11\x16\n\ + \x0c\n\x05\x04\x02\x02\0\x01\x12\x03.\x17\x1f\n\x0c\n\x05\x04\x02\x02\0\ + \x03\x12\x03.\"#\n\x0c\n\x05\x04\x02\x02\0\x08\x12\x03.$B\n\x0f\n\x08\ + \x04\x02\x02\0\x08\xe7\x07\0\x12\x03.%A\n\x10\n\t\x04\x02\x02\0\x08\xe7\ + \x07\0\x02\x12\x03.%9\n\x11\n\n\x04\x02\x02\0\x08\xe7\x07\0\x02\0\x12\ + \x03.%9\n\x12\n\x0b\x04\x02\x02\0\x08\xe7\x07\0\x02\0\x01\x12\x03.&8\n\ + \x10\n\t\x04\x02\x02\0\x08\xe7\x07\0\x03\x12\x03.\n\x0c\n\x05\x04\x02\x02\x03\x04\x12\ + \x031\x08\x10\n\x0c\n\x05\x04\x02\x02\x03\x05\x12\x031\x11\x15\n\x0c\n\ + \x05\x04\x02\x02\x03\x01\x12\x031\x16\x1a\n\x0c\n\x05\x04\x02\x02\x03\ + \x03\x12\x031\x1d\x1e\n\x0c\n\x05\x04\x02\x02\x03\x08\x12\x031\x1f=\n\ + \x0f\n\x08\x04\x02\x02\x03\x08\xe7\x07\0\x12\x031\x20<\n\x10\n\t\x04\x02\ + \x02\x03\x08\xe7\x07\0\x02\x12\x031\x204\n\x11\n\n\x04\x02\x02\x03\x08\ + \xe7\x07\0\x02\0\x12\x031\x204\n\x12\n\x0b\x04\x02\x02\x03\x08\xe7\x07\0\ + \x02\0\x01\x12\x031!3\n\x10\n\t\x04\x02\x02\x03\x08\xe7\x07\0\x03\x12\ + \x0317<\n2\n\x04\x04\x02\x02\x04\x12\x032\x08!\"%\x20check\x20whether\ + \x20it\x20is\x20a\x20unique\x20index.\n\n\x0c\n\x05\x04\x02\x02\x04\x04\ + \x12\x032\x08\x10\n\x0c\n\x05\x04\x02\x02\x04\x05\x12\x032\x11\x15\n\x0c\ + \n\x05\x04\x02\x02\x04\x01\x12\x032\x16\x1c\n\x0c\n\x05\x04\x02\x02\x04\ + \x03\x12\x032\x1f\x20\n\n\n\x02\x04\x03\x12\x045\08\x01\n\n\n\x03\x04\ + \x03\x01\x12\x035\x08\x11\n\x20\n\x04\x04\x03\x02\0\x12\x037\x08%\x1a\ + \x13\x20Where\x20conditions.\n\n\x0c\n\x05\x04\x03\x02\0\x04\x12\x037\ + \x08\x10\n\x0c\n\x05\x04\x03\x02\0\x06\x12\x037\x11\x15\n\x0c\n\x05\x04\ + \x03\x02\0\x01\x12\x037\x16\x20\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x037#$\ + \n\n\n\x02\x04\x04\x12\x04:\0=\x01\n\n\n\x03\x04\x04\x01\x12\x03:\x08\ + \x12\n&\n\x04\x04\x04\x02\0\x12\x03<\x08\x20\x1a\x19\x20Projection\x20ex\ + pressions.\n\n\x0c\n\x05\x04\x04\x02\0\x04\x12\x03<\x08\x10\n\x0c\n\x05\ + \x04\x04\x02\0\x06\x12\x03<\x11\x15\n\x0c\n\x05\x04\x04\x02\0\x01\x12\ + \x03<\x16\x1b\n\x0c\n\x05\x04\x04\x02\0\x03\x12\x03<\x1e\x1f\n\n\n\x02\ + \x04\x05\x12\x04?\0F\x01\n\n\n\x03\x04\x05\x01\x12\x03?\x08\x13\n\x1f\n\ + \x04\x04\x05\x02\0\x12\x03A\x08#\x1a\x12\x20Group\x20by\x20clause.\n\n\ + \x0c\n\x05\x04\x05\x02\0\x04\x12\x03A\x08\x10\n\x0c\n\x05\x04\x05\x02\0\ + \x06\x12\x03A\x11\x15\n\x0c\n\x05\x04\x05\x02\0\x01\x12\x03A\x16\x1e\n\ + \x0c\n\x05\x04\x05\x02\0\x03\x12\x03A!\"\n#\n\x04\x04\x05\x02\x01\x12\ + \x03C\x08#\x1a\x16\x20Aggregate\x20functions.\n\n\x0c\n\x05\x04\x05\x02\ + \x01\x04\x12\x03C\x08\x10\n\x0c\n\x05\x04\x05\x02\x01\x06\x12\x03C\x11\ + \x15\n\x0c\n\x05\x04\x05\x02\x01\x01\x12\x03C\x16\x1e\n\x0c\n\x05\x04\ + \x05\x02\x01\x03\x12\x03C!\"\n-\n\x04\x04\x05\x02\x02\x12\x03E\x08B\x1a\ + \x20\x20If\x20it\x20is\x20a\x20stream\x20aggregation.\n\n\x0c\n\x05\x04\ + \x05\x02\x02\x04\x12\x03E\x08\x10\n\x0c\n\x05\x04\x05\x02\x02\x05\x12\ + \x03E\x11\x15\n\x0c\n\x05\x04\x05\x02\x02\x01\x12\x03E\x16\x1e\n\x0c\n\ + \x05\x04\x05\x02\x02\x03\x12\x03E!\"\n\x0c\n\x05\x04\x05\x02\x02\x08\x12\ + \x03E#A\n\x0f\n\x08\x04\x05\x02\x02\x08\xe7\x07\0\x12\x03E$@\n\x10\n\t\ + \x04\x05\x02\x02\x08\xe7\x07\0\x02\x12\x03E$8\n\x11\n\n\x04\x05\x02\x02\ + \x08\xe7\x07\0\x02\0\x12\x03E$8\n\x12\n\x0b\x04\x05\x02\x02\x08\xe7\x07\ + \0\x02\0\x01\x12\x03E%7\n\x10\n\t\x04\x05\x02\x02\x08\xe7\x07\0\x03\x12\ + \x03E;@\n\n\n\x02\x04\x06\x12\x04H\0L\x01\n\n\n\x03\x04\x06\x01\x12\x03H\ + \x08\x0c\n\x1f\n\x04\x04\x06\x02\0\x12\x03J\x08%\x1a\x12\x20Order\x20by\ + \x20clause.\n\n\x0c\n\x05\x04\x06\x02\0\x04\x12\x03J\x08\x10\n\x0c\n\x05\ + \x04\x06\x02\0\x06\x12\x03J\x11\x17\n\x0c\n\x05\x04\x06\x02\0\x01\x12\ + \x03J\x18\x20\n\x0c\n\x05\x04\x06\x02\0\x03\x12\x03J#$\n\x0b\n\x04\x04\ + \x06\x02\x01\x12\x03K\x08A\n\x0c\n\x05\x04\x06\x02\x01\x04\x12\x03K\x08\ + \x10\n\x0c\n\x05\x04\x06\x02\x01\x05\x12\x03K\x11\x17\n\x0c\n\x05\x04\ + \x06\x02\x01\x01\x12\x03K\x18\x1d\n\x0c\n\x05\x04\x06\x02\x01\x03\x12\ + \x03K\x20!\n\x0c\n\x05\x04\x06\x02\x01\x08\x12\x03K\"@\n\x0f\n\x08\x04\ + \x06\x02\x01\x08\xe7\x07\0\x12\x03K#?\n\x10\n\t\x04\x06\x02\x01\x08\xe7\ + \x07\0\x02\x12\x03K#7\n\x11\n\n\x04\x06\x02\x01\x08\xe7\x07\0\x02\0\x12\ + \x03K#7\n\x12\n\x0b\x04\x06\x02\x01\x08\xe7\x07\0\x02\0\x01\x12\x03K$6\n\ + \x10\n\t\x04\x06\x02\x01\x08\xe7\x07\0\x03\x12\x03K:?\n\n\n\x02\x04\x07\ + \x12\x04N\0Q\x01\n\n\n\x03\x04\x07\x01\x12\x03N\x08\r\n/\n\x04\x04\x07\ + \x02\0\x12\x03P\x08A\x1a\"\x20Limit\x20the\x20result\x20to\x20be\x20retu\ + rned.\n\n\x0c\n\x05\x04\x07\x02\0\x04\x12\x03P\x08\x10\n\x0c\n\x05\x04\ + \x07\x02\0\x05\x12\x03P\x11\x17\n\x0c\n\x05\x04\x07\x02\0\x01\x12\x03P\ + \x18\x1d\n\x0c\n\x05\x04\x07\x02\0\x03\x12\x03P\x20!\n\x0c\n\x05\x04\x07\ + \x02\0\x08\x12\x03P\"@\n\x0f\n\x08\x04\x07\x02\0\x08\xe7\x07\0\x12\x03P#\ + ?\n\x10\n\t\x04\x07\x02\0\x08\xe7\x07\0\x02\x12\x03P#7\n\x11\n\n\x04\x07\ + \x02\0\x08\xe7\x07\0\x02\0\x12\x03P#7\n\x12\n\x0b\x04\x07\x02\0\x08\xe7\ + \x07\0\x02\0\x01\x12\x03P$6\n\x10\n\t\x04\x07\x02\0\x08\xe7\x07\0\x03\ + \x12\x03P:?\n\n\n\x02\x04\x08\x12\x04S\0\\\x01\n\n\n\x03\x04\x08\x01\x12\ + \x03S\x08\x20\n`\n\x04\x04\x08\x02\0\x12\x03U\x08.\x1aS\x20Total\x20time\ + \x20cost\x20in\x20this\x20executor.\x20Includes\x20self\x20time\x20cost\ + \x20and\x20children\x20time\x20cost.\n\n\x0c\n\x05\x04\x08\x02\0\x04\x12\ + \x03U\x08\x10\n\x0c\n\x05\x04\x08\x02\0\x05\x12\x03U\x11\x17\n\x0c\n\x05\ + \x04\x08\x02\0\x01\x12\x03U\x18)\n\x0c\n\x05\x04\x08\x02\0\x03\x12\x03U,\ + -\n<\n\x04\x04\x08\x02\x01\x12\x03X\x08.\x1a/\x20How\x20many\x20rows\x20\ + this\x20executor\x20produced\x20totally.\n\n\x0c\n\x05\x04\x08\x02\x01\ + \x04\x12\x03X\x08\x10\n\x0c\n\x05\x04\x08\x02\x01\x05\x12\x03X\x11\x17\n\ + \x0c\n\x05\x04\x08\x02\x01\x01\x12\x03X\x18)\n\x0c\n\x05\x04\x08\x02\x01\ + \x03\x12\x03X,-\n<\n\x04\x04\x08\x02\x02\x12\x03[\x08+\x1a/\x20How\x20ma\ + ny\x20times\x20executor's\x20`next()`\x20is\x20called.\n\n\x0c\n\x05\x04\ + \x08\x02\x02\x04\x12\x03[\x08\x10\n\x0c\n\x05\x04\x08\x02\x02\x05\x12\ + \x03[\x11\x17\n\x0c\n\x05\x04\x08\x02\x02\x01\x12\x03[\x18&\n\x0c\n\x05\ + \x04\x08\x02\x02\x03\x12\x03[)*\ "; static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy { diff --git a/src/schema.rs b/src/schema.rs index 7ccdb82ed..8db0fe4fd 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -1248,7 +1248,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\ foR\x07columns\x12\x1c\n\x06unique\x18\x04\x20\x01(\x08R\x06uniqueB\x04\ \xc8\xde\x1f\0\"0\n\x08KeyRange\x12\x10\n\x03low\x18\x01\x20\x01(\x0cR\ \x03low\x12\x12\n\x04high\x18\x02\x20\x01(\x0cR\x04highB%\n\x15com.pingc\ - ap.tidb.tipbP\x01\xd0\xe2\x1e\x01\xc8\xe2\x1e\x01\xe0\xe2\x1e\x01J\xe9\ + ap.tidb.tipbP\x01\xc8\xe2\x1e\x01\xd0\xe2\x1e\x01\xe0\xe2\x1e\x01J\xe9\ \x17\n\x06\x12\x04\0\0)\x01\n\x08\n\x01\x0c\x12\x03\0\0\x12\n\x08\n\x01\ \x02\x12\x03\x02\x08\x0c\n\x08\n\x01\x08\x12\x03\x04\0\"\n\x0b\n\x04\x08\ \xe7\x07\0\x12\x03\x04\0\"\n\x0c\n\x05\x08\xe7\x07\0\x02\x12\x03\x04\x07\ diff --git a/src/select.rs b/src/select.rs index cfb69e2e6..da093eb28 100644 --- a/src/select.rs +++ b/src/select.rs @@ -2380,8 +2380,8 @@ static file_descriptor_proto_data: &'static [u8] = b"\ ub.com/pingcap/tipb/sharedbytes.SharedBytes\x12O\n\x13execution_summarie\ s\x18\x08\x20\x03(\x0b2\x1e.tipb.ExecutorExecutionSummaryR\x12executionS\ ummaries\"\x8f\x01\n\x05Chunk\x12T\n\trows_data\x18\x03\x20\x01(\x0cR\ - \x08rowsDataB7\xda\xde\x1f/github.com/pingcap/tipb/sharedbytes.SharedByt\ - es\xc8\xde\x1f\0\x120\n\trows_meta\x18\x04\x20\x03(\x0b2\r.tipb.RowMetaR\ + \x08rowsDataB7\xc8\xde\x1f\0\xda\xde\x1f/github.com/pingcap/tipb/sharedb\ + ytes.SharedBytes\x120\n\trows_meta\x18\x04\x20\x03(\x0b2\r.tipb.RowMetaR\ \x08rowsMetaB\x04\xc8\xde\x1f\0\"E\n\x07RowMeta\x12\x1c\n\x06handle\x18\ \x01\x20\x01(\x03R\x06handleB\x04\xc8\xde\x1f\0\x12\x1c\n\x06length\x18\ \x02\x20\x01(\x03R\x06lengthB\x04\xc8\xde\x1f\0\"\xec\x03\n\nDAGRequest\ @@ -2398,13 +2398,13 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x04\xc8\xde\x1f\0\x12>\n\x1bcollect_execution_summaries\x18\x0c\x20\x01\ (\x08R\x19collectExecutionSummaries\"\xf3\x01\n\x0eStreamResponse\x12!\n\ \x05error\x18\x01\x20\x01(\x0b2\x0b.tipb.ErrorR\x05error\x12K\n\x04data\ - \x18\x03\x20\x01(\x0cR\x04dataB7\xda\xde\x1f/github.com/pingcap/tipb/sha\ - redbytes.SharedBytes\xc8\xde\x1f\0\x12'\n\x08warnings\x18\x04\x20\x03(\ + \x18\x03\x20\x01(\x0cR\x04dataB7\xc8\xde\x1f\0\xda\xde\x1f/github.com/pi\ + ngcap/tipb/sharedbytes.SharedBytes\x12'\n\x08warnings\x18\x04\x20\x03(\ \x0b2\x0b.tipb.ErrorR\x08warnings\x12#\n\routput_counts\x18\x05\x20\x03(\ \x03R\x0coutputCounts\x12#\n\rwarning_count\x18\x06\x20\x01(\x03R\x0cwar\ ningCount*,\n\nEncodeType\x12\x0f\n\x0bTypeDefault\x10\0\x12\r\n\tTypeAr\ - row\x10\x01B%\n\x15com.pingcap.tidb.tipbP\x01\xc8\xe2\x1e\x01\xd0\xe2\ - \x1e\x01\xe0\xe2\x1e\x01J\xc41\n\x06\x12\x04\0\0y\x01\n\x08\n\x01\x0c\ + row\x10\x01B%\n\x15com.pingcap.tidb.tipbP\x01\xd0\xe2\x1e\x01\xe0\xe2\ + \x1e\x01\xc8\xe2\x1e\x01J\xc41\n\x06\x12\x04\0\0y\x01\n\x08\n\x01\x0c\ \x12\x03\0\0\x12\n\x08\n\x01\x02\x12\x03\x02\x08\x0c\n\x08\n\x01\x08\x12\ \x03\x04\0\"\n\x0b\n\x04\x08\xe7\x07\0\x12\x03\x04\0\"\n\x0c\n\x05\x08\ \xe7\x07\0\x02\x12\x03\x04\x07\x1a\n\r\n\x06\x08\xe7\x07\0\x02\0\x12\x03\