跳转至

Is valid uuid(是否为有效 UUID(is valid uuid))

Supported in: Batch, Faster, Streaming

Returns true if the input is a valid uuid.

Expression categories: Boolean

Declared arguments

  • Expression: String representing a uuid.
    Expression\

Output type: Boolean

Examples

Example 1: Base case

Argument values:

  • Expression: uuid
uuid Output
5c5622fe-e30e-4491-99b6-6213be506dec true
9daf08e9-d2e2-4172-86cc-9102c4c770b3 true
9DAF08E9-D2E2-4172-86CC-9102C4C770B3 true
UUID with text before 9daf08e9-d2e2-4172-86cc-9102c4c770b3 false
a1-a1-a1-a1-a1 false
not a uuid false

Example 2: Null case

Argument values:

  • Expression: uuid
uuid Output
null false


中文翻译


是否为有效 UUID(is valid uuid)

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

若输入为有效 UUID 则返回 true。

表达式类别: 布尔型(Boolean)

声明的参数

  • 表达式(Expression): 表示 UUID 的字符串。
    Expression\

输出类型: Boolean

示例

示例 1:基础情况

参数值:

  • 表达式: uuid
uuid 输出
5c5622fe-e30e-4491-99b6-6213be506dec true
9daf08e9-d2e2-4172-86cc-9102c4c770b3 true
9DAF08E9-D2E2-4172-86CC-9102C4C770B3 true
包含文本前缀的 UUID 9daf08e9-d2e2-4172-86cc-9102c4c770b3 false
a1-a1-a1-a1-a1 false
非 UUID 字符串 false

示例 2:空值情况

参数值:

  • 表达式: uuid
uuid 输出
null false