跳转至

Universally unique identifier (uuid) (unstable)(通用唯一标识符(UUID)(不稳定))

Supported in: Batch, Faster, Streaming

Returns a column of UUID. This is not deterministic and will not produce the same result on repeated builds. This is not the preferred way to build an id column and users should look into SHA-256 or others that are deterministic, for example UUID v5.

Expression categories: String

Declared arguments

This function does not take any arguments.

Output type: String

Examples

Example 1: Base case

Description: Generate a column of UUID values (V4).

Argument values:

Output: 5c5622fe-e30e-4491-99b6-6213be506dec



中文翻译


通用唯一标识符(UUID)(不稳定)

支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)

返回一个UUID列。该函数不具有确定性,在重复构建时不会产生相同的结果。这不是构建ID列的首选方式,用户应考虑使用SHA-256或其他确定性方法,例如UUID v5。

表达式类别: 字符串(String)

声明的参数

此函数不接受任何参数。

输出类型: 字符串(String)

示例

示例1:基础用例

描述: 生成一列UUID值(V4)。

参数值:

输出: 5c5622fe-e30e-4491-99b6-6213be506dec