Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/en/connectors/sink/DB2.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ Write data to DB2 through JDBC. Supports batch and streaming jobs, concurrent wr
|------------------------------------------------------------------------------------------------------|---------------------|
| BOOLEAN | BOOLEAN |
| SMALLINT | SHORT |
| INT<br/>INTEGER<br/> | INTEGER |
| BIGINT | LONG |
| DECIMAL<br/>DEC<br/>NUMERIC<br/>NUM | DECIMAL(38,18) |
| INT<br/>INTEGER<br/> | INT |
| BIGINT | BIGINT |
| DECIMAL<br/>DEC<br/>NUMERIC<br/>NUM | DECIMAL((Get the designated column's specified column size),<br/>(Gets the designated column's number of digits to right of the decimal point.))) |
| REAL | FLOAT |
| FLOAT<br/>DOUBLE<br/>DOUBLE PRECISION<br/>DECFLOAT | DOUBLE |
| CHAR<br/>VARCHAR<br/>LONG VARCHAR<br/>CLOB<br/>GRAPHIC<br/>VARGRAPHIC<br/>LONG VARGRAPHIC<br/>DBCLOB<br/>XML | STRING |
Expand Down
2 changes: 1 addition & 1 deletion docs/en/connectors/sink/Databend.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ They can be downloaded via install-plugin.sh or from the Maven central repositor
| url | String | Yes | - | Databend JDBC connection URL. It must start with `jdbc:databend://` |
| username | String | Yes | - | Databend database username |
| password | String | Yes | - | Databend database password |
| database | String | No | - | Databend database name used when `generate_sink_sql = true` (together with `table`) to generate the write SQL. No default is applied when unset |
| database | String | No | - | Databend database name (together with `table`) that locates the target table to write |
| table | String | No | - | Databend table name |
| batch_size | Integer | No | 1000 | Number of records for batch writing |
| auto_commit | Boolean | No | true | Whether to auto-commit transactions |
Expand Down
4 changes: 2 additions & 2 deletions docs/en/connectors/sink/Mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ transform {
}

sink {
Mysql {
jdbc {
url = "jdbc:mysql://localhost:3306?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true"
driver = "com.mysql.cj.jdbc.Driver"
username = "root"
Expand Down Expand Up @@ -279,7 +279,7 @@ transform {
}

sink {
Mysql {
jdbc {
url = "jdbc:mysql://localhost:3306?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true"
driver = "com.mysql.cj.jdbc.Driver"
username = "root"
Expand Down
4 changes: 2 additions & 2 deletions docs/en/connectors/sink/OceanBase.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Write data to OceanBase through JDBC. The sink supports batch and streaming jobs
| DATE | DATE |
| TIME | TIME |
| DATETIME<br/>TIMESTAMP | TIMESTAMP |
| TINYBLOB<br/>MEDIUMBLOB<br/>BLOB<br/>LONGBLOB<br/>BINARY<br/>VARBINAR<br/>BIT(n) | BYTES |
| TINYBLOB<br/>MEDIUMBLOB<br/>BLOB<br/>LONGBLOB<br/>BINARY<br/>VARBINARY<br/>BIT(n) | BYTES |
| GEOMETRY<br/>UNKNOWN | Not supported yet |

### Oracle Mode
Expand Down Expand Up @@ -282,7 +282,7 @@ sink {
table = "sink_table"
primary_keys = ["id"]
is_exactly_once = true
xa_data_source_class_name = "com.oceanbase.jdbc.OceanBaseXADataSource"
xa_data_source_class_name = "com.oceanbase.jdbc.OceanBaseDataSource"
max_retries = 0
batch_size = 1000
}
Expand Down
4 changes: 3 additions & 1 deletion docs/en/connectors/sink/PostgreSql.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ semantics (using XA transaction guarantee).
- [x] [timer flush](../../introduction/concepts/connector-v2-features.md)

> Use `Xa transactions` to ensure `exactly-once`. So only support `exactly-once` for the database which is
> support `Xa transactions`. You can set `is_exactly_once=true` to enable it.
> support `Xa transactions`. You can set `is_exactly_once=true` and `max_retries=0` to enable it.

## Supported DataSource Info

Expand Down Expand Up @@ -88,6 +88,7 @@ semantics (using XA transaction guarantee).
| connection_check_timeout_sec | Int | No | 30 | The time in seconds to wait for the database operation used to validate the connection to complete. |
| max_retries | Int | No | 0 | The number of retries to submit failed (executeBatch) |
| batch_size | Int | No | 1000 | For batch writing, when the number of buffered records reaches the number of `batch_size` or the time reaches `checkpoint.interval`<br/>, the data will be flushed into the database |
| batch_interval_ms | Long | No | 0 | Write-triggered flush interval in milliseconds. `0` disables time-based flushing. When greater than 0, the writer checks elapsed time on each record and flushes synchronously when the interval is reached. |
| is_exactly_once | Boolean | No | false | Whether to enable exactly-once semantics, which will use Xa transactions. If on, you need to<br/>set `xa_data_source_class_name`. |
| generate_sink_sql | Boolean | No | false | Generate sql statements based on the database table you want to write to. |
| xa_data_source_class_name | String | No | - | The xa data source class name of the database Driver, for example, PostgreSQL is `org.postgresql.xa.PGXADataSource`, and<br/>please refer to appendix for other data sources |
Expand All @@ -102,6 +103,7 @@ semantics (using XA transaction guarantee).
| custom_sql | String | no | - | When data_save_mode selects CUSTOM_PROCESSING, you should fill in the CUSTOM_SQL parameter. This parameter usually fills in a SQL that can be executed. SQL will be executed before synchronization tasks. |
| enable_upsert | Boolean | No | true | Enable upsert by primary_keys exist, If the task has no key duplicate data, setting this parameter to `false` can speed up data import |
| use_copy_statement | Boolean | No | false | Use PostgreSQL `COPY <table> (...) FROM STDIN WITH CSV` for bulk import. This option takes precedence over the regular INSERT / UPSERT path, requires a JDBC driver connection that exposes `getCopyAPI()`, and does not support `MAP`, `ARRAY`, or `ROW` types. |
| multi_table_sink_replica | Int | No | 1 | The number of sink writer replicas used when writing multiple tables. |

### table [string]

Expand Down
2 changes: 1 addition & 1 deletion docs/en/connectors/sink/Zendesk.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ URL (e.g., `{"ticket": {...}}` for the tickets endpoint).

- [ ] [exactly-once](../../introduction/concepts/connector-v2-features.md)
- [ ] [cdc](../../introduction/concepts/connector-v2-features.md)
- [ ] [support multiple table write](../../introduction/concepts/connector-v2-features.md)
- [x] [support multiple table write](../../introduction/concepts/connector-v2-features.md)
- [ ] [timer flush](../../introduction/concepts/connector-v2-features.md)

## Sink Options
Expand Down
Loading
Loading