Skip to content

Commit

Permalink
doc format
Browse files Browse the repository at this point in the history
  • Loading branch information
bingquanzhao committed Jul 25, 2023
1 parent ae48775 commit b767ae0
Showing 1 changed file with 74 additions and 74 deletions.
148 changes: 74 additions & 74 deletions docs/en/connector-v2/source/Doris.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

> Doris source connector
## Description
## Support Those Engines

Used to read data from Doris.
> Spark<br/>
> Flink<br/>
> SeaTunnel Zeta<br/>
## Key features

Expand All @@ -15,81 +17,70 @@ Used to read data from Doris.
- [x] [parallelism](../../concept/connector-v2-features.md)
- [x] [support user-defined split](../../concept/connector-v2-features.md)

## Options

| name | type | required | default value |
|----------------------------------|--------|----------|---------------|
| fenodes | string | yes | - |
| username | string | yes | - |
| password | string | yes | - |
| table.identifier | string | yes | - |
| schema | config | yes | - |
| doris.filter.query | string | no | - |
| doris.batch.size | int | no | 1024 |
| doris.request.query.timeout.s | int | no | 3600 |
| doris.exec.mem.limit | long | no | 2147483648 |
| doris.request.retries | int | no | 3 |
| doris.request.read.timeout.ms | int | no | 30000 |
| doris.request.connect.timeout.ms | int | no | 30000 |

### fenodes [string]

`Doris` FE address, the format is `"fe_host:fe_http_port"`

### username [string]

`Doris` user username

### password [string]

`Doris` user password

### table.identifier [string]

The name of Doris database and table , the format is `"databases.tablename"`

### schema [config]

#### fields [Config]

The schema of the doris that you want to generate

e.g.

```
schema {
fields {
F_INT = "INT"
F_BIGINT = "BIGINT"
F_TINYINT = "TINYINT"
F_SMALLINT = "SMALLINT"
F_DECIMAL = "DECIMAL(18,6)"
F_BOOLEAN = "BOOLEAN"
F_DOUBLE = "DOUBLE"
F_FLOAT = "FLOAT"
F_CHAR = "String"
F_VARCHAR_11 = "String"
F_STRING = "String"
F_DATETIME_P = "Timestamp"
F_DATETIME = "Timestamp"
F_DATE = "DATE"
}
}
```

### doris.filter.query [string]

Data filtering in doris. the format is "field = value".

e.g.

```
"f_int = 1024"
```
## Description

## Example
Used to read data from Doris.
Doris Source will send a SQL to FE, FE will parse it into an execution plan, send it to BE, and BE will
directly return the data

## Supported DataSource Info

| Datasource | Supported versions | Driver | Url | Maven |
|------------|--------------------------------------|--------|-----|-------|
| Doris | Only Doris2.0 or later is supported. | - | - | - |

## Database Dependency

> Please download the support list corresponding to 'Maven' and copy it to the '$SEATNUNNEL_HOME/plugins/jdbc/lib/' working directory<br/>
## Data Type Mapping

| Doris Data type | SeaTunnel Data type |
|--------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|
| INT | INT |
| TINYINT | TINYINT |
| SMALLINT | SMALLINT |
| BIGINT | BIGINT |
| LARGEINT | `NOT SUPPORT` |
| BOOLEAN | BOOLEAN |
| DECIMAL | DECIMAL((Get the designated column's specified column size)+1,<br/>(Gets the designated column's number of digits to right of the decimal point.))) |
| FLOAT | FLOAT |
| DOUBLE | DOUBLE |
| CHAR<br/>VARCHAR<br/>STRING<br/>TEXT | STRING |
| DATE | DATE |
| DATETIME<br/>DATETIME(p) | TIMESTAMP |
| ARRAY<TYPE> | ARRAY<TYPE> |

## Source Options

| Name | Type | Required | Default | Description |
|----------------------------------|--------|----------|------------|-----------------------------------------------------------------------------------------------------|
| fenodes | string | yes | - | FE address, the format is `"fe_host:fe_http_port"` |
| username | string | yes | - | User username |
| password | string | yes | - | User password |
| table.identifier | string | yes | - | The name of Doris database and table , the format is `"databases.tablename"` |
| schema | config | yes | - | The schema of the doris that you want to generate |
| doris.filter.query | string | no | - | Data filtering in doris. the format is "field = value". |
| doris.batch.size | int | no | 1024 | The maximum value that can be obtained by reading Doris BE once. |
| doris.request.query.timeout.s | int | no | 3600 | Timeout period of Doris scan data, expressed in seconds. |
| doris.exec.mem.limit | long | no | 2147483648 | Maximum memory that can be used by a single be scan request. The default memory is 2G (2147483648). |
| doris.request.retries | int | no | 3 | Number of retries to send requests to Doris FE. |
| doris.request.read.timeout.ms | int | no | 30000 | |
| doris.request.connect.timeout.ms | int | no | 30000 | |

### Tips

> It is not recommended to modify advanced parameters at will
## Task Example

> This is an example of reading a Doris table and writing to Console.
```
env {
execution.parallelism = 2
job.mode = "BATCH"
}
source{
Doris {
fenodes = "doris_e2e:8030"
Expand Down Expand Up @@ -117,5 +108,14 @@ source{
}
}
}
transform {
# If you would like to get more information about how to configure seatunnel and see full list of transform plugins,
# please go to https://seatunnel.apache.org/docs/transform/sql
}
sink {
Console {}
}
```

0 comments on commit b767ae0

Please sign in to comment.