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


##########
docs/en/connector-v2/source/IoTDB.md:
##########
@@ -18,106 +20,53 @@ supports query SQL and can achieve projection effect.
 - [x] [parallelism](../../concept/connector-v2-features.md)
 - [ ] [support user-defined split](../../concept/connector-v2-features.md)
 
-## Options
-
-|            name            |  type   | required | default value |
-|----------------------------|---------|----------|---------------|
-| host                       | string  | no       | -             |
-| port                       | int     | no       | -             |
-| node_urls                  | string  | no       | -             |
-| username                   | string  | yes      | -             |
-| password                   | string  | yes      | -             |
-| sql                        | string  | yes      | -             |
-| schema                     | config  | yes      | -             |
-| fetch_size                 | int     | no       | -             |
-| lower_bound                | long    | no       | -             |
-| upper_bound                | long    | no       | -             |
-| num_partitions             | int     | no       | -             |
-| thrift_default_buffer_size | int     | no       | -             |
-| enable_cache_leader        | boolean | no       | -             |
-| version                    | string  | no       | -             |
-| common-options             |         | no       | -             |
-
-### single node, you need to set host and port to connect to the remote data 
source.
-
-**host** [string] the host of the IoTDB when you select host of the IoTDB
-
-**port** [int] the port of the IoTDB when you select
-
-### multi node, you need to set node_urls to connect to the remote data source.
-
-**node_urls** [string] the node_urls of the IoTDB when you select
-
-e.g.
-
-```text
-127.0.0.1:8080,127.0.0.2:8080
-```
-
-### other parameters
-
-**sql** [string]
-execute sql statement e.g.
-
-```
-select name,age from test
-```
-
-### schema [config]
-
-#### fields [Config]
-
-The schema of the IoTDB that you want to generate
-
-e.g.
-
-```
-schema {
-    fields {
-        name = string
-        age = int
-    }
-  }
-```
-
-### option parameters
-
-### fetch_size [int]
-
-the fetch_size of the IoTDB when you select
-
-### username [string]
-
-the username of the IoTDB when you select
-
-### password [string]
-
-the password of the IoTDB when you select
-
-### lower_bound [long]
-
-the lower_bound of the IoTDB when you select
-
-### upper_bound [long]
-
-the upper_bound of the IoTDB when you select
-
-### num_partitions [int]
-
-the num_partitions of the IoTDB when you select
-
-### thrift_default_buffer_size [int]
-
-the thrift_default_buffer_size of the IoTDB when you select
-
-### enable_cache_leader [boolean]
-
-enable_cache_leader of the IoTDB when you select
+## Description
 
-### version [string]
+Read external data source data through IoTDB.
 
-Version represents the SQL semantic version used by the client, which is used 
to be compatible with the SQL semantics of
-0.12 when upgrading 0.13. The possible values are: V_0_12, V_0_13.
+:::tip
+
+There is a conflict of thrift version between IoTDB and Spark.Therefore, you 
need to execute `rm -f $SPARK_HOME/jars/libthrift*` and `cp 
$IOTDB_HOME/lib/libthrift* $SPARK_HOME/jars/` to resolve it.
+
+:::
+
+## Supported DataSource Info
+
+| Datasource | Supported Versions |      Url       |
+|------------|--------------------|----------------|
+| IoTDB      | `>= 0.13.0`        | localhost:6667 |
+
+## Data Type Mapping
+
+| IotDB Data type | SeaTunnel Data type |
+|-----------------|---------------------|
+| BOOLEAN         | BOOLEAN             |
+| INT32           | TINYINT             |
+| INT32           | SMALLINT            |
+| INT32           | INT                 |
+| INT64           | BIGINT              |
+| FLOAT           | FLOAT               |
+| DOUBLE          | DOUBLE              |
+| TEXT            | STRING              |
+
+## Source Options
+
+|            name            |  type   | required | default value |            
                        Description                                     |

Review Comment:
   |            name            |  type   | required | default value |          
                          Description                                     |
   |            Name            |  Type   | Required | Default Value |          
                        Description                                     |



-- 
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