From 4bae80bb4015a4b66128539bef75c280af63984a Mon Sep 17 00:00:00 2001 From: iwanghc Date: Mon, 10 Nov 2025 14:19:41 +0800 Subject: [PATCH 1/4] feat: add GetSelectivityOfSQLColumns method to Plugin and Driver interfaces, and update proto definitions --- sqle/driver/plugin_interface.go | 1 + sqle/driver/v2/driver_interface.go | 1 + sqle/driver/v2/proto/driver_v2.proto | 15 +++++++++++++++ 3 files changed, 17 insertions(+) diff --git a/sqle/driver/plugin_interface.go b/sqle/driver/plugin_interface.go index cc158da3b..90990ce89 100644 --- a/sqle/driver/plugin_interface.go +++ b/sqle/driver/plugin_interface.go @@ -51,6 +51,7 @@ type Plugin interface { Backup(ctx context.Context, backupStrategy string, sql string, backupMaxRows uint64) (backupSqls []string, executeResult string, err error) RecommendBackupStrategy(ctx context.Context, sql string) (*RecommendBackupStrategyRes, error) + GetSelectivityOfSQLColumns(ctx context.Context, sql string) (map[string] /*table name*/ map[string] /*column name*/ float32, error) } type RecommendBackupStrategyRes struct { diff --git a/sqle/driver/v2/driver_interface.go b/sqle/driver/v2/driver_interface.go index f0c927238..cf0fa545c 100644 --- a/sqle/driver/v2/driver_interface.go +++ b/sqle/driver/v2/driver_interface.go @@ -99,6 +99,7 @@ type Driver interface { Backup(ctx context.Context, req *BackupReq) (*BackupRes, error) RecommendBackupStrategy(ctx context.Context, req *RecommendBackupStrategyReq) (*RecommendBackupStrategyRes, error) + GetSelectivityOfSQLColumns(ctx context.Context, sql string) (map[string] /*table name*/ map[string] /*column name*/ float32, error) } const ( diff --git a/sqle/driver/v2/proto/driver_v2.proto b/sqle/driver/v2/proto/driver_v2.proto index d15c66f6d..febbbb321 100644 --- a/sqle/driver/v2/proto/driver_v2.proto +++ b/sqle/driver/v2/proto/driver_v2.proto @@ -39,6 +39,7 @@ service Driver { rpc EstimateSQLAffectRows(EstimateSQLAffectRowsRequest) returns (EstimateSQLAffectRowsResponse); // Introduced from SQLE v2.2304.0 rpc GetDatabaseObjectDDL(DatabaseObjectInfoRequest) returns (DatabaseSchemaObjectResponse); rpc GetDatabaseDiffModifySQL(DatabaseDiffModifyRequest) returns (DatabaseDiffModifyRponse); + rpc GetSelectivityOfSQLColumns(GetSelectivityOfSQLColumnsRequest) returns (GetSelectivityOfSQLColumnsResponse); } message Empty {} @@ -476,4 +477,18 @@ message DatabaseDiffModifyRponse { message SchemaDiffModify { string schemaName = 1; repeated string modifySQLs = 2; +} + +message GetSelectivityOfSQLColumnsRequest { + Session session = 1; + string sql = 2; +} + +message SelectivityOfSQLColumns { + string tableName = 1; + map selectivityOfColumns = 2; +} + +message GetSelectivityOfSQLColumnsResponse { + repeated SelectivityOfSQLColumns selectivity = 1; } \ No newline at end of file From c3a8148ca6ac646602de8f1744d878491f88e2a6 Mon Sep 17 00:00:00 2001 From: iwanghc Date: Mon, 10 Nov 2025 14:20:08 +0800 Subject: [PATCH 2/4] feat: implement GetSelectivityOfSQLColumnsRequest and response types in driver_v2.proto --- sqle/driver/v2/proto/driver_v2.pb.go | 492 ++++++++++++++++----------- 1 file changed, 296 insertions(+), 196 deletions(-) diff --git a/sqle/driver/v2/proto/driver_v2.pb.go b/sqle/driver/v2/proto/driver_v2.pb.go index fe004729e..7498d8001 100644 --- a/sqle/driver/v2/proto/driver_v2.pb.go +++ b/sqle/driver/v2/proto/driver_v2.pb.go @@ -5,22 +5,8 @@ Package protoV2 is a generated protocol buffer package. It is generated from these files: - - driver_v2.prot driver_v2.proto --level messages: - - Empty - Sessio - -It has these top-level messages - - - Empty - Session - BackupReq - Ba It has these top-level messages: Empty Session @@ -102,6 +88,9 @@ It has these top-level messages: DatabasDiffSchemaInfo DatabaseDiffModifyRponse SchemaDiffModify + GetSelectivityOfSQLColumnsRequest + SelectivityOfSQLColumns + GetSelectivityOfSQLColumnsResponse */ package protoV2 @@ -2155,6 +2144,74 @@ func (m *SchemaDiffModify) GetModifySQLs() []string { return nil } +type GetSelectivityOfSQLColumnsRequest struct { + Session *Session `protobuf:"bytes,1,opt,name=session" json:"session,omitempty"` + Sql string `protobuf:"bytes,2,opt,name=sql" json:"sql,omitempty"` +} + +func (m *GetSelectivityOfSQLColumnsRequest) Reset() { *m = GetSelectivityOfSQLColumnsRequest{} } +func (m *GetSelectivityOfSQLColumnsRequest) String() string { return proto.CompactTextString(m) } +func (*GetSelectivityOfSQLColumnsRequest) ProtoMessage() {} +func (*GetSelectivityOfSQLColumnsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor0, []int{80} +} + +func (m *GetSelectivityOfSQLColumnsRequest) GetSession() *Session { + if m != nil { + return m.Session + } + return nil +} + +func (m *GetSelectivityOfSQLColumnsRequest) GetSql() string { + if m != nil { + return m.Sql + } + return "" +} + +type SelectivityOfSQLColumns struct { + TableName string `protobuf:"bytes,1,opt,name=tableName" json:"tableName,omitempty"` + SelectivityOfColumns map[string]float32 `protobuf:"bytes,2,rep,name=selectivityOfColumns" json:"selectivityOfColumns,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"` +} + +func (m *SelectivityOfSQLColumns) Reset() { *m = SelectivityOfSQLColumns{} } +func (m *SelectivityOfSQLColumns) String() string { return proto.CompactTextString(m) } +func (*SelectivityOfSQLColumns) ProtoMessage() {} +func (*SelectivityOfSQLColumns) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{81} } + +func (m *SelectivityOfSQLColumns) GetTableName() string { + if m != nil { + return m.TableName + } + return "" +} + +func (m *SelectivityOfSQLColumns) GetSelectivityOfColumns() map[string]float32 { + if m != nil { + return m.SelectivityOfColumns + } + return nil +} + +type GetSelectivityOfSQLColumnsResponse struct { + Selectivity []*SelectivityOfSQLColumns `protobuf:"bytes,1,rep,name=selectivity" json:"selectivity,omitempty"` +} + +func (m *GetSelectivityOfSQLColumnsResponse) Reset() { *m = GetSelectivityOfSQLColumnsResponse{} } +func (m *GetSelectivityOfSQLColumnsResponse) String() string { return proto.CompactTextString(m) } +func (*GetSelectivityOfSQLColumnsResponse) ProtoMessage() {} +func (*GetSelectivityOfSQLColumnsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor0, []int{82} +} + +func (m *GetSelectivityOfSQLColumnsResponse) GetSelectivity() []*SelectivityOfSQLColumns { + if m != nil { + return m.Selectivity + } + return nil +} + func init() { proto.RegisterType((*Empty)(nil), "protoV2.Empty") proto.RegisterType((*Session)(nil), "protoV2.Session") @@ -2236,6 +2293,9 @@ func init() { proto.RegisterType((*DatabasDiffSchemaInfo)(nil), "protoV2.DatabasDiffSchemaInfo") proto.RegisterType((*DatabaseDiffModifyRponse)(nil), "protoV2.DatabaseDiffModifyRponse") proto.RegisterType((*SchemaDiffModify)(nil), "protoV2.SchemaDiffModify") + proto.RegisterType((*GetSelectivityOfSQLColumnsRequest)(nil), "protoV2.GetSelectivityOfSQLColumnsRequest") + proto.RegisterType((*SelectivityOfSQLColumns)(nil), "protoV2.SelectivityOfSQLColumns") + proto.RegisterType((*GetSelectivityOfSQLColumnsResponse)(nil), "protoV2.GetSelectivityOfSQLColumnsResponse") proto.RegisterEnum("protoV2.BackupStrategy", BackupStrategy_name, BackupStrategy_value) proto.RegisterEnum("protoV2.OptionalModule", OptionalModule_name, OptionalModule_value) } @@ -2282,6 +2342,7 @@ type DriverClient interface { EstimateSQLAffectRows(ctx context.Context, in *EstimateSQLAffectRowsRequest, opts ...grpc.CallOption) (*EstimateSQLAffectRowsResponse, error) GetDatabaseObjectDDL(ctx context.Context, in *DatabaseObjectInfoRequest, opts ...grpc.CallOption) (*DatabaseSchemaObjectResponse, error) GetDatabaseDiffModifySQL(ctx context.Context, in *DatabaseDiffModifyRequest, opts ...grpc.CallOption) (*DatabaseDiffModifyRponse, error) + GetSelectivityOfSQLColumns(ctx context.Context, in *GetSelectivityOfSQLColumnsRequest, opts ...grpc.CallOption) (*GetSelectivityOfSQLColumnsResponse, error) } type driverClient struct { @@ -2481,6 +2542,15 @@ func (c *driverClient) GetDatabaseDiffModifySQL(ctx context.Context, in *Databas return out, nil } +func (c *driverClient) GetSelectivityOfSQLColumns(ctx context.Context, in *GetSelectivityOfSQLColumnsRequest, opts ...grpc.CallOption) (*GetSelectivityOfSQLColumnsResponse, error) { + out := new(GetSelectivityOfSQLColumnsResponse) + err := grpc.Invoke(ctx, "/protoV2.Driver/GetSelectivityOfSQLColumns", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // Server API for Driver service type DriverServer interface { @@ -2515,6 +2585,7 @@ type DriverServer interface { EstimateSQLAffectRows(context.Context, *EstimateSQLAffectRowsRequest) (*EstimateSQLAffectRowsResponse, error) GetDatabaseObjectDDL(context.Context, *DatabaseObjectInfoRequest) (*DatabaseSchemaObjectResponse, error) GetDatabaseDiffModifySQL(context.Context, *DatabaseDiffModifyRequest) (*DatabaseDiffModifyRponse, error) + GetSelectivityOfSQLColumns(context.Context, *GetSelectivityOfSQLColumnsRequest) (*GetSelectivityOfSQLColumnsResponse, error) } func RegisterDriverServer(s *grpc.Server, srv DriverServer) { @@ -2899,6 +2970,24 @@ func _Driver_GetDatabaseDiffModifySQL_Handler(srv interface{}, ctx context.Conte return interceptor(ctx, in, info, handler) } +func _Driver_GetSelectivityOfSQLColumns_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetSelectivityOfSQLColumnsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DriverServer).GetSelectivityOfSQLColumns(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/protoV2.Driver/GetSelectivityOfSQLColumns", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DriverServer).GetSelectivityOfSQLColumns(ctx, req.(*GetSelectivityOfSQLColumnsRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Driver_serviceDesc = grpc.ServiceDesc{ ServiceName: "protoV2.Driver", HandlerType: (*DriverServer)(nil), @@ -2987,6 +3076,10 @@ var _Driver_serviceDesc = grpc.ServiceDesc{ MethodName: "GetDatabaseDiffModifySQL", Handler: _Driver_GetDatabaseDiffModifySQL_Handler, }, + { + MethodName: "GetSelectivityOfSQLColumns", + Handler: _Driver_GetSelectivityOfSQLColumns_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "driver_v2.proto", @@ -2995,186 +3088,193 @@ var _Driver_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("driver_v2.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 2881 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x1a, 0xdb, 0x6e, 0xdc, 0xc6, - 0x35, 0xdc, 0x9b, 0xb4, 0x67, 0x2f, 0xa6, 0x47, 0x52, 0xbc, 0xde, 0xc8, 0x8e, 0x32, 0xbe, 0x44, - 0x75, 0x12, 0xd9, 0x91, 0xdb, 0x5c, 0x9c, 0xa2, 0xb1, 0xad, 0x55, 0x62, 0xc5, 0x96, 0x2c, 0xcd, - 0xba, 0x7e, 0x08, 0x10, 0x38, 0xd4, 0x72, 0x76, 0xc3, 0x98, 0x4b, 0xae, 0x48, 0xae, 0x25, 0xbd, - 0x17, 0x68, 0x1f, 0x5b, 0xa0, 0xcf, 0xfd, 0x86, 0xbc, 0xa4, 0x05, 0x0a, 0xf4, 0x17, 0x0a, 0xf4, - 0x3b, 0xfa, 0xd2, 0x4f, 0x28, 0xe6, 0x42, 0x72, 0x86, 0xe4, 0xca, 0xd6, 0x02, 0x79, 0x12, 0xe7, - 0xdc, 0xcf, 0x99, 0x33, 0xe7, 0xcc, 0x9c, 0x15, 0x5c, 0xb0, 0x03, 0xe7, 0x15, 0x0d, 0x5e, 0xbc, - 0xda, 0xdc, 0x98, 0x04, 0x7e, 0xe4, 0xa3, 0x05, 0xfe, 0xe7, 0xf9, 0x26, 0x5e, 0x80, 0xea, 0xf6, - 0x78, 0x12, 0x9d, 0xe2, 0xcb, 0xb0, 0xd0, 0xa7, 0x61, 0xe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 0x27, 0x00, - 0x00, + // 2999 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x3a, 0x5b, 0x6f, 0xdc, 0xc6, + 0xd5, 0xe1, 0x5e, 0x24, 0xed, 0xd9, 0x8b, 0xd7, 0x23, 0x29, 0x5e, 0x6f, 0x64, 0x47, 0x19, 0x5f, + 0xa2, 0xcf, 0x4e, 0x64, 0x47, 0xfe, 0x9a, 0x8b, 0x53, 0x34, 0xb6, 0xb5, 0x8a, 0xad, 0x58, 0x92, + 0xa5, 0x59, 0xd7, 0x0f, 0x01, 0x02, 0x87, 0x5a, 0xce, 0xca, 0x4c, 0xb8, 0xe4, 0x8a, 0xe4, 0xea, + 0xf2, 0x5e, 0xa0, 0x7d, 0x6c, 0x81, 0x3e, 0xf7, 0x1f, 0x14, 0xc8, 0x4b, 0x50, 0xa0, 0x40, 0xff, + 0x42, 0x81, 0xfe, 0x8e, 0xbe, 0xe4, 0x27, 0x14, 0x73, 0x21, 0x39, 0xc3, 0x8b, 0x2c, 0x2d, 0x90, + 0xa7, 0x25, 0xcf, 0xfd, 0x9c, 0x39, 0x73, 0xe6, 0xcc, 0xe1, 0xc2, 0x25, 0xcb, 0xb7, 0x8f, 0xa8, + 0xff, 0xfa, 0x68, 0x6d, 0x75, 0xec, 0x7b, 0xa1, 0x87, 0x66, 0xf9, 0xcf, 0xab, 0x35, 0x3c, 0x0b, + 0xd5, 0x8d, 0xd1, 0x38, 0x3c, 0xc5, 0x57, 0x61, 0xb6, 0x4f, 0x83, 0xc0, 0xf6, 0x5c, 0xd4, 0x82, + 0x92, 0x6d, 0x75, 0x8c, 0x65, 0x63, 0xa5, 0x46, 0x4a, 0xb6, 0x85, 0x7f, 0x32, 0xa0, 0xf6, 0xc4, + 0x1c, 0xfc, 0x38, 0x19, 0x13, 0x7a, 0x88, 0xee, 0xc0, 0x6c, 0x20, 0x08, 0x39, 0x49, 0x7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 0x0a, 0x7e, 0x35, 0xc7, 0x40, 0x25, 0x4f, 0x53, 0x98, 0x28, 0xbb, 0xf2, 0x18, 0x2e, + 0x9a, 0x5d, 0x29, 0x19, 0x6a, 0x76, 0x3d, 0x82, 0x77, 0xd3, 0x0b, 0x25, 0xd3, 0xe4, 0xb6, 0x88, + 0xbe, 0x58, 0xa5, 0x85, 0x3c, 0x87, 0x44, 0xe4, 0xbf, 0x80, 0xfa, 0xae, 0xed, 0x1e, 0x4c, 0x73, + 0xc6, 0xbc, 0x0f, 0xb3, 0x1b, 0x27, 0x74, 0x50, 0x9c, 0x46, 0xdf, 0x41, 0x9d, 0x11, 0x4c, 0x93, + 0x3c, 0x58, 0x4d, 0x9e, 0x84, 0x4e, 0xea, 0x13, 0xa6, 0xff, 0x64, 0x00, 0x08, 0xf9, 0xbc, 0x8e, + 0x61, 0x68, 0x38, 0x66, 0x10, 0x6e, 0xba, 0x01, 0xf5, 0xc3, 0x4d, 0x71, 0xbb, 0x2e, 0x13, 0x0d, + 0xc6, 0xee, 0x69, 0xea, 0xfb, 0x06, 0x2b, 0x06, 0xd1, 0x3d, 0x2d, 0x83, 0x60, 0x12, 0x7d, 0xef, + 0x38, 0x78, 0x3c, 0x1c, 0xd2, 0x41, 0x48, 0x2d, 0x5e, 0xec, 0xca, 0x44, 0x83, 0x31, 0x89, 0xea, + 0xbb, 0x90, 0x28, 0xda, 0xf7, 0x2c, 0x02, 0x5b, 0xd0, 0x66, 0x16, 0x3f, 0x61, 0xa7, 0xd2, 0x74, + 0xe7, 0xae, 0x7a, 0x64, 0x64, 0xe3, 0x22, 0x4e, 0x8c, 0x47, 0x70, 0x49, 0xd1, 0xc2, 0x83, 0xf3, + 0x71, 0xba, 0xec, 0xcc, 0x6b, 0xbc, 0xe9, 0xaa, 0xf3, 0x25, 0x34, 0x24, 0x58, 0x64, 0xd3, 0x5d, + 0x98, 0x11, 0x28, 0x69, 0x62, 0x2e, 0xb7, 0x24, 0xc1, 0xdf, 0x41,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 0x18, 0x05, 0x91, 0x84, 0x78, 0x05, 0xda, 0x69, 0x5c, 0x32, 0x9a, 0x30, 0x94, 0xd1, 0x04, + 0xc6, 0xac, 0xca, 0x8c, 0x1d, 0xd3, 0x76, 0x8b, 0x57, 0x6d, 0x00, 0x2d, 0x49, 0x33, 0x5d, 0x23, + 0xa8, 0xac, 0x81, 0x9a, 0xbf, 0x91, 0x56, 0x51, 0xef, 0x5e, 0xb1, 0x6d, 0x2d, 0x95, 0xc8, 0xf8, + 0xae, 0x43, 0x73, 0xe0, 0x98, 0x41, 0x60, 0xcb, 0x44, 0x97, 0xba, 0xae, 0xa5, 0x65, 0xac, 0xab, + 0x44, 0x44, 0xe7, 0xc1, 0x8f, 0x60, 0x21, 0x8f, 0x0c, 0xad, 0x40, 0x85, 0xdd, 0xfa, 0x32, 0x67, + 0xc8, 0x4b, 0x73, 0x7f, 0xe2, 0x98, 0x7e, 0xcf, 0x0c, 0x4d, 0xc2, 0x29, 0xf0, 0x63, 0x98, 0x7f, + 0x4a, 0xc3, 0x9e, 0xbc, 0x22, 0x4e, 0x75, 0x61, 0xb9, 0x0e, 0x73, 0x11, 0x7f, 0xde, 0x1c, 0x05, + 0x3f, 0x85, 0x05, 0x5d, 0x85, 0x8c, 0xc0, 0x3d, 0xa8, 0x45, 0x57, 0xd3, 0x68, 0xf5, 0x93, 0x2c, + 0x8e, 0xc8, 0x49, 0x42, 0x83, 0x1f, 0x40, 0xf5, 0x25, 0xbb, 0x53, 0xe6, 0x4e, 0x6b, 0xde, 0x85, + 0x19, 0x31, 0x63, 0x93, 0xdb, 0x57, 0xbe, 0xe1, 0x03, 0xee, 0x20, 0xe7, 0x63, 0x77, 0xf3, 0xe9, + 0x8a, 0x5b, 0x95, 0x4f, 0xf8, 0xe4, 0x32, 0xb7, 0xd4, 0x70, 0xb2, 0x1b, 0x27, 0x47, 0xe2, 0x67, + 0xdc, 0x4d, 0x45, 0x91, 0x74, 0xf3, 0x3e, 0xd4, 0xc2, 0x08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 0x71, 0x71, 0xeb, 0xde, 0x7e, 0x1b, 0x99, 0xd4, 0x63, 0xe6, 0x97, 0x4d, 0x84, 0x0b, + 0x1a, 0x1d, 0xe5, 0x6a, 0xd4, 0xbd, 0x75, 0x76, 0x6b, 0x9e, 0xa8, 0x28, 0xac, 0xbf, 0x39, 0x6a, + 0x32, 0x9d, 0x69, 0xf7, 0x83, 0xb3, 0x68, 0x84, 0x8a, 0x09, 0x74, 0x8b, 0x0f, 0x58, 0x74, 0x47, + 0x5d, 0xcc, 0xb3, 0x7b, 0x9b, 0xee, 0xdd, 0x73, 0xd1, 0x0a, 0xcf, 0x9e, 0x34, 0xbe, 0x85, 0xd5, + 0x7b, 0x5f, 0x4a, 0x86, 0xfd, 0x19, 0xfe, 0xf0, 0xe0, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd8, + 0xec, 0xd5, 0x0e, 0x75, 0x29, 0x00, 0x00, } From af88844a81aa8e206c153fa7b91c426dbf96a99a Mon Sep 17 00:00:00 2001 From: iwanghc Date: Mon, 10 Nov 2025 14:20:28 +0800 Subject: [PATCH 3/4] feat: implement GetSelectivityOfSQLColumns method in PluginImplV1 and PluginImplV2, and add corresponding gRPC server handling --- sqle/driver/plugin_adapter_v1.go | 4 ++++ sqle/driver/plugin_adapter_v2.go | 22 ++++++++++++++++++++++ sqle/driver/v2/driver_grpc_server.go | 24 ++++++++++++++++++++++++ sqle/pkg/driver/impl.go | 4 ++++ sqle/server/sqled_test.go | 4 ++++ 5 files changed, 58 insertions(+) diff --git a/sqle/driver/plugin_adapter_v1.go b/sqle/driver/plugin_adapter_v1.go index cd0ac6e6a..2cf85c87a 100644 --- a/sqle/driver/plugin_adapter_v1.go +++ b/sqle/driver/plugin_adapter_v1.go @@ -353,3 +353,7 @@ func (s *PluginImplV1) GetDatabaseObjectDDL(ctx context.Context, objInfos []*dri func (s *PluginImplV1) GetDatabaseDiffModifySQL(ctx context.Context, calibratedDSN *driverV2.DSN, objInfos []*driverV2.DatabasCompareSchemaInfo) ([]*driverV2.DatabaseDiffModifySQLResult, error) { return nil, fmt.Errorf("unimplement this method") } + +func (p *PluginImplV1) GetSelectivityOfSQLColumns(ctx context.Context, sql string) (map[string]map[string]float32, error) { + return nil, fmt.Errorf("unimplement this method") +} diff --git a/sqle/driver/plugin_adapter_v2.go b/sqle/driver/plugin_adapter_v2.go index 0ce3b7860..a9459d9f4 100644 --- a/sqle/driver/plugin_adapter_v2.go +++ b/sqle/driver/plugin_adapter_v2.go @@ -725,3 +725,25 @@ func (s *PluginImplV2) GetDatabaseDiffModifySQL(ctx context.Context, calibratedD } return dbDiffSQLs, nil } + +func (s *PluginImplV2) GetSelectivityOfSQLColumns(ctx context.Context, sql string) (map[string]map[string]float32, error) { + api := "GetSelectivityOfSQLColumns" + s.preLog(api) + resp, err := s.client.GetSelectivityOfSQLColumns(ctx, &protoV2.GetSelectivityOfSQLColumnsRequest{ + Session: s.Session, + Sql: sql, + }) + s.afterLog(api, err) + if err != nil { + return nil, err + } + result := make(map[string]map[string]float32, len(resp.Selectivity)) + for _, v := range resp.Selectivity { + colMap := make(map[string]float32, len(v.SelectivityOfColumns)) + for k, sel := range v.SelectivityOfColumns { + colMap[k] = sel + } + result[v.TableName] = colMap + } + return result, nil +} diff --git a/sqle/driver/v2/driver_grpc_server.go b/sqle/driver/v2/driver_grpc_server.go index 759ac27c9..7a11ae172 100644 --- a/sqle/driver/v2/driver_grpc_server.go +++ b/sqle/driver/v2/driver_grpc_server.go @@ -674,3 +674,27 @@ func (d *DriverGrpcServer) GetDatabaseDiffModifySQL(ctx context.Context, req *pr SchemaDiffModify: scheamDiff, }, nil } + +func (d *DriverGrpcServer) GetSelectivityOfSQLColumns(ctx context.Context, req *protoV2.GetSelectivityOfSQLColumnsRequest) (*protoV2.GetSelectivityOfSQLColumnsResponse, error) { + driver, err := d.getDriverBySession(req.Session) + if err != nil { + return &protoV2.GetSelectivityOfSQLColumnsResponse{}, err + } + selectivity, err := driver.GetSelectivityOfSQLColumns(ctx, req.Sql) + if err != nil { + return &protoV2.GetSelectivityOfSQLColumnsResponse{}, err + } + protoSelectivity := make([]*protoV2.SelectivityOfSQLColumns, 0, len(selectivity)) + for tableName, colMap := range selectivity { + // 直接将 map[string]float32 赋值,无需合并操作 + merged := make(map[string]float32, len(colMap)) + for col, val := range colMap { + merged[col] = val + } + protoSelectivity = append(protoSelectivity, &protoV2.SelectivityOfSQLColumns{ + TableName: tableName, + SelectivityOfColumns: merged, + }) + } + return &protoV2.GetSelectivityOfSQLColumnsResponse{Selectivity: protoSelectivity}, nil +} diff --git a/sqle/pkg/driver/impl.go b/sqle/pkg/driver/impl.go index 2e555c0bd..0f04fb453 100644 --- a/sqle/pkg/driver/impl.go +++ b/sqle/pkg/driver/impl.go @@ -311,3 +311,7 @@ func (p *DriverImpl) GetDatabaseObjectDDL(ctx context.Context, objInfos []*drive func (p *DriverImpl) GetDatabaseDiffModifySQL(ctx context.Context, calibratedDSN *driverV2.DSN, objInfos []*driverV2.DatabasCompareSchemaInfo) ([]*driverV2.DatabaseDiffModifySQLResult, error) { return []*driverV2.DatabaseDiffModifySQLResult{}, nil } + +func (p *DriverImpl) GetSelectivityOfSQLColumns(ctx context.Context, sql string) (map[string]map[string]float32, error) { + return nil, nil +} diff --git a/sqle/server/sqled_test.go b/sqle/server/sqled_test.go index 1c28fa83d..d52ef07c8 100644 --- a/sqle/server/sqled_test.go +++ b/sqle/server/sqled_test.go @@ -126,6 +126,10 @@ func (d *mockDriver) ExplainJSONFormat(ctx context.Context, conf *driverV2.Expla return nil, nil } +func (d *mockDriver) GetSelectivityOfSQLColumns(ctx context.Context, sql string) (map[string]map[string]float32, error) { + return make(map[string]map[string]float32), nil +} + func TestAction_validation(t *testing.T) { actions := map[int]*action{ ActionTypeAudit: {typ: ActionTypeAudit}, From a56ff974a16dfd7f578250362b8f7a20bb5fb373 Mon Sep 17 00:00:00 2001 From: iwanghc Date: Mon, 10 Nov 2025 14:20:36 +0800 Subject: [PATCH 4/4] feat: add ExtractColumnsFromSelectStmt function to improve SQL column extraction and enhance GetSelectivityOfSQLColumns method --- sqle/driver/mysql/mysql.go | 78 ++++++++++++++++++ sqle/driver/mysql/util/parser_helper.go | 103 ++++++++++++++++++++++++ 2 files changed, 181 insertions(+) diff --git a/sqle/driver/mysql/mysql.go b/sqle/driver/mysql/mysql.go index 30bc20f4d..4c7ffaeb8 100644 --- a/sqle/driver/mysql/mysql.go +++ b/sqle/driver/mysql/mysql.go @@ -14,6 +14,7 @@ import ( "github.com/actiontech/sqle/sqle/driver/mysql/plocale" rulepkg "github.com/actiontech/sqle/sqle/driver/mysql/rule" _ "github.com/actiontech/sqle/sqle/driver/mysql/rule/ai" + aiutil "github.com/actiontech/sqle/sqle/driver/mysql/rule/ai/util" "github.com/actiontech/sqle/sqle/driver/mysql/session" "github.com/actiontech/sqle/sqle/driver/mysql/util" driverV2 "github.com/actiontech/sqle/sqle/driver/v2" @@ -639,6 +640,83 @@ func (p *PluginProcessor) GetDriverMetas() (*driverV2.DriverMetas, error) { return metas, nil } +func (i *MysqlDriverImpl) GetSelectivityOfSQLColumns(ctx context.Context, sql string) (map[string]map[string]float32, error) { + node, err := util.ParseOneSql(sql) + if err != nil { + return nil, err + } + + if _, ok := node.(*ast.SelectStmt); !ok { + log.NewEntry().Errorf("get selectivity of sql columns failed, sql is not a select statement, sql: %s", sql) + return nil, nil + } + + selectVisitor := &util.SelectVisitor{} + node.Accept(selectVisitor) + + result := make(map[string]map[string]float32) + + for _, selectNode := range selectVisitor.SelectList { + if selectNode.From == nil || selectNode.From.TableRefs == nil { + continue + } + + // 获取表别名映射关系 + aliasInfo := aiutil.GetTableAliasInfoFromJoin(selectNode.From.TableRefs) + aliasMap := make(map[string]string) + allTables := make([]string, 0, len(aliasInfo)) + + for _, alias := range aliasInfo { + if alias.TableAliasName != "" { + aliasMap[alias.TableAliasName] = alias.TableName + } + allTables = append(allTables, alias.TableName) + } + + // 提取列并按表分组 + tableColumns := util.ExtractColumnsFromSelectStmt(selectNode, aliasMap, allTables) + + // 遍历每个表,获取其列的选择性 + for tableName, columnSet := range tableColumns { + columns := make([]string, 0, len(columnSet)) + for colName := range columnSet { + columns = append(columns, colName) + } + + if len(columns) == 0 { + continue + } + + // 构造 TableName 对象 + var schemaName string + for _, alias := range aliasInfo { + if alias.TableName == tableName { + schemaName = alias.SchemaName + break + } + } + tableNameObj := util.NewTableName(schemaName, tableName) + + columnSelectivityMap, err := i.Ctx.GetSelectivityOfColumns(tableNameObj, columns) + if err != nil { + log.NewEntry().Errorf("get selectivity of columns failed, table: %s, columns: %v, error: %v", tableName, columns, err) + continue + } + + if result[tableName] == nil { + result[tableName] = make(map[string]float32) + } + for columnName, selectivity := range columnSelectivityMap { + if selectivity > 0 { + result[tableName][columnName] = float32(selectivity) + } + } + } + } + + return result, nil +} + func (p *PluginProcessor) Open(l *logrus.Entry, cfg *driverV2.Config) (driver.Plugin, error) { return NewInspect(l, cfg) } diff --git a/sqle/driver/mysql/util/parser_helper.go b/sqle/driver/mysql/util/parser_helper.go index 242c91a93..42336b752 100644 --- a/sqle/driver/mysql/util/parser_helper.go +++ b/sqle/driver/mysql/util/parser_helper.go @@ -931,3 +931,106 @@ func ConvertAliasToTable(alias string, tables []*ast.TableSource) (*ast.TableNam } return nil, errors.New("can not find table") } + +// TableColumnMap 表示按表分组的列名集合 +type TableColumnMap map[string]map[string]struct{} + +// ExtractColumnsFromSelectStmt 从 SELECT 语句中提取列,并按表分组 +// 参数: +// - selectStmt: SELECT 语句节点 +// - aliasMap: 表别名到实际表名的映射 +// - allTables: 所有涉及的表名列表(用于处理无表前缀的列) +// +// 返回:按表名分组的列名集合 +func ExtractColumnsFromSelectStmt(selectStmt *ast.SelectStmt, aliasMap map[string]string, allTables []string) TableColumnMap { + tableColumns := make(TableColumnMap) + + // 收集 SELECT 列表中的所有列别名 + selectAliases := make(map[string]struct{}) + if selectStmt.Fields != nil { + for _, field := range selectStmt.Fields.Fields { + if field.AsName.L != "" { + selectAliases[field.AsName.L] = struct{}{} + } + } + } + + // 辅助函数:从表达式中提取列并按表分组 + extractColumnsFromExpr := func(expr ast.Node, skipAliases bool) { + if expr == nil { + return + } + columnVisitor := &ColumnNameVisitor{} + expr.Accept(columnVisitor) + + for _, colExpr := range columnVisitor.ColumnNameList { + if colExpr.Name == nil { + continue + } + + // 如果需要跳过别名且当前列名是一个别名,则跳过 + if skipAliases { + if _, isAlias := selectAliases[colExpr.Name.Name.L]; isAlias && colExpr.Name.Table.L == "" { + continue + } + } + + var targetTableName string + + // 如果列有表前缀(可能是别名或实际表名) + if colExpr.Name.Table.L != "" { + // 先尝试从别名映射中查找 + if actualTable, exists := aliasMap[colExpr.Name.Table.L]; exists { + targetTableName = actualTable + } else { + // 如果不是别名,就当作实际表名 + targetTableName = colExpr.Name.Table.L + } + } + + if targetTableName != "" { + if tableColumns[targetTableName] == nil { + tableColumns[targetTableName] = make(map[string]struct{}) + } + tableColumns[targetTableName][colExpr.Name.Name.L] = struct{}{} + } else { + // 没有表前缀的列,可能属于任何表 + // 在多表查询中,尝试将该列添加到所有表 + for _, tableName := range allTables { + if tableColumns[tableName] == nil { + tableColumns[tableName] = make(map[string]struct{}) + } + tableColumns[tableName][colExpr.Name.Name.L] = struct{}{} + } + } + } + } + + // 从 SELECT Fields 提取列(包括聚合函数内的列) + if selectStmt.Fields != nil { + for _, field := range selectStmt.Fields.Fields { + extractColumnsFromExpr(field.Expr, false) + } + } + + // 从 WHERE 条件提取列 + if selectStmt.Where != nil { + extractColumnsFromExpr(selectStmt.Where, false) + } + + // 从 GROUP BY 提取列(需要跳过别名引用) + if selectStmt.GroupBy != nil { + for _, item := range selectStmt.GroupBy.Items { + extractColumnsFromExpr(item.Expr, true) + } + } + + // 从 HAVING 提取列 + if selectStmt.Having != nil { + extractColumnsFromExpr(selectStmt.Having.Expr, false) + } + + // 注意:不从 ORDER BY 提取,因为可能包含别名引用 + + return tableColumns +}