Copy transform plugin
Copy a field to a new field.
name | type | required | default value |
---|---|---|---|
src_field | string | yes | |
dest_field | string | yes |
Src field name you want to copy
This dest field name
Transform plugin common parameters, please refer to Transform Plugin for details
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 |
- Add Copy Transform Connector