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
We could use following yaml file to define a concise Data Pipeline describing synchronize all tables under MySQL app_db database to Doris :
44
+
45
+
```yaml
46
+
source:
47
+
type: mysql
48
+
hostname: localhost
49
+
port: 3306
50
+
username: root
51
+
password: 123456
52
+
tables: app_db.\.*
53
+
54
+
sink:
55
+
type: doris
56
+
fenodes: 127.0.0.1:8030
57
+
username: root
58
+
password: ""
59
+
60
+
pipeline:
61
+
name: Sync MySQL Database to Doris
62
+
parallelism: 2
63
+
```
64
+
65
+
## With optional
66
+
We could use following yaml file to define a complicated Data Pipeline describing synchronize all tables under MySQL app_db database to Doris and give specific target database name ods_db and specific target table name prefix ods_ :
67
+
68
+
```yaml
69
+
source:
70
+
type: mysql
71
+
hostname: localhost
72
+
port: 3306
73
+
username: root
74
+
password: 123456
75
+
tables: app_db.\.*
76
+
77
+
sink:
78
+
type: doris
79
+
fenodes: 127.0.0.1:8030
80
+
username: root
81
+
password: ""
82
+
route:
83
+
- source-table: app_db.orders
84
+
sink-table: ods_db.ods_orders
85
+
- source-table: app_db.shipments
86
+
sink-table: ods_db.ods_shipments
87
+
- source-table: app_db.products
88
+
sink-table: ods_db.ods_products
89
+
90
+
pipeline:
91
+
name: Sync MySQL Database to Doris
92
+
parallelism: 2
93
+
```
94
+
95
+
# Pipeline Configurations
96
+
The following config options of Data Pipeline level are supported:
Copy file name to clipboardExpand all lines: docs/content/docs/core-concept/route.md
+49
Original file line number
Diff line number
Diff line change
@@ -23,3 +23,52 @@ KIND, either express or implied. See the License for the
23
23
specific language governing permissions and limitations
24
24
under the License.
25
25
-->
26
+
27
+
# Definition
28
+
**Route** specifies the rule of matching a list of source-table and mapping to sink-table. The most typical scenario is the merge of sub-databases and sub-tables, routing multiple upstream source tables to the same sink table.
A route module can contain a list of source-table/sink-table rules.
40
+
41
+
# Example
42
+
## Route one Data Source table to one Data Sink table
43
+
if synchronize the table `web_order` in the database `mydb` to a Doris table `ods_web_order`, we can use this yaml file to define this route:
44
+
45
+
```yaml
46
+
route:
47
+
source-table: mydb.web_order
48
+
sink-table: mydb.ods_web_order
49
+
description: sync table to one destination table with given prefix ods_
50
+
```
51
+
52
+
## Route multiple Data Source tables to one Data Sink table
53
+
What's more, if you want to synchronize the sharding tables in the database `mydb` to a Doris table `ods_web_order`, we can use this yaml file to define this route:
54
+
```yaml
55
+
route:
56
+
source-table: mydb\.*
57
+
sink-table: mydb.ods_web_order
58
+
description: sync sharding tables to one destination table
59
+
```
60
+
61
+
## Complex Route via combining route rules
62
+
What's more, if you want to specify many different mapping rules, we can use this yaml file to define this route:
63
+
```yaml
64
+
route:
65
+
- source-table: mydb.orders
66
+
sink-table: ods_db.ods_orders
67
+
description: sync orders table to orders
68
+
- source-table: mydb.shipments
69
+
sink-table: ods_db.ods_shipments
70
+
description: sync shipments table to ods_shipments
Copy file name to clipboardExpand all lines: docs/content/docs/core-concept/table-id.md
+15
Original file line number
Diff line number
Diff line change
@@ -23,3 +23,18 @@ KIND, either express or implied. See the License for the
23
23
specific language governing permissions and limitations
24
24
under the License.
25
25
-->
26
+
27
+
# Definition
28
+
When connecting to external systems, it is necessary to establish a mapping relationship with the storage objects of the external system. This is what **Table Id** refers to.
29
+
30
+
# Example
31
+
To be compatible with most external systems, the Table Id is represented by a 3-tuple : (namespace, schemaName, tableName).
32
+
Connectors should establish the mapping between Table Id and storage objects in external systems.
33
+
34
+
The following table lists the parts in table Id of different data systems:
35
+
36
+
| data system | parts in tableId | String example |
0 commit comments