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
Copy file name to clipboardExpand all lines: docs/content/docs/core-concept/data-pipeline.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,6 +120,7 @@ Note that whilst the parameters are each individually optional, at least one of
120
120
| `parallelism` | The global parallelism of the pipeline. Defaults to 1. | optional |
121
121
| `local-time-zone` | The local time zone defines current session time zone id. | optional |
122
122
| `execution.runtime-mode` | The runtime mode of the pipeline includes STREAMING and BATCH, with the default value being STREAMING. | optional |
123
+
| `route-mode` | The matching mode for [route]({{< ref "docs/core-concept/route" >}}#route-mode) rules. One of: `ALL_MATCH` (default, apply all matching rules) or `FIRST_MATCH` (apply only the first matching rule). | optional |
123
124
| `schema.change.behavior` | How to handle [changes in schema]({{< ref "docs/core-concept/schema-evolution" >}}). One of: [`exception`]({{< ref "docs/core-concept/schema-evolution" >}}#exception-mode), [`evolve`]({{< ref "docs/core-concept/schema-evolution" >}}#evolve-mode), [`try_evolve`]({{< ref "docs/core-concept/schema-evolution" >}}#tryevolve-mode), [`lenient`]({{< ref "docs/core-concept/schema-evolution" >}}#lenient-mode) (default) or [`ignore`]({{< ref "docs/core-concept/schema-evolution" >}}#ignore-mode). | optional |
124
125
| `schema.operator.uid` | The unique ID for schema operator. This ID will be used for inter-operator communications and must be unique across operators. **Deprecated**: use `operator.uid.prefix` instead. | optional |
125
126
| `schema-operator.rpc-timeout` | The timeout time for SchemaOperator to wait downstream SchemaChangeEvent applying finished, the default value is 3 minutes. | optional |
Copy file name to clipboardExpand all lines: docs/content/docs/core-concept/route.md
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ under the License.
28
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.
@@ -39,6 +39,29 @@ To describe a route, the follows are required:
39
39
40
40
A route module can contain a list of source-table/sink-table rules.
41
41
42
+
# Route Mode
43
+
By default, all matching route rules are applied to a table. You can configure the `route-mode` option in the pipeline configuration to change this behavior:
|`ALL_MATCH`| Apply all matching route rules to a table. This is the default mode. |
48
+
|`FIRST_MATCH`| Apply only the first matching route rule and stop evaluation. |
49
+
50
+
For example, to use `FIRST_MATCH` mode:
51
+
52
+
```yaml
53
+
pipeline:
54
+
name: Sync MySQL Database to Doris
55
+
parallelism: 2
56
+
route-mode: FIRST_MATCH
57
+
```
58
+
59
+
{{< hint info >}}
60
+
61
+
When using `FIRST_MATCH` mode, route rules are evaluated in the order they are defined. The first rule that matches the source table will be applied, and subsequent rules will be skipped.
62
+
63
+
{{< /hint >}}
64
+
42
65
# Example
43
66
## Route one Data Source table to one Data Sink table
44
67
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:
0 commit comments