zhilinli123 commented on code in PR #4903:
URL: https://github.com/apache/seatunnel/pull/4903#discussion_r1241600380


##########
docs/en/connector-v2/sink/Doris.md:
##########
@@ -17,67 +30,130 @@ Version Supported
 
 :::
 
-## Key features
-
-- [x] [exactly-once](../../concept/connector-v2-features.md)
-- [x] [cdc](../../concept/connector-v2-features.md)
-
-## Options
-
-|        name        |  type  | required | default value |
-|--------------------|--------|----------|---------------|
-| fenodes            | string | yes      | -             |
-| username           | string | yes      | -             |
-| password           | string | yes      | -             |
-| table.identifier   | string | yes      | -             |
-| sink.label-prefix  | string | yes      | -             |
-| sink.enable-2pc    | bool   | no       | true          |
-| sink.enable-delete | bool   | no       | false         |
-| doris.config       | map    | yes      | -             |
-
-### fenodes [string]
-
-`Doris` cluster fenodes address, the format is `"fe_ip:fe_http_port, ..."`
-
-### username [string]
-
-`Doris` user username
+## Sink Options
+
+| Name                | Type   | Required | Default    | Description           
                                                                                
                                                                                
                                                                                
                       |
+|---------------------|--------|----------|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| fenodes             | String | Yes      | -          | `Doris` cluster 
fenodes address, the format is `"fe_ip:fe_http_port, ..."`                      
                                                                                
                                                                                
                             |
+| username            | String | Yes      | -          | `Doris` user username 
                                                                                
                                                                                
                                                                                
                       |
+| password            | String | Yes      | -          | `Doris` user password 
                                                                                
                                                                                
                                                                                
                       |
+| table.identifier    | String | Yes      | -          | The name of `Doris` 
table                                                                           
                                                                                
                                                                                
                         |
+| sink.label-prefix   | String | Yes      | -          | The label prefix used 
by stream load imports. In the 2pc scenario, global uniqueness is required to 
ensure the EOS semantics of SeaTunnel.                                          
                                                                                
                         |
+| sink.enable-2pc     | bool   | No       | -          | Whether to enable 
two-phase commit (2pc), the default is true, to ensure Exactly-Once semantics. 
For two-phase commit, please refer to 
[here](https://doris.apache.org/docs/dev/sql-manual/sql-reference/Data-Manipulation-Statements/Load/STREAM-LOAD).
                                     |
+| sink.enable-delete  | bool   | No       | -          | Whether to enable 
deletion. This option requires Doris table to enable batch delete function 
(0.15+ version is enabled by default), and only supports Unique model. you can 
get more detail at this 
[link](https://doris.apache.org/docs/dev/data-operate/update-delete/batch-delete-manual)
 |
+| sink.check-interval | int    | No       | 10000      | check exception with 
the interval while loading                                                      
                                                                                
                                                                                
                        |
+| sink.max-retries    | int    | No       | 3          | the max retry times 
if writing records to database failed                                           
                                                                                
                                                                                
                         |
+| sink.buffer-size    | int    | No       | 256 * 1024 | the buffer size to 
cache data for stream load.                                                     
                                                                                
                                                                                
                          |
+| sink.buffer-count   | int    | No       | 3          | the buffer count to 
cache data for stream load.                                                     
                                                                                
                                                                                
                         |
+| doris.config        | map    | yes      | -          | This option is used 
to support operations such as `insert`, `delete`, and `update` when 
automatically generate sql,and supported formats.                               
                                                                                
                                     |
+
+## Data Type Mapping
+
+| Doris Data type | SeaTunnel Data type                     |
+|-----------------|-----------------------------------------|
+| BOOLEAN         | BOOLEAN                                 |
+| TINYINT         | TINYINT                                 |
+| SMALLINT        | SMALLINT<br/>TINYINT                    |
+| INT             | INT<br/>SMALLINT<br/>TINYINT            |
+| BIGINT          | BIGINT<br/>INT<br/>SMALLINT<br/>TINYINT |
+| LARGEINT        | BIGINT<br/>INT<br/>SMALLINT<br/>TINYINT |
+| FLOAT           | FLOAT                                   |
+| DOUBLE          | DOUBLE<br/>FLOAT                        |
+| DECIMAL         | DECIMAL<br/>DOUBLE<br/>FLOAT            |
+| DATE            | DATE                                    |
+| DATETIME        | TIMESTAMP                               |
+| CHAR            | STRING                                  |
+| VARCHAR         | STRING                                  |
+| STRING          | STRING                                  |
+| ARRAY           | ARRAY                                   |
+| MAP             | MAP                                     |
+| JSON            | STRING                                  |
+| HLL             | Not supported yet                       |
+| BITMAP          | Not supported yet                       |
+| QUANTILE_STATE  | Not supported yet                       |
+| STRUCT          | Not supported yet                       |
 
-### password [string]
 
-`Doris` user password
-
-### table.identifier [string]
-
-The name of `Doris` table
-
-### sink.label-prefix [string]
-
-The label prefix used by stream load imports. In the 2pc scenario, global 
uniqueness is required to ensure the EOS semantics of SeaTunnel.
-
-### sink.enable-2pc [bool]
-
-Whether to enable two-phase commit (2pc), the default is true, to ensure 
Exactly-Once semantics. For two-phase commit, please refer to 
[here](https://doris.apache.org/docs/dev/sql-manual/sql-reference/Data-Manipulation-Statements/Load/STREAM-LOAD).
-
-### sink.enable-delete [bool]
+#### Supported import data formats

Review Comment:
   `Supported Import Data Formats`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to