跳到主要内容
版本:2.1.2

UUID

Description

Generate a universally unique identifier on a specified field.

提示

This transform ONLY supported by Spark.

Options

nametyperequireddefault value
fieldsstringyes-
prefixstringno-
securebooleannofalse

field [string]

The name of the field to generate.

prefix [string]

The prefix string constant to prepend to each generated UUID.

secure [boolean]

the cryptographically secure algorithm can be comparatively slow The nonSecure algorithm uses a secure random seed but is otherwise deterministic

common options [string]

Transform plugin common parameters, please refer to Transform Plugin for details

Examples

  UUID {
fields = "u"
prefix = "uuid-"
secure = true
}
}

Use UUID as udf in sql.

  UUID {
fields = "u"
prefix = "uuid-"
secure = true
}

# Use the uuid function (confirm that the fake table exists)
sql {
sql = "select * from (select raw_message, UUID() as info_row from fake) t1"
}