-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature][doc][Connector-V2][Fake] Add FakeSource connector documentation #5255
Conversation
{ | ||
kind = DELETE | ||
fields = [1, "A_1", 100] | ||
source { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember FakeSource can produce data randomly, could you also add a demo case use that feature? Please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
PTAL: @Hisoka-X @EricJoy2048 @liugddx |
# Conflicts: # docs/en/connector-v2/source/FakeSource.md
Since there have been many changes to the Fake connector recently, it is best for us to merge this PR to the dev branch as soon as possible. Could you update this PR to date? @zhilinli123 cc @ruanwenjun |
# Conflicts: # docs/en/connector-v2/source/FakeSource.md
I made some changes. Thank you for your hard work |
| double.min | double | no | 0 | | ||
| double.max | double | no | 0x1.fffffffffffffP+1023 | | ||
| double.template | list | no | - | | ||
| table-names | list | no | - | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you missed this.
| Name | Type | Required | Default | Description | | ||
|---------------------|----------|----------|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| schema | config | yes | - | Define Schema information | | ||
| fields | config | yes | - | Define Field information | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is fields
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### schema [config]
#### fields [Config]
The schema of fake data that you want to generate
#### Examples
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a sub config of schema
. Not for FakeSource
root config. Please refer https://github.com/apache/seatunnel/blob/dev/docs/en/concept/schema-feature.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| double.fake.mode | string | no | range | 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 | double | no | 0 | The min value of double data that connector generated | | ||
| double.max | double | no | 0x1.fffffffffffffP+1023 | The max value of double data that connector generated | | ||
| double.template | list | no | - | 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 | list | no | - | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description for table-names
?
| double.min | double | no | 0 | The min value of double data that connector generated | | ||
| double.max | double | no | 0x1.fffffffffffffP+1023 | The max value of double data that connector generated | | ||
| double.template | list | no | - | 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 | list | no | - | The Supports configuration of multiple data sources for example: ["test.table1", "test.table2"] | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check the old one https://github.com/apache/seatunnel/pull/5255/files#diff-368d0e6bf6b91efe5c90ec4eaa163de7332b3e6e64797a0fc6b27dd3d0711326L266. You losted many important information in the new one description.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Hisoka-X here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks review,complete modification
Purpose of this pull request
subTask:#4572
Check list
New License Guide
release-note
.