Type Converter

The Type Converter processor converts the data types of specified fields to compatible types. For example, you might use the Type Converter to convert a String field containing single-precision floating point numbers to a Float field.

Use the Type Converter processor to convert data to simple types, such as String, Boolean, or Timestamp. The Type Converter does not convert data to complex types such as lists or maps.

When you configure a Type Converter, you specify the field to convert and the data type to convert to. When converting to the Decimal data type, you also configure the precision and scale for the field.

Important: Due to underlying Spark behavior, when attempting an invalid conversion, the Type Converter processor might generate errors or replace field values with null values. Be sure to configure the processor to convert data to valid types.