使用SQL处理数据,支持Spark丰富的UDF函数
Options
name | type | required | default value |
---|---|---|---|
[sql] sql-string | |||
[common-options] common-options-string |
sql [string]
SQL语句,SQL中使用的表名为 Source
或 Transform
插件中配置的 result_table_name
common options [string]
Transform
插件通用参数,详情参照 [Transform Plugin]
Examples
sql {
sql = "select username, address from user_info",
}
使用SQL插件用于字段删减,仅保留
username
和address
字段,将丢弃其余字段。user_info
为之前插件配置的result_table_name
sql {
sql = "select substring(telephone, 0, 10) from user_info",
}
使用SQL插件用于数据处理,使用substring functions对
telephone
字段进行截取操作
sql {
sql = "select avg(age) from user_info",
table_name = "user_info"
}
使用SQL插件用于数据聚合,使用avg functions对原始数据集进行聚合操作,取出
age
字段平均值
文章列表
- Apache Seatunnel-Roadmap
- Apache Seatunnel-Sink plugin : Clickhouse [Spark]
- Apache Seatunnel-Sink plugin : Console [Spark]
- Apache Seatunnel-Sink plugin : Elasticsearch [Spark]
- Apache Seatunnel-Sink plugin : Email [Spark]
- Apache Seatunnel-Sink plugin : File [Spark]
- Apache Seatunnel-Sink plugin : Hbase [Spark]
- Apache Seatunnel-Sink plugin : Hdfs [Spark]
- Apache Seatunnel-Sink plugin : Mysql [Spark]
- Apache Seatunnel-Sink plugin : Phoenix [Spark]
- Apache Seatunnel-Source plugin : Fake [Spark]
- Apache Seatunnel-Source plugin : FakeStream [Spark]
- Apache Seatunnel-Source plugin : Hive [Spark]
- Apache Seatunnel-Source plugin : JDBC [Spark]
- Apache Seatunnel-Source plugin : Kafka [Flink]
- Apache Seatunnel-Source plugin : Kafka [Spark]
- Apache Seatunnel-Source plugin : Socket [Flink]
- Apache Seatunnel-Source plugin : SocketStream [Spark]
- Apache Seatunnel-Transform Plugin
- Apache Seatunnel-Transform plugin : Json [Spark]
- Apache Seatunnel-Transform plugin : SQL [Spark]
- Apache Seatunnel-Transform plugin : Split [Spark]
- Apache Seatunnel-seatunnel v2.x 与 v1.x 的区别是什么?
- Apache Seatunnel-start-seatunnel-flink.sh 使用方法
- Apache Seatunnel-start-seatunnel-spark.sh 使用方法
- Apache Seatunnel-下载、安装
- Apache Seatunnel-为 seatunnel v2.x 贡献代码
- Apache Seatunnel-完整配置文件案例 [Spark]
- Apache Seatunnel-快速开始
- Apache Seatunnel-插件开发
- Apache Seatunnel-深入seatunnel
- Apache Seatunnel-部署与运行