zhilinli123 commented on code in PR #5255:
URL: https://github.com/apache/seatunnel/pull/5255#discussion_r1364823749
##########
docs/en/connector-v2/source/FakeSource.md:
##########
@@ -104,190 +103,91 @@ schema = {
}
```
-### rows
+### Random Generation
-The row list of fake data output per degree of parallelism
-
-example
+> 16 data matching the type are randomly generated
```hocon
-rows = [
- {
- kind = INSERT
- fields = [1, "A", 100]
- },
- {
- kind = UPDATE_BEFORE
- fields = [1, "A", 100]
- },
- {
- kind = UPDATE_AFTER
- fields = [1, "A_1", 100]
- },
- {
- kind = DELETE
- fields = [1, "A_1", 100]
+source {
+ # This is a example input plugin **only for test and demonstrate the feature
input plugin**
+ FakeSource {
+ row.num = 16
+ schema = {
+ fields {
+ c_map = "map<string, string>"
+ c_array = "array<int>"
+ c_string = string
+ c_boolean = boolean
+ c_tinyint = tinyint
+ c_smallint = smallint
+ c_int = int
+ c_bigint = bigint
+ c_float = float
+ c_double = double
+ c_decimal = "decimal(30, 8)"
+ c_null = "null"
+ c_bytes = bytes
+ c_date = date
+ c_timestamp = timestamp
+ }
+ }
+ result_table_name = "fake"
}
-]
+}
```
-### row.num
-
-The total number of data generated per degree of parallelism
-
-### split.num
-
-the number of splits generated by the enumerator for each degree of parallelism
-
-### split.read-interval
-
-The interval(mills) between two split reads in a reader
-
-### map.size
-
-The size of `map` type that connector generated
-
-### array.size
-
-The size of `array` type that connector generated
-
-### bytes.length
-
-The length of `bytes` type that connector generated
-
-### string.length
-
-The length of `string` type that connector generated
-
-### string.fake.mode
-
-The fake mode of generating string data, support `range` and `template`,
default `range`,if use configured it to `template`, user should also configured
`string.template` option
-
-### string.template
-
-The template list of string type that connector generated, if user configured
it, connector will randomly select an item from the template list
-
-### tinyint.fake.mode
-
-The fake mode of generating tinyint data, support `range` and `template`,
default `range`,if use configured it to `template`, user should also configured
`tinyint.template` option
-
-### tinyint.min
-
-The min value of tinyint data that connector generated
-
-### tinyint.max
-
-The max value of tinyint data that connector generated
-
-### tinyint.template
-
-The template list of tinyint type that connector generated, if user configured
it, connector will randomly select an item from the template list
-
-### smallint.fake.mode
-
-The fake mode of generating smallint data, support `range` and `template`,
default `range`,if use configured it to `template`, user should also configured
`smallint.template` option
-
-### smallint.min
-
-The min value of smallint data that connector generated
-
-### smallint.max
-
-The max value of smallint data that connector generated
-
-### smallint.template
-
-The template list of smallint type that connector generated, if user
configured it, connector will randomly select an item from the template list
-
-### int.fake.mode
-
-The fake mode of generating int data, support `range` and `template`, default
`range`,if use configured it to `template`, user should also configured
`int.template` option
-
-### int.min
-
-The min value of int data that connector generated
-
-### int.max
-
-The max value of int data that connector generated
-
-### int.template
-
-The template list of int type that connector generated, if user configured it,
connector will randomly select an item from the template list
-
-### bigint.fake.mode
+### Customize the data content Simple:
-The fake mode of generating bigint data, support `range` and `template`,
default `range`,if use configured it to `template`, user should also configured
`bigint.template` option
+> This is a self-defining data source information, defining whether each piece
of data is an add or delete modification operation, and defining what each
field stores
-### bigint.min
-
-The min value of bigint data that connector generated
-
-### bigint.max
-
-The max value of bigint data that connector generated
-
-### bigint.template
-
-The template list of bigint type that connector generated, if user configured
it, connector will randomly select an item from the template list
-
-### float.fake.mode
-
-The fake mode of generating float data, support `range` and `template`,
default `range`,if use configured it to `template`, user should also configured
`float.template` option
-
-### float.min
-
-The min value of float data that connector generated
-
-### float.max
-
-The max value of float data that connector generated
-
-### float.template
-
-The template list of float type that connector generated, if user configured
it, connector will randomly select an item from the template list
-
-### double.fake.mode
-
-The fake mode of generating float data, support `range` and `template`,
default `range`,if use configured it to `template`, user should also configured
`double.template` option
-
-### double.min
-
-The min value of double data that connector generated
-
-### double.max
-
-The max value of double data that connector generated
-
-### double.template
-
-The template list of double type that connector generated, if user configured
it, connector will randomly select an item from the template list
-
-### table-names
-
-The table list that connector generated, used to simulate multi-table
scenarios.
-
-This option will override the `table` option in the `schema` option.
-For example, if you configure the `table-names` option as follows, the
connector will generate data for the `test.table1` and `test.table2` tables,
the `database.schema.table` will be drop.
Review Comment:
@Hisoka-X here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]