Updated on 2024-11-29 GMT+08:00

Random Value Conversion

Overview

Generate Random operator configures new values as random value fields.

Input and Output

  • Input: none
  • Output: random value fields

Parameter Description

Table 1 Operator parameters description

Parameter

Description

Type

Mandatory

Default Value

output field name

Names of generated random value fields.

string

Yes

None

length

Field length.

map

Yes

None

type

Field type. The options are VARCHAR, INTEGER, and BIGINT.

enum

Yes

VARCHAR

Data Processing Rule

The operator generates random value fields of specified type.

Example

Use the CSV File Input operator to generate two fields A and B.

The following figure shows the source file.

Configure the random value conversion operator to generate fields C, D, and E.

Five fields are generated.

The random value fields generated each time are different.