Scan Source: Bounded Scan Source: UnBounded
The DataGen connector allows for reading by data generation rules.
The DataGen connector can work with Computed Column syntax. This allows you to generate records flexibly.
The DataGen connector is built-in.
Attention Complex types are not supported: Array, Map, Row. Please construct these types by computed column.
The boundedness of table: when the generation of field data in the table is completed, the reading is finished. So the boundedness of the table depends on the boundedness of fields.
For each field, there are two ways to generate data:
Option | Required | Default | Type | Description |
---|---|---|---|---|
connector |
required | (none) | String | Specify what connector to use, here should be 'datagen'. |
rows-per-second |
optional | 10000 | Long | Rows per second to control the emit rate. |
fields.#.kind |
optional | random | String | Generator of this '#' field. Can be 'sequence' or 'random'. |
fields.#.min |
optional | (Minimum value of type) | (Type of field) | Minimum value of random generator, work for number types. |
fields.#.max |
optional | (Maximum value of type) | (Type of field) | Maximum value of random generator, work for number types. |
fields.#.length |
optional | 100 | Integer | Length for string generating of random generator, work for char/varchar/string. |
fields.#.start |
optional | (none) | (Type of field) | Start value of sequence generator. |
fields.#.end |
optional | (none) | (Type of field) | End value of sequence generator. |