You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A route module can contain a list of source-table/sink-table rules.
40
41
@@ -71,4 +72,18 @@ route:
71
72
- source-table: mydb.products
72
73
sink-table: ods_db.ods_products
73
74
description: sync products table to ods_products
74
-
```
75
+
```
76
+
77
+
## Pattern Replacement in routing rules
78
+
79
+
If you'd like to route source tables and rename them to sink tables with specific patterns, `replace-symbol` could be used to resemble source table names like this:
80
+
81
+
```yaml
82
+
route:
83
+
- source-table: source_db.\.*
84
+
sink-table: sink_db.<>
85
+
replace-symbol: <>
86
+
description: route all tables in source_db to sink_db
87
+
```
88
+
89
+
Then, all tables including `source_db.XXX` will be routed to `sink_db.XXX` without hassle.
A route module can contain a list of source-table/sink-table rules.
40
41
@@ -71,4 +72,18 @@ route:
71
72
- source-table: mydb.products
72
73
sink-table: ods_db.ods_products
73
74
description: sync products table to ods_products
74
-
```
75
+
```
76
+
77
+
## Pattern Replacement in routing rules
78
+
79
+
If you'd like to route source tables and rename them to sink tables with specific patterns, `replace-symbol` could be used to resemble source table names like this:
80
+
81
+
```yaml
82
+
route:
83
+
- source-table: source_db.\.*
84
+
sink-table: sink_db.<>
85
+
replace-symbol: <>
86
+
description: route all tables in source_db to sink_db
87
+
```
88
+
89
+
Then, all tables including `source_db.XXX` will be routed to `sink_db.XXX` without hassle.
0 commit comments