Skip to content
Merged
13 changes: 7 additions & 6 deletions docs/en/connectors/sink/Jdbc.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,24 +283,25 @@ Postgres 9.5 version or below,please set it to `postgresLow` to support cdc

### dialect [string]

The appointed dialect, if it does not exist, is still obtained according to the url, and the priority is higher than the url. For example,when using starrocks, you need set it to `starrocks`. Similarly, when using mysql, you need to set its value to `mysql`.
The appointed dialect. When set, its value must match one of the dialect names in the dialect list below (case-insensitive) and takes priority over the dialect inferred from the url; when it is not set, the dialect is inferred from the url. For example, when using MySQL, you need to set its value to `mysql`. Note: StarRocks is not a dialect name. When using StarRocks, leave `dialect` unset and set `compatible_mode` to `starrocks`. Inceptor is not a dialect name either. When using Inceptor, leave `dialect` unset or set `dialect` to `HIVE`, and set `compatible_mode` to `inceptor`.

If one dialect not supported by SeaTunnel, it will use the default dialect `GenericDialect`. Just make sure the driver you provided support the database you want to connect.
If the `dialect` option is not set and no dialect matches the url, SeaTunnel uses the default dialect `GenericDialect`. If `dialect` is set to a value that does not match any supported dialect name, job initialization fails instead of falling back. Just make sure the driver you provided supports the database you want to connect.

#### dialect list

| | Dialect Name | |
|-----------|--------------|----------|
| Greenplum | DB2 | Dameng |
| Gbase8a | HIVE | KingBase |
| MySQL | StarRocks | Oracle |
| MySQL | OpenGauss | Oracle |
| Phoenix | Postgres | Redshift |
| SapHana | Snowflake | Sqlite |
| SqlServer | Tablestore | Teradata |
| Vertica | OceanBase | XUGU |
| IRIS | Inceptor | Highgo |
| OpenGauss | Presto | Dsql |
| DuckDB | YashanDB | CockroachDB |
| IRIS | Presto | Highgo |
| DSQL | | |
| YashanDB | CockroachDB | |
| DuckDB | | |
### database [string]

The target database or catalog used in generated SQL mode. This option is required when `generate_sink_sql = true` and must not be combined with `query`.
Expand Down
4 changes: 2 additions & 2 deletions docs/en/connectors/sink/Kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import ChangeLog from '../changelog/connector-kafka.md';
- [ ] [cdc](../../introduction/concepts/connector-v2-features.md)
- [ ] [timer flush](../../introduction/concepts/connector-v2-features.md)

> By default, we will use 2pc to guarantee the message is sent to kafka exactly once.
> By default, `semantics` is `NON`: messages are sent directly without transactions and delivery is not guaranteed (messages may be lost or duplicated on failure). Set `semantics = EXACTLY_ONCE` to use 2pc (Kafka transactions) for exactly-once delivery.

## Description

Expand Down Expand Up @@ -456,7 +456,7 @@ sink {
}
```

Note: when the upstream rows are produced with `format = "NATIVE"`, the `key` and `value` columns are `byte[]`. Combining `kafka_headers_fields` with `format = "NATIVE"` is not a "configure carefully" situation — the sink's serializer construction throws `KafkaConnectorException(OPERATION_NOT_SUPPORTED)` at job initialization if both are set, so the job fails to start. Do not configure `kafka_headers_fields` together with `format = "NATIVE"`; headers for NATIVE inputs are already encoded inside the `value` byte array.
Note: when the upstream rows are produced with `format = "NATIVE"`, the `key` and `value` columns are `byte[]`. Combining `kafka_headers_fields` with `format = "NATIVE"` is not a "configure carefully" situation — the sink's serializer construction throws `KafkaConnectorException(OPERATION_NOT_SUPPORTED)` at job initialization if both are set, so the job fails to start. Do not configure `kafka_headers_fields` together with `format = "NATIVE"`; for NATIVE inputs the record headers are not written into the `value` byte array — they are carried separately in the Kafka record headers, which is why `kafka_headers_fields` cannot be combined with this format.

## FAQ

Expand Down
2 changes: 1 addition & 1 deletion docs/en/connectors/source/CosFile.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ To use this connector you need put hadoop-cos-{hadoop.version}-{version}.jar and
| row_delimiter | string | no | \n | Row delimiter for text files, default `\n`. |
| parse_partition_from_path | boolean | no | true | Whether to parse partition keys and values from the file path. |
| skip_header_row_number | long | no | 0 | Number of header lines to skip, only for txt and csv. |
| null_format | string | no | - | Only used when file_format_type is text. Defines which string is read as `null`, e.g. `\N`. |
| null_format | string | no | - | Only used when file_format_type is text or csv. Defines which string is read as `null`, e.g. `\N`. |
| date_format | string | no | yyyy-MM-dd | Date format for string-to-date conversion, supports `yyyy-MM-dd` `yyyy.MM.dd` `yyyy/MM/dd`. |
| datetime_format | string | no | yyyy-MM-dd HH:mm:ss | Datetime format for string-to-datetime conversion, supports `yyyy-MM-dd HH:mm:ss` `yyyy.MM.dd HH:mm:ss` `yyyy/MM/dd HH:mm:ss` `yyyyMMddHHmmss`. |
| time_format | string | no | HH:mm:ss | Time format for string-to-time conversion, supports `HH:mm:ss` `HH:mm:ss.SSS`. |
Expand Down
2 changes: 2 additions & 0 deletions docs/en/connectors/source/FtpFile.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import ChangeLog from '../changelog/connector-file-ftp.md';
- [x] file format type
- [x] text
- [x] csv
- [x] parquet
- [x] orc
- [x] json
- [x] excel
- [x] xml
Expand Down
6 changes: 1 addition & 5 deletions docs/en/connectors/source/GcsFile.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ The explicit `service_account_key_file` option takes precedence over the corresp
| schema | config | conditional | - | Required for `text`, `json`, `excel`, `csv`, and `xml`. See [Schema Feature](../../introduction/concepts/schema-feature.md). |
| read_columns | list | no | - | Columns to project from the source. |
| read_partitions | list | no | - | The partitions that the user wants to read, e.g. `["year=2024"]`. When set, only these partitions are read. |
| field_delimiter | string | no | `\001` | Field delimiter for text and CSV files. `delimiter` is an alias. |
| field_delimiter | string | no | `\001` for text; `,` for csv | Field delimiter for text and CSV files. When unset, defaults to `\001` for text and `,` for CSV. `delimiter` is an alias. |
| row_delimiter | string | no | `\n` | Row delimiter for text files. |
| skip_header_row_number | long | no | `0` | Number of initial text or CSV rows to skip. |
| csv_use_header_line | boolean | no | `false` | Use the header line to parse the file, only used when the file format is `csv` and the file contains an RFC 4180 header line. |
Expand Down Expand Up @@ -90,7 +90,6 @@ The explicit `service_account_key_file` option takes precedence over the corresp
| poi_excel_max_file_size | long | no | `52428800` | Maximum Excel file size in bytes for the POI engine. |
| xml_row_tag | string | conditional | - | XML element representing one row. |
| xml_use_attr_format | boolean | conditional | - | Whether XML values are read from attributes. |
| csv_use_header_line | boolean | no | false | Whether to use the header line to parse the file, only used when the file_format is `csv` and the file contains the header line that match RFC 4180. |
| discovery_mode | string | no | `once` | `once` or `continuous`. Continuous mode currently requires update sync and binary format. |
| scan_interval | string | no | `10S` | Poll interval for continuous discovery. |
| start_mode | string | no | `earliest` | `earliest` processes existing files; `latest` starts with later changes. |
Expand All @@ -105,9 +104,6 @@ The explicit `service_account_key_file` option takes precedence over the corresp
| backup_path | string | conditional | - | Required for `post_sync_action=backup`. Must not overlap the source path. |
| retention_max_age | string | no | - | Maximum age for SeaTunnel backup objects. |
| retention_check_interval | string | no | `1H` | Backup retention scan interval. |
| file_filter_modified_start | string | no | - | File modification time filter. The connector will filter files based on the last modification start time (inclusive). Default format: `yyyy-MM-dd HH:mm:ss`. |
| file_filter_modified_end | string | no | - | File modification time filter. The connector will filter files based on the last modification end time (exclusive). Default format: `yyyy-MM-dd HH:mm:ss`. |
| sort_files_by_modification_time | boolean | no | false | Sort files by modification time in descending order. Enable this when reading evolving schemas to ensure schema inference uses the latest file. |
| metalake_type | string | no | `gravitino` | The type of metalake service, currently supports `gravitino`. |
| common-options | | no | - | See [Source Common Options](../common-options/source-common-options.md). |

Expand Down
Loading
Loading