Field processing

Updated at:

This topic describes how to use the field processing operator and its usage notes.

Usage

The field processing operator applies logic to process data from a node. You can then use the processed data as an output field in subsequent nodes.

Scenarios

Processing pipeline

Compute engine

Supported

Offline

MaxCompute

Yes

Hive

Yes

HiveStorage

Yes

RDS/MySQL

Yes

Instructions

Processing logic

To process a field, enter its name, code, and content type, such as text, long text, integer, hour, time, or Boolean. Then, configure the processing logic. For example, you can configure logic to extract the gender from an ID card number.

The processing logic supports an 'if...then...else...' structure. For example, to process a grade evaluation field, you can configure a rule such as 'if `Chinese_Score > 90` then `Excellent` else `Good`'.

To process multiple fields, you can click the add field or copy button, and then configure the new fields.

Output fields

The output fields inherit from the previous node by default. After the operator runs, you can configure the fields to output to the next node.

You can set an alias and a code alias for the output fields. Subsequent nodes will use these aliases.

Sort results

You can sort the output results in ascending or descending order. Sorting can be based on multiple items. For example, you can sort by age in ascending order and by Chinese score in descending order. You can also use expressions to configure sorting.

You can also truncate the output data. For example, start from the 100th record and retrieve 1,000 records.

Note

This feature is available only in offline scenarios.

Notes

  1. Field codes for new fields must be unique.

  2. The data type of a new field must match the data type of the processing result.