From afa63a9b2b6ed403902a24a874ef076390f4c072 Mon Sep 17 00:00:00 2001 From: Rafa <1474268802@qq.com> Date: Mon, 17 Aug 2026 16:12:59 +0800 Subject: [PATCH] tipb: add SPFresh ANN observability stats Signed-off-by: Rafa <1474268802@qq.com> --- go-tipb/spfresh.pb.go | 921 +++++++++++++++++++++++++++++++++++----- go-tipb/spfresh_test.go | 98 ++++- proto/spfresh.proto | 26 ++ scripts/proto.lock | 112 +++++ 4 files changed, 1060 insertions(+), 97 deletions(-) diff --git a/go-tipb/spfresh.pb.go b/go-tipb/spfresh.pb.go index d4350d3e..93598c63 100644 --- a/go-tipb/spfresh.pb.go +++ b/go-tipb/spfresh.pb.go @@ -750,6 +750,9 @@ type SPFreshSearchStats struct { // Process-local partition cache stats for this request. PartitionCacheHits uint64 `protobuf:"varint,14,opt,name=partition_cache_hits,json=partitionCacheHits,proto3" json:"partition_cache_hits,omitempty"` PartitionCacheMisses uint64 `protobuf:"varint,15,opt,name=partition_cache_misses,json=partitionCacheMisses,proto3" json:"partition_cache_misses,omitempty"` + // When present, ann contains a complete report whose zero values are + // explicitly reported zeros. + Ann *SPFreshANNStats `protobuf:"bytes,16,opt,name=ann,proto3" json:"ann,omitempty"` } func (m *SPFreshSearchStats) Reset() { *m = SPFreshSearchStats{} } @@ -890,6 +893,169 @@ func (m *SPFreshSearchStats) GetPartitionCacheMisses() uint64 { return 0 } +func (m *SPFreshSearchStats) GetAnn() *SPFreshANNStats { + if m != nil { + return m.Ann + } + return nil +} + +type SPFreshANNStats struct { + ExactFallback bool `protobuf:"varint,1,opt,name=exact_fallback,json=exactFallback,proto3" json:"exact_fallback,omitempty"` + SearchMicros uint64 `protobuf:"varint,2,opt,name=search_micros,json=searchMicros,proto3" json:"search_micros,omitempty"` + PartitionsScanned uint64 `protobuf:"varint,3,opt,name=partitions_scanned,json=partitionsScanned,proto3" json:"partitions_scanned,omitempty"` + CentroidsScanned uint64 `protobuf:"varint,4,opt,name=centroids_scanned,json=centroidsScanned,proto3" json:"centroids_scanned,omitempty"` + LeafVectorsScanned uint64 `protobuf:"varint,5,opt,name=leaf_vectors_scanned,json=leafVectorsScanned,proto3" json:"leaf_vectors_scanned,omitempty"` + RoughCandidates uint64 `protobuf:"varint,6,opt,name=rough_candidates,json=roughCandidates,proto3" json:"rough_candidates,omitempty"` + BoundPrunedCandidates uint64 `protobuf:"varint,7,opt,name=bound_pruned_candidates,json=boundPrunedCandidates,proto3" json:"bound_pruned_candidates,omitempty"` + RerankCandidates uint64 `protobuf:"varint,8,opt,name=rerank_candidates,json=rerankCandidates,proto3" json:"rerank_candidates,omitempty"` + ExactEvaluated uint64 `protobuf:"varint,9,opt,name=exact_evaluated,json=exactEvaluated,proto3" json:"exact_evaluated,omitempty"` + PartitionCacheHits uint64 `protobuf:"varint,10,opt,name=partition_cache_hits,json=partitionCacheHits,proto3" json:"partition_cache_hits,omitempty"` + PartitionCacheMisses uint64 `protobuf:"varint,11,opt,name=partition_cache_misses,json=partitionCacheMisses,proto3" json:"partition_cache_misses,omitempty"` + PartitionCacheLookupMicros uint64 `protobuf:"varint,12,opt,name=partition_cache_lookup_micros,json=partitionCacheLookupMicros,proto3" json:"partition_cache_lookup_micros,omitempty"` + PartitionCacheMissLoadMicros uint64 `protobuf:"varint,13,opt,name=partition_cache_miss_load_micros,json=partitionCacheMissLoadMicros,proto3" json:"partition_cache_miss_load_micros,omitempty"` + TableLookupMicros uint64 `protobuf:"varint,14,opt,name=table_lookup_micros,json=tableLookupMicros,proto3" json:"table_lookup_micros,omitempty"` + RerankMicros uint64 `protobuf:"varint,15,opt,name=rerank_micros,json=rerankMicros,proto3" json:"rerank_micros,omitempty"` +} + +func (m *SPFreshANNStats) Reset() { *m = SPFreshANNStats{} } +func (m *SPFreshANNStats) String() string { return proto.CompactTextString(m) } +func (*SPFreshANNStats) ProtoMessage() {} +func (*SPFreshANNStats) Descriptor() ([]byte, []int) { + return fileDescriptor_aabe6432836b2ba5, []int{8} +} +func (m *SPFreshANNStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SPFreshANNStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SPFreshANNStats.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 *SPFreshANNStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_SPFreshANNStats.Merge(m, src) +} +func (m *SPFreshANNStats) XXX_Size() int { + return m.Size() +} +func (m *SPFreshANNStats) XXX_DiscardUnknown() { + xxx_messageInfo_SPFreshANNStats.DiscardUnknown(m) +} + +var xxx_messageInfo_SPFreshANNStats proto.InternalMessageInfo + +func (m *SPFreshANNStats) GetExactFallback() bool { + if m != nil { + return m.ExactFallback + } + return false +} + +func (m *SPFreshANNStats) GetSearchMicros() uint64 { + if m != nil { + return m.SearchMicros + } + return 0 +} + +func (m *SPFreshANNStats) GetPartitionsScanned() uint64 { + if m != nil { + return m.PartitionsScanned + } + return 0 +} + +func (m *SPFreshANNStats) GetCentroidsScanned() uint64 { + if m != nil { + return m.CentroidsScanned + } + return 0 +} + +func (m *SPFreshANNStats) GetLeafVectorsScanned() uint64 { + if m != nil { + return m.LeafVectorsScanned + } + return 0 +} + +func (m *SPFreshANNStats) GetRoughCandidates() uint64 { + if m != nil { + return m.RoughCandidates + } + return 0 +} + +func (m *SPFreshANNStats) GetBoundPrunedCandidates() uint64 { + if m != nil { + return m.BoundPrunedCandidates + } + return 0 +} + +func (m *SPFreshANNStats) GetRerankCandidates() uint64 { + if m != nil { + return m.RerankCandidates + } + return 0 +} + +func (m *SPFreshANNStats) GetExactEvaluated() uint64 { + if m != nil { + return m.ExactEvaluated + } + return 0 +} + +func (m *SPFreshANNStats) GetPartitionCacheHits() uint64 { + if m != nil { + return m.PartitionCacheHits + } + return 0 +} + +func (m *SPFreshANNStats) GetPartitionCacheMisses() uint64 { + if m != nil { + return m.PartitionCacheMisses + } + return 0 +} + +func (m *SPFreshANNStats) GetPartitionCacheLookupMicros() uint64 { + if m != nil { + return m.PartitionCacheLookupMicros + } + return 0 +} + +func (m *SPFreshANNStats) GetPartitionCacheMissLoadMicros() uint64 { + if m != nil { + return m.PartitionCacheMissLoadMicros + } + return 0 +} + +func (m *SPFreshANNStats) GetTableLookupMicros() uint64 { + if m != nil { + return m.TableLookupMicros + } + return 0 +} + +func (m *SPFreshANNStats) GetRerankMicros() uint64 { + if m != nil { + return m.RerankMicros + } + return 0 +} + func init() { proto.RegisterEnum("tipb.SPFreshTruncateMode", SPFreshTruncateMode_name, SPFreshTruncateMode_value) proto.RegisterEnum("tipb.SPFreshFilterExprColumnSource", SPFreshFilterExprColumnSource_name, SPFreshFilterExprColumnSource_value) @@ -902,107 +1068,123 @@ func init() { proto.RegisterType((*SPFreshSearchResult)(nil), "tipb.SPFreshSearchResult") proto.RegisterType((*SPFreshSearchRow)(nil), "tipb.SPFreshSearchRow") proto.RegisterType((*SPFreshSearchStats)(nil), "tipb.SPFreshSearchStats") + proto.RegisterType((*SPFreshANNStats)(nil), "tipb.SPFreshANNStats") } func init() { proto.RegisterFile("spfresh.proto", fileDescriptor_aabe6432836b2ba5) } var fileDescriptor_aabe6432836b2ba5 = []byte{ - // 1514 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4d, 0x6f, 0x24, 0x39, - 0x19, 0x4e, 0x25, 0x9d, 0xa4, 0xe2, 0xfe, 0xaa, 0xb8, 0x67, 0xb2, 0xbd, 0x19, 0x36, 0xdb, 0xf4, - 0x20, 0x6d, 0x2b, 0xbb, 0xdb, 0x40, 0x0f, 0x20, 0xc1, 0x48, 0x48, 0x9b, 0xec, 0x46, 0xd3, 0xd9, - 0x19, 0x66, 0x70, 0xc2, 0x22, 0xed, 0xc5, 0x72, 0xaa, 0xde, 0x4e, 0xac, 0x54, 0xd9, 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 0xa2, 0xea, 0x69, 0x25, 0xac, 0x47, 0x0d, 0xd2, - 0x14, 0x72, 0xe9, 0x2e, 0xa4, 0x56, 0x02, 0x6e, 0xd5, 0x72, 0xfe, 0x29, 0x17, 0x13, 0x96, 0xf2, - 0xc4, 0x61, 0x9a, 0x34, 0xb5, 0x51, 0x3c, 0x36, 0xb4, 0xf4, 0x48, 0xf6, 0x41, 0x29, 0xdb, 0x34, - 0xa4, 0xa2, 0xf6, 0x36, 0xee, 0x05, 0x8b, 0x0b, 0x77, 0xff, 0x12, 0xa0, 0x0f, 0xde, 0x51, 0x07, - 0xb6, 0x64, 0x7d, 0xdd, 0x94, 0xad, 0x6f, 0x83, 0x84, 0x1e, 0x18, 0x26, 0xf8, 0x29, 0xda, 0xd2, - 0x72, 0xac, 0x62, 0x70, 0xf9, 0xd5, 0x18, 0x3c, 0x7e, 0x6f, 0x4d, 0x9d, 0x39, 0x29, 0x29, 0x4c, - 0x70, 0x1f, 0xa1, 0x11, 0x87, 0x34, 0xa1, 0x66, 0x9a, 0x83, 0xcb, 0xba, 0xea, 0xa0, 0xe9, 0x37, - 0x38, 0xb1, 0xf8, 0xf9, 0x34, 0x07, 0xb2, 0x33, 0x2a, 0x3f, 0xbb, 0x7f, 0x40, 0x0f, 0x57, 0xda, - 0xb3, 0xaf, 0x18, 0xfc, 0x73, 0xb4, 0xad, 0xc7, 0x71, 0x0c, 0x5a, 0xbb, 0x03, 0x56, 0x57, 0x72, - 0x6b, 0xa6, 0x1e, 0xa7, 0xe6, 0xd9, 0x1a, 0x29, 0xb5, 0xf8, 0x31, 0xda, 0x74, 0x31, 0x71, 0x67, - 0xaf, 0x0e, 0xaa, 0x45, 0x13, 0xb1, 0xd0, 0xb3, 0x35, 0xe2, 0xb9, 0xa3, 0x10, 0x6d, 0x29, 0x67, - 0xd9, 0xfd, 0x67, 0x80, 0x5a, 0xf7, 0xec, 0x88, 0x0f, 0x51, 0x45, 0xc9, 0x5b, 0xeb, 0xda, 0x76, - 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ped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x4d, 0x4f, 0x1c, 0xc9, + 0x19, 0x66, 0x60, 0x80, 0xe6, 0x9d, 0xaf, 0x9e, 0xc2, 0x78, 0x67, 0xf1, 0x9a, 0x25, 0x90, 0xc8, + 0x13, 0xbc, 0x4b, 0x36, 0x38, 0x89, 0x94, 0x58, 0x8a, 0x64, 0x58, 0x23, 0xc3, 0xfa, 0x83, 0x34, + 0xc4, 0x91, 0xf6, 0x52, 0x2a, 0xba, 0xdf, 0x81, 0x12, 0x3d, 0x55, 0x4d, 0x55, 0xcd, 0xc0, 0x58, + 0xca, 0x0f, 0xc8, 0x2d, 0xc7, 0xdc, 0x73, 0xc9, 0x3f, 0x48, 0x6e, 0xb9, 0xe6, 0xb8, 0x87, 0x1c, + 0xf6, 0x18, 0xd9, 0xc7, 0xe4, 0x47, 0x44, 0x55, 0xd5, 0x3d, 0x5f, 0x06, 0x0e, 0x91, 0x72, 0xeb, + 0x7a, 0x9e, 0xe7, 0xad, 0x8f, 0xb7, 0xde, 0x8f, 0x6a, 0xa8, 0xe9, 0xac, 0xa3, 0x50, 0x9f, 0x6f, + 0x67, 0x4a, 0x1a, 0x49, 0xca, 0x86, 0x67, 0xa7, 0xab, 0x21, 0x5e, 0x67, 0x0a, 0xb5, 0xe6, 0x52, + 0x78, 0x7c, 0xb5, 0xaa, 0xe3, 0x73, 0xec, 0xb2, 0xe1, 0x08, 0x53, 0x8c, 0x4d, 0x3e, 0xba, 0x77, + 0x26, 0xcf, 0xa4, 0xfb, 0xfc, 0x89, 0xfd, 0xca, 0xd1, 0x86, 0xea, 0x69, 0xe3, 0x3e, 0x3d, 0xb0, + 0x21, 0xe1, 0xfe, 0xf1, 0xd1, 0xbe, 0x5d, 0xeb, 0x04, 0x99, 0x4a, 0xe4, 0x95, 0x88, 0xf0, 0xb2, + 0x87, 0xda, 0x90, 0xcf, 0x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dd, 0x12, 0xc3, 0xbe, 0xe7, + 0x76, 0xb8, 0x67, 0xb7, 0xfd, 0x39, 0x3c, 0x98, 0xc6, 0x26, 0x27, 0x7b, 0x30, 0xfc, 0xfd, 0x3c, + 0xb0, 0xf5, 0x78, 0x4f, 0x2a, 0xd5, 0xcb, 0xac, 0xc3, 0xc3, 0xbf, 0xee, 0x93, 0xcf, 0x86, 0xef, + 0xa5, 0xe2, 0x11, 0x72, 0x22, 0xe5, 0x4b, 0xa6, 0xce, 0x30, 0xfc, 0xdb, 0xfe, 0xee, 0x2f, 0xbf, + 0xff, 0x4b, 0x50, 0xfa, 0xc7, 0xfb, 0xb5, 0xd2, 0x77, 0xef, 0xd7, 0x4a, 0xff, 0x7a, 0xbf, 0x56, + 0xfa, 0xe3, 0x87, 0xb5, 0x99, 0x3f, 0x7d, 0x58, 0x9b, 0xf9, 0xee, 0xc3, 0xda, 0xcc, 0xf7, 0x1f, + 0xd6, 0x66, 0x60, 0x25, 0x96, 0xdd, 0xed, 0x8c, 0x8b, 0xb3, 0x98, 0x65, 0xdb, 0x86, 0x27, 0xa7, + 0xae, 0xcc, 0x1c, 0x95, 0x4e, 0x17, 0xdc, 0xbf, 0xef, 0x93, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, + 0x01, 0xbf, 0x23, 0xe6, 0x67, 0x0f, 0x00, 0x00, } func (m *SPFreshTeardownRequest) Marshal() (dAtA []byte, err error) { @@ -1528,6 +1710,20 @@ func (m *SPFreshSearchStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.Ann != nil { + { + size, err := m.Ann.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSpfresh(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } if m.PartitionCacheMisses != 0 { i = encodeVarintSpfresh(dAtA, i, uint64(m.PartitionCacheMisses)) i-- @@ -1612,6 +1808,109 @@ func (m *SPFreshSearchStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *SPFreshANNStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SPFreshANNStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SPFreshANNStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.RerankMicros != 0 { + i = encodeVarintSpfresh(dAtA, i, uint64(m.RerankMicros)) + i-- + dAtA[i] = 0x78 + } + if m.TableLookupMicros != 0 { + i = encodeVarintSpfresh(dAtA, i, uint64(m.TableLookupMicros)) + i-- + dAtA[i] = 0x70 + } + if m.PartitionCacheMissLoadMicros != 0 { + i = encodeVarintSpfresh(dAtA, i, uint64(m.PartitionCacheMissLoadMicros)) + i-- + dAtA[i] = 0x68 + } + if m.PartitionCacheLookupMicros != 0 { + i = encodeVarintSpfresh(dAtA, i, uint64(m.PartitionCacheLookupMicros)) + i-- + dAtA[i] = 0x60 + } + if m.PartitionCacheMisses != 0 { + i = encodeVarintSpfresh(dAtA, i, uint64(m.PartitionCacheMisses)) + i-- + dAtA[i] = 0x58 + } + if m.PartitionCacheHits != 0 { + i = encodeVarintSpfresh(dAtA, i, uint64(m.PartitionCacheHits)) + i-- + dAtA[i] = 0x50 + } + if m.ExactEvaluated != 0 { + i = encodeVarintSpfresh(dAtA, i, uint64(m.ExactEvaluated)) + i-- + dAtA[i] = 0x48 + } + if m.RerankCandidates != 0 { + i = encodeVarintSpfresh(dAtA, i, uint64(m.RerankCandidates)) + i-- + dAtA[i] = 0x40 + } + if m.BoundPrunedCandidates != 0 { + i = encodeVarintSpfresh(dAtA, i, uint64(m.BoundPrunedCandidates)) + i-- + dAtA[i] = 0x38 + } + if m.RoughCandidates != 0 { + i = encodeVarintSpfresh(dAtA, i, uint64(m.RoughCandidates)) + i-- + dAtA[i] = 0x30 + } + if m.LeafVectorsScanned != 0 { + i = encodeVarintSpfresh(dAtA, i, uint64(m.LeafVectorsScanned)) + i-- + dAtA[i] = 0x28 + } + if m.CentroidsScanned != 0 { + i = encodeVarintSpfresh(dAtA, i, uint64(m.CentroidsScanned)) + i-- + dAtA[i] = 0x20 + } + if m.PartitionsScanned != 0 { + i = encodeVarintSpfresh(dAtA, i, uint64(m.PartitionsScanned)) + i-- + dAtA[i] = 0x18 + } + if m.SearchMicros != 0 { + i = encodeVarintSpfresh(dAtA, i, uint64(m.SearchMicros)) + i-- + dAtA[i] = 0x10 + } + if m.ExactFallback { + i-- + if m.ExactFallback { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func encodeVarintSpfresh(dAtA []byte, offset int, v uint64) int { offset -= sovSpfresh(v) base := offset @@ -1900,6 +2199,64 @@ func (m *SPFreshSearchStats) Size() (n int) { if m.PartitionCacheMisses != 0 { n += 1 + sovSpfresh(uint64(m.PartitionCacheMisses)) } + if m.Ann != nil { + l = m.Ann.Size() + n += 2 + l + sovSpfresh(uint64(l)) + } + return n +} + +func (m *SPFreshANNStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ExactFallback { + n += 2 + } + if m.SearchMicros != 0 { + n += 1 + sovSpfresh(uint64(m.SearchMicros)) + } + if m.PartitionsScanned != 0 { + n += 1 + sovSpfresh(uint64(m.PartitionsScanned)) + } + if m.CentroidsScanned != 0 { + n += 1 + sovSpfresh(uint64(m.CentroidsScanned)) + } + if m.LeafVectorsScanned != 0 { + n += 1 + sovSpfresh(uint64(m.LeafVectorsScanned)) + } + if m.RoughCandidates != 0 { + n += 1 + sovSpfresh(uint64(m.RoughCandidates)) + } + if m.BoundPrunedCandidates != 0 { + n += 1 + sovSpfresh(uint64(m.BoundPrunedCandidates)) + } + if m.RerankCandidates != 0 { + n += 1 + sovSpfresh(uint64(m.RerankCandidates)) + } + if m.ExactEvaluated != 0 { + n += 1 + sovSpfresh(uint64(m.ExactEvaluated)) + } + if m.PartitionCacheHits != 0 { + n += 1 + sovSpfresh(uint64(m.PartitionCacheHits)) + } + if m.PartitionCacheMisses != 0 { + n += 1 + sovSpfresh(uint64(m.PartitionCacheMisses)) + } + if m.PartitionCacheLookupMicros != 0 { + n += 1 + sovSpfresh(uint64(m.PartitionCacheLookupMicros)) + } + if m.PartitionCacheMissLoadMicros != 0 { + n += 1 + sovSpfresh(uint64(m.PartitionCacheMissLoadMicros)) + } + if m.TableLookupMicros != 0 { + n += 1 + sovSpfresh(uint64(m.TableLookupMicros)) + } + if m.RerankMicros != 0 { + n += 1 + sovSpfresh(uint64(m.RerankMicros)) + } return n } @@ -3531,6 +3888,378 @@ func (m *SPFreshSearchStats) Unmarshal(dAtA []byte) error { break } } + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ann", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpfresh + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSpfresh + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSpfresh + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ann == nil { + m.Ann = &SPFreshANNStats{} + } + if err := m.Ann.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSpfresh(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSpfresh + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SPFreshANNStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpfresh + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SPFreshANNStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SPFreshANNStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExactFallback", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpfresh + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ExactFallback = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SearchMicros", wireType) + } + m.SearchMicros = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpfresh + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SearchMicros |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PartitionsScanned", wireType) + } + m.PartitionsScanned = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpfresh + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PartitionsScanned |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CentroidsScanned", wireType) + } + m.CentroidsScanned = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpfresh + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CentroidsScanned |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LeafVectorsScanned", wireType) + } + m.LeafVectorsScanned = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpfresh + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LeafVectorsScanned |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RoughCandidates", wireType) + } + m.RoughCandidates = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpfresh + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RoughCandidates |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BoundPrunedCandidates", wireType) + } + m.BoundPrunedCandidates = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpfresh + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BoundPrunedCandidates |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RerankCandidates", wireType) + } + m.RerankCandidates = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpfresh + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RerankCandidates |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExactEvaluated", wireType) + } + m.ExactEvaluated = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpfresh + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ExactEvaluated |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PartitionCacheHits", wireType) + } + m.PartitionCacheHits = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpfresh + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PartitionCacheHits |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PartitionCacheMisses", wireType) + } + m.PartitionCacheMisses = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpfresh + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PartitionCacheMisses |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PartitionCacheLookupMicros", wireType) + } + m.PartitionCacheLookupMicros = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpfresh + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PartitionCacheLookupMicros |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PartitionCacheMissLoadMicros", wireType) + } + m.PartitionCacheMissLoadMicros = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpfresh + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PartitionCacheMissLoadMicros |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TableLookupMicros", wireType) + } + m.TableLookupMicros = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpfresh + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TableLookupMicros |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RerankMicros", wireType) + } + m.RerankMicros = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpfresh + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RerankMicros |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipSpfresh(dAtA[iNdEx:]) diff --git a/go-tipb/spfresh_test.go b/go-tipb/spfresh_test.go index 675817b9..7bbf06b7 100644 --- a/go-tipb/spfresh_test.go +++ b/go-tipb/spfresh_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - "github.com/gogo/protobuf/proto" + "github.com/golang/protobuf/proto" ) func TestSPFreshFilterExprColumnSourceWireValues(t *testing.T) { @@ -110,6 +110,102 @@ func TestSPFreshSearchResponseResultIsExclusive(t *testing.T) { } } +func TestSPFreshANNStatsWireRoundTrip(t *testing.T) { + tests := []struct { + name string + want *SPFreshSearchStats + }{ + { + name: "absent", + want: &SPFreshSearchStats{PartitionsScanned: 1}, + }, + { + name: "present_zero", + want: &SPFreshSearchStats{ + PartitionsScanned: 1, + Ann: &SPFreshANNStats{}, + }, + }, + { + name: "all_fields", + want: &SPFreshSearchStats{Ann: &SPFreshANNStats{ + ExactFallback: true, + SearchMicros: uint64(1)<<63 | 1, + PartitionsScanned: 18, + CentroidsScanned: 120, + LeafVectorsScanned: 1460, + RoughCandidates: 200, + BoundPrunedCandidates: 76, + RerankCandidates: 124, + ExactEvaluated: 124, + PartitionCacheHits: 15, + PartitionCacheMisses: 3, + PartitionCacheLookupMicros: uint64(1)<<63 | 12, + PartitionCacheMissLoadMicros: 2800, + TableLookupMicros: 2400, + RerankMicros: 700, + }}, + }, + } + + for _, test := range tests { + t.Run(test.name, func(t *testing.T) { + encoded, err := proto.Marshal(test.want) + if err != nil { + t.Fatalf("proto.Marshal(SPFreshSearchStats) failed: %v", err) + } + var decoded SPFreshSearchStats + if err := proto.Unmarshal(encoded, &decoded); err != nil { + t.Fatalf("proto.Unmarshal(SPFreshSearchStats) failed: %v", err) + } + if !proto.Equal(&decoded, test.want) { + t.Fatalf("SPFreshSearchStats round trip = %v, want %v", &decoded, test.want) + } + if got, want := decoded.GetAnn() != nil, test.want.GetAnn() != nil; got != want { + t.Fatalf("SPFreshSearchStats.GetAnn() presence = %t, want %t", got, want) + } + }) + } +} + +func TestSPFreshSearchStatsFieldNumbers(t *testing.T) { + want := map[string]int{ + "partitions_scanned": 1, + "vectors_scanned": 2, + "table_lookup_keys": 3, + "table_lookup_bytes": 4, + "permit_micros": 5, + "config_micros": 6, + "index_open_micros": 7, + "search_micros": 8, + "table_lookup_micros": 9, + "tikv_client_rpc_count": 10, + "tikv_client_rpc_micros": 11, + "read_only": 12, + "oversample_factor": 13, + "partition_cache_hits": 14, + "partition_cache_misses": 15, + "ann": 16, + } + + fields := proto.MessageReflect(&SPFreshSearchStats{}).Descriptor().Fields() + got := make(map[string]int, fields.Len()) + for i := 0; i < fields.Len(); i++ { + field := fields.Get(i) + got[string(field.Name())] = int(field.Number()) + } + for name, wantNumber := range want { + gotNumber, ok := got[name] + if !ok { + t.Errorf("SPFreshSearchStats is missing field %q", name) + continue + } + if gotNumber != wantNumber { + t.Errorf("SPFreshSearchStats field %q number = %d, want %d", name, gotNumber, wantNumber) + } + } +} + func TestSPFreshIndexCorruptionCode(t *testing.T) { if got := int32(SPFreshErrorCode_SPFreshIndexCorruption); got != 9015 { t.Fatalf("SPFreshIndexCorruption code = %d, want 9015", got) diff --git a/proto/spfresh.proto b/proto/spfresh.proto index b5d53f83..b01343f9 100644 --- a/proto/spfresh.proto +++ b/proto/spfresh.proto @@ -148,4 +148,30 @@ message SPFreshSearchStats { // Process-local partition cache stats for this request. uint64 partition_cache_hits = 14; uint64 partition_cache_misses = 15; + + // When present, ann contains a complete report whose zero values are + // explicitly reported zeros. + SPFreshANNStats ann = 16; +} + +message SPFreshANNStats { + bool exact_fallback = 1; + + uint64 search_micros = 2; + uint64 partitions_scanned = 3; + uint64 centroids_scanned = 4; + uint64 leaf_vectors_scanned = 5; + + uint64 rough_candidates = 6; + uint64 bound_pruned_candidates = 7; + uint64 rerank_candidates = 8; + uint64 exact_evaluated = 9; + + uint64 partition_cache_hits = 10; + uint64 partition_cache_misses = 11; + uint64 partition_cache_lookup_micros = 12; + uint64 partition_cache_miss_load_micros = 13; + + uint64 table_lookup_micros = 14; + uint64 rerank_micros = 15; } diff --git a/scripts/proto.lock b/scripts/proto.lock index cdc92916..122917a9 100644 --- a/scripts/proto.lock +++ b/scripts/proto.lock @@ -963,6 +963,10 @@ { "name": "TypeIndexLookUp", "integer": 20 + }, + { + "name": "TypeExplainForConnection", + "integer": 21 } ] }, @@ -1474,6 +1478,12 @@ "name": "parent_idx", "type": "uint32", "optional": true + }, + { + "id": 26, + "name": "explain_for_connection", + "type": "ExplainForConnection", + "optional": true } ] }, @@ -2883,6 +2893,23 @@ } ] }, + { + "name": "ExplainForConnection", + "fields": [ + { + "id": 1, + "name": "connection_id", + "type": "uint64", + "optional": true, + "options": [ + { + "name": "(gogoproto.nullable)", + "value": "false" + } + ] + } + ] + }, { "name": "ExecutorExecutionSummary", "fields": [ @@ -8857,6 +8884,91 @@ "id": 15, "name": "partition_cache_misses", "type": "uint64" + }, + { + "id": 16, + "name": "ann", + "type": "SPFreshANNStats" + } + ] + }, + { + "name": "SPFreshANNStats", + "fields": [ + { + "id": 1, + "name": "exact_fallback", + "type": "bool" + }, + { + "id": 2, + "name": "search_micros", + "type": "uint64" + }, + { + "id": 3, + "name": "partitions_scanned", + "type": "uint64" + }, + { + "id": 4, + "name": "centroids_scanned", + "type": "uint64" + }, + { + "id": 5, + "name": "leaf_vectors_scanned", + "type": "uint64" + }, + { + "id": 6, + "name": "rough_candidates", + "type": "uint64" + }, + { + "id": 7, + "name": "bound_pruned_candidates", + "type": "uint64" + }, + { + "id": 8, + "name": "rerank_candidates", + "type": "uint64" + }, + { + "id": 9, + "name": "exact_evaluated", + "type": "uint64" + }, + { + "id": 10, + "name": "partition_cache_hits", + "type": "uint64" + }, + { + "id": 11, + "name": "partition_cache_misses", + "type": "uint64" + }, + { + "id": 12, + "name": "partition_cache_lookup_micros", + "type": "uint64" + }, + { + "id": 13, + "name": "partition_cache_miss_load_micros", + "type": "uint64" + }, + { + "id": 14, + "name": "table_lookup_micros", + "type": "uint64" + }, + { + "id": 15, + "name": "rerank_micros", + "type": "uint64" } ] }