Faker connector
The Faker connector generates rows with realistic values, such as names, addresses, and email addresses. It is a source only. You describe each column with an expression of the Java Faker library.
Example
CREATE TABLE customers_gen (
name STRING,
email STRING,
city STRING
) WITH (
'connector' = 'faker',
'rows-per-second' = '5',
'fields.name.expression' = '#{Name.fullName}',
'fields.email.expression' = '#{Internet.emailAddress}',
'fields.city.expression' = '#{Address.city}'
);
Properties
| Property | Description |
|---|---|
connector | faker |
fields.<column>.expression | The Faker expression for the column. It is mandatory for each column. |
rows-per-second | The maximum number of rows per second. The default is 10000. |
number-of-rows | The number of rows to produce. By default, the table is unbounded. |
fields.<column>.null-rate | The share of rows in which the column is null, from 0 to 1. |
fields.<column>.length | The size of an array, map, or multiset column. The default is 100. |
For the list of expressions, see Flink Faker on GitHub.
