01
支持以下引擎
02
关键特性
03
描述
04
支持的数据源信息
05
数据库依赖
请下载与 'Maven' 对应的支持列表,并将其复制到 '$SEATNUNNEL_HOME/plugins/jdbc/lib/' 工作目录中
例如,Vertica 数据源:cp vertica-jdbc-xxx.jar $SEATNUNNEL_HOME/plugins/jdbc/lib/
06
数据库映射类型
Vertical Data type | SeaTunnel Data type |
TINYINT UNSIGNED SMALLINT SMALLINT UNSIGNED MEDIUMINT MEDIUMINT UNSIGNED INT INTEGER YEAR | |
INTEGER UNSIGNED BIGINT | |
(Gets the designated column's number of digits to right of the decimal point.))) | |
FLOAT UNSIGNED | |
DOUBLE UNSIGNED | |
VARCHAR TINYTEXT MEDIUMTEXT TEXT LONGTEXT JSON | |
TIMESTAMP | |
MEDIUMBLOB BLOB LONGBLOB BINARY VARBINAR BIT(n) | |
UNKNOWN |
07
源选项
Name | Type | Required | Default | Description |
if you use Vertica the value is com.vertica.jdbc.Driver . | ||||
the row fetch size used in the query toimprove performance by reducing the number database hits required to satisfy the selection criteria. Zero means use jdbc default value. | ||||
partition_column
,则会在单一并发中运行;如果设置了 partition_column
,则将根据任务的并发性进行并行执行。08
任务示例
type_bin 'table'
16 个数据,并查询其所有字段。您还可以指定要查询的字段,以便将最终输出显示在控制台上。env {
您可以在此处设置 Flink 配置
execution.parallelism = 2
job.mode = "BATCH"
}
source{
Jdbc {
url = "jdbc:vertica://localhost:5433/vertica"
driver = "com.vertica.jdbc.Driver"
connection_check_timeout_sec = 100
user = "root"
password = "123456"
query = "select * from type_bin limit 16"
}
}
transform {
# 如果您想获取有关如何配置 seatunnel 的更多信息,并查看完整的转换插件列表,
# 请访问 https://seatunnel.apache.org/docs/transform-v2/sql
}
sink {
Console {}
}
Jdbc {
url = "jdbc:vertica://localhost:5433/vertica"
driver = "com.vertica.jdbc.Driver"
connection_check_timeout_sec = 100
user = "root"
password = "123456"
# 根据需要定义查询逻辑
query = "select * from type_bin"
# 并行分片读取字段
partition_column = "id"
# 片段数量
partition_num = 10
}
}
source {
Jdbc {
url = "jdbc:vertica://localhost:5433/vertica"
driver = "com.vertica.jdbc.Driver"
connection_check_timeout_sec = 100
user = "root"
password = "123456"
# 根据需要定义查询逻辑
query = "select * from type_bin"
partition_column = "id"
# 读取起始边界
partition_lower_bound = 1
# 读取结束边界
partition_upper_bound = 500
partition_num = 10
}
}