Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature-WIP][Connector-V2][Doris] Add Doris ConnectorV2 Source #5086

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 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
121 changes: 121 additions & 0 deletions docs/en/connector-v2/source/Doris.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
# Doris
bingquanzhao marked this conversation as resolved.
Show resolved Hide resolved

> Doris source connector

## Description

Used to read data from Doris.

## Key features

- [x] [batch](../../concept/connector-v2-features.md)
- [ ] [stream](../../concept/connector-v2-features.md)
- [ ] [exactly-once](../../concept/connector-v2-features.md)
- [x] [schema projection](../../concept/connector-v2-features.md)
- [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 | - |
EricJoy2048 marked this conversation as resolved.
Show resolved Hide resolved
| 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"
```

## Example

```
source{
Doris {
fenodes = "doris_e2e:8030"
username = root
password = ""
table.identifier = "e2e_source.doris_e2e_table"
schema {
fields {
F_ID = "BIGINT"
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"
}
}
}
}
```

1 change: 1 addition & 0 deletions plugin-mapping.properties
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ seatunnel.sink.RabbitMQ = connector-rabbitmq
seatunnel.source.RabbitMQ = connector-rabbitmq
seatunnel.source.OpenMldb = connector-openmldb
seatunnel.source.SqlServer-CDC = connector-cdc-sqlserver
seatunnel.source.Doris = connector-doris
seatunnel.sink.Doris = connector-doris
seatunnel.source.Maxcompute = connector-maxcompute
seatunnel.sink.Maxcompute = connector-maxcompute
Expand Down
13 changes: 13 additions & 0 deletions seatunnel-connectors-v2/connector-doris/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<name>SeaTunnel : Connectors V2 : Doris</name>

<properties>
<connector.name>connector.doris</connector.name>
<httpclient.version>4.5.13</httpclient.version>
<httpcore.version>4.4.4</httpcore.version>
</properties>
Expand Down Expand Up @@ -70,5 +71,17 @@
<artifactId>commons-io</artifactId>
<version>${commons-io.version}</version>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>seatunnel-arrow-5.0</artifactId>
<version>${project.version}</version>
<classifier>optional</classifier>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>seatunnel-thrift-service</artifactId>
<version>${project.version}</version>
<classifier>optional</classifier>
</dependency>
</dependencies>
</project>
Loading
Loading