Fake connector examples
Fake connector examples
Parent document: fake-connector
Fake reader example
Suppose you want to generate a data set of 300 records, and specify that each record has two fields named name and age, you can use the following configuration to read.
{
"job": {
"reader": {
"class": "com.bytedance.bitsail.connector.legacy.fake.source.FakeSource",
"total_count": 300,
"rate": 100,
"random_null_rate": 0.1,
"columns": [
{
"name": "name",
"type": "string"
},
{
"name": "age",
"type": "int"
}
]
}
}
}