Skip to content

Commit 825caa8

Browse files
authored
[Improve][API] Add IGNORE savemode type (#7443)
1 parent 9006a20 commit 825caa8

File tree

13 files changed

+38
-22
lines changed

13 files changed

+38
-22
lines changed

docs/en/connector-v2/sink/Doris.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ Before the synchronous task is turned on, different treatment schemes are select
5757
Option introduction:
5858
`RECREATE_SCHEMA` :Will create when the table does not exist, delete and rebuild when the table is saved
5959
`CREATE_SCHEMA_WHEN_NOT_EXIST` :Will Created when the table does not exist, skipped when the table is saved
60-
`ERROR_WHEN_SCHEMA_NOT_EXIST` :Error will be reported when the table does not exist
60+
`ERROR_WHEN_SCHEMA_NOT_EXIST` :Error will be reported when the table does not exist
61+
`IGNORE` :Ignore the treatment of the table
6162

6263
### data_save_mode[Enum]
6364

docs/en/connector-v2/sink/Elasticsearch.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,17 +109,18 @@ Sink plugin common parameters, please refer to [Sink Common Options](../sink-com
109109

110110
Before the synchronous task is turned on, different treatment schemes are selected for the existing surface structure of the target side.
111111
Option introduction:
112-
RECREATE_SCHEMA :Will create when the table does not exist, delete and rebuild when the table is saved
113-
CREATE_SCHEMA_WHEN_NOT_EXIST :Will Created when the table does not exist, skipped when the table is saved
114-
ERROR_WHEN_SCHEMA_NOT_EXIST :Error will be reported when the table does not exist
112+
`RECREATE_SCHEMA` :Will create when the table does not exist, delete and rebuild when the table is saved
113+
`CREATE_SCHEMA_WHEN_NOT_EXIST` :Will Created when the table does not exist, skipped when the table is saved
114+
`ERROR_WHEN_SCHEMA_NOT_EXIST` :Error will be reported when the table does not exist
115+
`IGNORE` :Ignore the treatment of the table
115116

116117
### data_save_mode
117118

118119
Before the synchronous task is turned on, different processing schemes are selected for data existing data on the target side.
119120
Option introduction:
120-
DROP_DATA: Preserve database structure and delete data
121-
APPEND_DATA:Preserve database structure, preserve data
122-
ERROR_WHEN_DATA_EXISTS:When there is data, an error is reported
121+
`DROP_DATA`: Preserve database structure and delete data
122+
`APPEND_DATA`:Preserve database structure, preserve data
123+
`ERROR_WHEN_DATA_EXISTS`:When there is data, an error is reported
123124

124125
## Examples
125126

docs/en/connector-v2/sink/Jdbc.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ Before the synchronous task is turned on, different treatment schemes are select
183183
Option introduction:
184184
`RECREATE_SCHEMA` :Will create when the table does not exist, delete and rebuild when the table is saved
185185
`CREATE_SCHEMA_WHEN_NOT_EXIST` :Will Created when the table does not exist, skipped when the table is saved
186-
`ERROR_WHEN_SCHEMA_NOT_EXIST` :Error will be reported when the table does not exist
186+
`ERROR_WHEN_SCHEMA_NOT_EXIST` :Error will be reported when the table does not exist
187+
`IGNORE` :Ignore the treatment of the table
187188

188189
### data_save_mode [Enum]
189190

docs/en/connector-v2/sink/LocalFile.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ Existing dir processing method.
214214
- RECREATE_SCHEMA: will create when the dir does not exist, delete and recreate when the dir is exist
215215
- CREATE_SCHEMA_WHEN_NOT_EXIST: will create when the dir does not exist, skipped when the dir is exist
216216
- ERROR_WHEN_SCHEMA_NOT_EXIST: error will be reported when the dir does not exist
217+
- IGNORE :Ignore the treatment of the table
217218

218219
### data_save_mode [string]
219220

docs/en/connector-v2/sink/PostgreSql.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ Before the synchronous task is turned on, different treatment schemes are select
118118
Option introduction:
119119
`RECREATE_SCHEMA` :Will create when the table does not exist, delete and rebuild when the table is saved
120120
`CREATE_SCHEMA_WHEN_NOT_EXIST` :Will Created when the table does not exist, skipped when the table is saved
121-
`ERROR_WHEN_SCHEMA_NOT_EXIST` :Error will be reported when the table does not exist
121+
`ERROR_WHEN_SCHEMA_NOT_EXIST` :Error will be reported when the table does not exist
122+
`IGNORE` :Ignore the treatment of the table
122123

123124
### data_save_mode[Enum]
124125

docs/en/connector-v2/sink/S3File.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@ Before turning on the synchronous task, do different treatment of the target pat
281281
Option introduction:
282282
`RECREATE_SCHEMA` :Will be created when the path does not exist. If the path already exists, delete the path and recreate it.
283283
`CREATE_SCHEMA_WHEN_NOT_EXIST` :Will Created when the path does not exist, use the path when the path is existed.
284-
`ERROR_WHEN_SCHEMA_NOT_EXIST` :Error will be reported when the path does not exist
284+
`ERROR_WHEN_SCHEMA_NOT_EXIST` :Error will be reported when the path does not exist
285+
`IGNORE` :Ignore the treatment of the table
285286

286287
### data_save_mode[Enum]
287288

docs/en/connector-v2/sink/StarRocks.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ Before the synchronous task is turned on, different treatment schemes are select
107107
Option introduction:
108108
`RECREATE_SCHEMA` :Will create when the table does not exist, delete and rebuild when the table is saved
109109
`CREATE_SCHEMA_WHEN_NOT_EXIST` :Will Created when the table does not exist, skipped when the table is saved
110-
`ERROR_WHEN_SCHEMA_NOT_EXIST` :Error will be reported when the table does not exist
110+
`ERROR_WHEN_SCHEMA_NOT_EXIST` :Error will be reported when the table does not exist
111+
`IGNORE` :Ignore the treatment of the table
111112

112113
### data_save_mode[Enum]
113114

docs/zh/connector-v2/sink/Doris.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,19 @@ Doris Sink连接器的内部实现是通过stream load批量缓存和导入的
5353
### schema_save_mode[Enum]
5454

5555
在开启同步任务之前,针对现有的表结构选择不同的处理方案。
56-
选项介绍:
56+
选项介绍:
5757
`RECREATE_SCHEMA` :表不存在时创建,表保存时删除并重建。
58-
`CREATE_SCHEMA_WHEN_NOT_EXIST` :表不存在时会创建,表存在时跳过。
59-
`ERROR_WHEN_SCHEMA_NOT_EXIST` :表不存在时会报错。
58+
`CREATE_SCHEMA_WHEN_NOT_EXIST` :表不存在时会创建,表存在时跳过。
59+
`ERROR_WHEN_SCHEMA_NOT_EXIST` :表不存在时会报错。
60+
`IGNORE` :忽略对表的处理。
6061

6162
### data_save_mode[Enum]
6263

6364
在开启同步任务之前,针对目标端已有的数据选择不同的处理方案。
64-
选项介绍:
65-
`DROP_DATA`: 保留数据库结构并删除数据。
66-
`APPEND_DATA`:保留数据库结构,保留数据。
67-
`CUSTOM_PROCESSING`:用户自定义处理。
65+
选项介绍:
66+
`DROP_DATA`: 保留数据库结构并删除数据。
67+
`APPEND_DATA`:保留数据库结构,保留数据。
68+
`CUSTOM_PROCESSING`:用户自定义处理。
6869
`ERROR_WHEN_DATA_EXISTS`:有数据时报错。
6970

7071
### save_mode_create_template

docs/zh/connector-v2/sink/Elasticsearch.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ Sink插件常用参数,请参考 [Sink常用选项](../sink-common-options.md)
111111
`RECREATE_SCHEMA` :当表不存在时会创建,当表已存在时会删除并重建<br/>
112112
`CREATE_SCHEMA_WHEN_NOT_EXIST` :当表不存在时会创建,当表已存在时则跳过创建<br/>
113113
`ERROR_WHEN_SCHEMA_NOT_EXIST` :当表不存在时将抛出错误<br/>
114+
`IGNORE` :忽略对表的处理<br/>
114115

115116
### data_save_mode
116117

docs/zh/connector-v2/sink/Jdbc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ Sink插件常用参数,请参考 [Sink常用选项](../sink-common-options.md)
178178
`RECREATE_SCHEMA`:当表不存在时会创建,当表已存在时会删除并重建<br/>
179179
`CREATE_SCHEMA_WHEN_NOT_EXIST`:当表不存在时会创建,当表已存在时则跳过创建<br/>
180180
`ERROR_WHEN_SCHEMA_NOT_EXIST`:当表不存在时将抛出错误<br/>
181+
`IGNORE` :忽略对表的处理<br/>
181182

182183
### data_save_mode [Enum]
183184

0 commit comments

Comments
 (0)