Transforms Configurations
Flink Stream SQL Generic
Configuration Samples
Configuration Details
Config | Request | Default | Comments |
group.id | Optional | df_trans_flink_group_id | Kafka consumer id. |
data.format.input | Optional | json | Available value are "json_string" and "json". |
data.format.output | Optional | json | Available value are "json_string" and "json".[*] |
avro.schema.enabled | Optional | false | Whether AVRO schema is enabled in Kafka Connect. |
column.name.list | Yes | N/A | The list of column names output to Kafka topic. |
column.schema.list | Yes | N/A | The list of datatype to Kafka topic. |
topic.for.query | Yes | N/A | The Kafka topic to query data. |
topic.for.result | Yes | N/A | The Kafka topic to output data |
trans.sql | Yes | N/A | The Flink Stream SQL query. |
Example of json and json string
json: {"name":"BABA", "location":"China"}
json string: "{\"name\":\"BABA\", \"location\":\"China\"}"
Flink Stream SQL A2J
Below is the configuration for Flink stream SQL from Avro data to Json data.
Configuration Samples
Configuration Details
Config | Request | Default | Comments |
group.id | Optional | df_trans_flink_group_id | Kafka consumer id. |
static.avro.schema | Optional | N/A | The AVRO schema string. |
schema.subject | Optional | N/A | The AVRO schema subject in schema registry. |
schema.version | Optional | 'latest' | Specified version of schema to use |
schema.registry | Optional | localhost:8081 | The host and port for schema registry. |
topic.for.query | Yes | N/A | The Kafka topic to query data. |
topic.for.result | Yes | N/A | The Kafka topic to output data |
trans.sql | Yes | N/A | The Flink Stream SQL query. |
Note, you must specify Avro schema either by schema.subject or static.avro.schema.
Last updated