Skip to main content
Version: 2.3.0

UUID

UUID transform plugin

Description​

Generate a universally unique identifier on a specified field.

tip

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"
}