Convert
Filter plugin : Convert
- Author: InterestingLab
- Homepage: https://interestinglab.github.io/seatunnel-docs
- Version: 1.0.0
Description
Convert a field’s value to a different type, such as converting a string to an integer.
Options
| name | type | required | default value |
|---|---|---|---|
| new_type | string | yes | - |
| source_field | string | yes | - |
new_type [string]
Conversion type, supports string, integer, long, float, double and boolean now.
source_field [string]
Source field.
Examples
convert {
source_field = "age"
new_type = "integer"
}
Convert the
agefield tointegertype