forked from apache/seatunnel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Doc][Improve]add transform v2 doc & remove transform v1 doc (apache#…
- Loading branch information
1 parent
b19cebb
commit 07da889
Showing
33 changed files
with
492 additions
and
903 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,12 +54,6 @@ source { | |
} | ||
} | ||
transform { | ||
sql { | ||
sql = "select name, age from fake" | ||
} | ||
} | ||
sink { | ||
Console { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,9 +122,6 @@ source { | |
} | ||
} | ||
transform { | ||
} | ||
sink { | ||
# choose stdout output plugin to output data to console | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,10 +69,6 @@ source { | |
} | ||
} | ||
transform { | ||
sql = "select name, age from fake" | ||
} | ||
sink { | ||
Socket { | ||
host = "localhost" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,9 +62,6 @@ source { | |
} | ||
} | ||
transform { | ||
} | ||
sink { | ||
Console {} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Common Options | ||
# Source Common Options | ||
|
||
> Common parameters of source connectors | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,10 +40,6 @@ source { | |
} | ||
} | ||
transform { | ||
} | ||
sink { | ||
Console {} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,10 +41,6 @@ source { | |
} | ||
} | ||
transform { | ||
} | ||
sink { | ||
Console {} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Transform Common Options | ||
|
||
> Common parameters of source connectors | ||
| name | type | required | default value | | ||
|-------------------| ------ | -------- | ------------- | | ||
| result_table_name | string | no | - | | ||
| source_table_name | string | no | - | | ||
|
||
### source_table_name [string] | ||
|
||
When `source_table_name` is not specified, the current plug-in processes the data set `(dataset)` output by the previous plug-in in the configuration file; | ||
|
||
When `source_table_name` is specified, the current plugin is processing the data set corresponding to this parameter. | ||
|
||
### result_table_name [string] | ||
|
||
When `result_table_name` is not specified, the data processed by this plugin will not be registered as a data set that can be directly accessed by other plugins, or called a temporary table `(table)`; | ||
|
||
When `result_table_name` is specified, the data processed by this plugin will be registered as a data set `(dataset)` that can be directly accessed by other plugins, or called a temporary table `(table)` . The dataset registered here can be directly accessed by other plugins by specifying `source_table_name` . | ||
|
||
## Examples | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Copy | ||
|
||
> Copy transform plugin | ||
## Description | ||
|
||
Copy a field to a new field. | ||
|
||
## Options | ||
|
||
| name | type | required | default value | | ||
|---------------| ------ | -------- |---------------| | ||
| src_field | string | yes | | | ||
| dest_field | string | yes | | | ||
|
||
### src_field [string] | ||
|
||
Src field name you want to copy | ||
|
||
### dest_field [string] | ||
|
||
This dest field name | ||
|
||
### common options [string] | ||
|
||
Transform plugin common parameters, please refer to [Transform Plugin](common-options.md) for details | ||
|
||
## Example | ||
|
||
The data read from source is a table like this: | ||
|
||
| name | age | card | | ||
|----------|-----|------| | ||
| Joy Ding | 20 | 123 | | ||
| May Ding | 20 | 123 | | ||
| Kin Dom | 20 | 123 | | ||
| Joy Dom | 20 | 123 | | ||
|
||
We want copy field `name` to a new field `name1`, we can add `Copy` Transform like this | ||
|
||
``` | ||
transform { | ||
Copy { | ||
source_table_name = "fake" | ||
result_table_name = "fake1" | ||
src_field = "name" | ||
dest_field = "name1" | ||
} | ||
} | ||
``` | ||
|
||
Then the data in result table `fake1` will like this | ||
|
||
| name | age | card | name1 | | ||
|----------|-----|------|----------| | ||
| Joy Ding | 20 | 123 | Joy Ding | | ||
| May Ding | 20 | 123 | May Ding | | ||
| Kin Dom | 20 | 123 | Kin Dom | | ||
| Joy Dom | 20 | 123 | Joy Dom | | ||
|
||
|
||
## Changelog | ||
|
||
### new version | ||
|
||
- Add Copy Transform Connector |
Oops, something went wrong.