@@ -55,32 +55,32 @@ func heartbeatRoutine(
5555 )
5656}
5757
58- func (a * FlowableActivity ) getTableMappings (ctx context.Context , flowName string , version uint ) ([]* protos.TableMapping , error ) {
59- rows , err := a .CatalogPool .Query (ctx , "select table_mapping from table_mappings where flow_name = $1 AND version = $2" , flowName , version )
60- if err != nil {
61- return nil , err
62- }
58+ // func (a *FlowableActivity) getTableMappings(ctx context.Context, flowName string, version uint) ([]*protos.TableMapping, error) {
59+ // rows, err := a.CatalogPool.Query(ctx, "select table_mapping from table_mappings where flow_name = $1 AND version = $2", flowName, version)
60+ // if err != nil {
61+ // return nil, err
62+ // }
6363
64- var tableMappingsBytes [][]byte
65- var tableMappings []* protos.TableMapping = []* protos.TableMapping {}
64+ // var tableMappingsBytes [][]byte
65+ // var tableMappings []*protos.TableMapping = []*protos.TableMapping{}
6666
67- err = rows .Scan ([]any {& tableMappingsBytes })
68- if err != nil {
69- return nil , fmt .Errorf ("failed to deserialize table mapping schema proto: %w" , err )
70- }
67+ // err = rows.Scan([]any{&tableMappingsBytes})
68+ // if err != nil {
69+ // return nil, fmt.Errorf("failed to deserialize table mapping schema proto: %w", err)
70+ // }
7171
72- for _ , tableMappingBytes := range tableMappingsBytes {
72+ // for _, tableMappingBytes := range tableMappingsBytes {
7373
74- var tableMapping * protos.TableMapping
75- if err := proto .Unmarshal (tableMappingBytes , tableMapping ); err != nil {
76- return nil , err
77- }
74+ // var tableMapping *protos.TableMapping
75+ // if err := proto.Unmarshal(tableMappingBytes, tableMapping); err != nil {
76+ // return nil, err
77+ // }
7878
79- tableMappings = append (tableMappings , tableMapping )
80- }
79+ // tableMappings = append(tableMappings, tableMapping)
80+ // }
8181
82- return tableMappings , nil
83- }
82+ // return tableMappings, nil
83+ // }
8484
8585func (a * FlowableActivity ) getTableNameSchemaMapping (ctx context.Context , flowName string ) (map [string ]* protos.TableSchema , error ) {
8686 rows , err := a .CatalogPool .Query (ctx , "select table_name, table_schema from table_schema_mapping where flow_name = $1" , flowName )
0 commit comments