# MQTT示例配置
logging:
level: error
streams:
- input:
type: "mqtt"
host: "localhost"
port: 1883
qos: 1
client_id: "flow_input"
topics:
pipeline:
thread_num: 4
processors:
- type: "json_to_arrow"
- type: "sql"
# SQL查询语句,支持标准SQL语法
query: "SELECT * ,cast(value as string) as tx FROM flow WHERE value > 10"
# 表名(用于SQL查询中引用)
# table_name: "events"
- type: "arrow_to_json"
output:
type: "stdout"
# output:
# type: "mqtt"
# host: "localhost"
# port: 1883
# qos: 1
# client_id: "flow_output"
# topic: "flow_output"