UUID transform plugin
Generate a universally unique identifier on a specified field.
:::tip
This transform ONLY supported by Spark.
:::
| name | type | required | default value |
|---|---|---|---|
| fields | string | yes | - |
| prefix | string | no | - |
| secure | boolean | no | false |
The name of the field to generate.
The prefix string constant to prepend to each generated UUID.
the cryptographically secure algorithm can be comparatively slow The nonSecure algorithm uses a secure random seed but is otherwise deterministic
Transform plugin common parameters, please refer to Transform Plugin for details
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" }