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/en/connector-v2/sink/Doris.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,7 @@ Version Supported
45
45
| sink.max-retries | int | No | 3 | the max retry times if writing records to database failed |
46
46
| sink.buffer-size | int | No | 256 * 1024 | the buffer size to cache data for stream load. |
47
47
| sink.buffer-count | int | No | 3 | the buffer count to cache data for stream load. |
48
+
| doris.batch.size | int | No | 1024 | the batch size of the write to doris each http request, when the row reaches the size or checkpoint is executed, the data of cached will write to server. |
48
49
| doris.config | map | yes | - | This option is used to support operations such as `insert`, `delete`, and `update` when automatically generate sql,and supported formats. |
Copy file name to clipboardExpand all lines: seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/config/DorisConfig.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,7 @@ public class DorisConfig implements Serializable {
65
65
privateStringpassword;
66
66
privateIntegerqueryPort;
67
67
privateStringtableIdentifier;
68
+
privateintbatchSize;
68
69
69
70
// source option
70
71
privateStringreadField;
@@ -76,7 +77,6 @@ public class DorisConfig implements Serializable {
Copy file name to clipboardExpand all lines: seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/config/DorisOptions.java
+8-17Lines changed: 8 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,11 @@ public interface DorisOptions {
90
90
.stringType()
91
91
.noDefaultValue()
92
92
.withDescription("the doris password.");
93
+
Option<Integer> DORIS_BATCH_SIZE =
94
+
Options.key("doris.batch.size")
95
+
.intType()
96
+
.defaultValue(DORIS_BATCH_SIZE_DEFAULT)
97
+
.withDescription("the batch size of the doris read/write.");
93
98
94
99
// source config options
95
100
Option<String> DORIS_READ_FIELD =
@@ -139,22 +144,6 @@ public interface DorisOptions {
Copy file name to clipboardExpand all lines: seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/config/DorisSinkFactory.java
Copy file name to clipboardExpand all lines: seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/rest/RestService.java
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -372,8 +372,7 @@ public static List<BackendV2.BackendRowV2> getBackendsV2(DorisConfig dorisConfig
Copy file name to clipboardExpand all lines: seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/sink/DorisSink.java
0 commit comments