Flink Version | Description |
1.11 | Supported |
1.13 | Supported |
1.14 | Supported |
1.16 | Supported |
id
and name
. id
is a random number, and name
is a random string.CREATE TABLE datagen_source_table (id INT,name STRING) WITH ('connector' = 'datagen','rows-per-second'='1' -- The number of data records generated per second.);
Option | Required | Default Value | Data Type | Description |
connector | Yes | - | String | The connector to use. Here, it should be datagen . |
rows-per-second | No | 10000 | Long | The number of rows generated per second. This determines the data send rate. |
fields.#.kind | No | random | String | The value generator for the # field. Valid values include sequence and random . |
fields.#.min | No | (Minimum value of type) | (Type of field) | The minimum value the random generator can generate. This is used for numeric data types. |
fields.#.max | No | (Maximum value of type) | (Type of field) | The maximum value the random generator can generate. This is used for numeric data types. |
fields.#.length | No | 100 | Integer | The length of strings generated by the random generator. This is used for data types including char , varchar , and string . |
fields.#.start | No | - | (Type of field) | The start value of the sequence generator. |
fields.#.end | No | - | (Type of field) | The end value of the sequence generator. |
CREATE TABLE logger_sink_table (id INT,name STRING) WITH ('connector' = 'logger','print-identifier' = 'DebugData');
Option | Required | Data Type | Description |
connector | Yes | String | The connector to use. Here, it should be logger . |
print-identifier | No | String | The prefix for log printing. |
all-changelog-mode | No | Boolean | If you enable this, -U data will not be filtered out. This allows you to simulate ClickHouse Collapsing data streams. |
records-per-second | No | Integer | The number of records output per second. You can use this to achieve throttling. |
mute-output | No | Boolean | Whether to drop all output data and only calculate the number of records (an enhanced version of a BlackHole sink). |
CREATE TABLE `print_table` (`id` INT,`name` STRING) WITH ('connector' = 'print');
Option | Required | Default Value | Data Type | Description |
connector | Yes | - | String | The connector to use. Here, it should be print . |
print-identifier | No | - | String | The identifier (prefix) for the output data. |
standard-error | No | false | Boolean | Whether to print as standard error instead of standard output. To print as standard error, set this to True . |
Was this page helpful?