UUID
Descriptionâ
Generate a universally unique identifier on a specified field.
tip
This transform ONLY supported by Spark.
Optionsâ
name | type | required | default value |
---|---|---|---|
fields | string | yes | - |
prefix | string | no | - |
secure | boolean | no | false |
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"
}