Is valid uuid

Supported in: Batch, Streaming

Returns true if the input is a valid uuid.

Expression categories: Boolean

Declared arguments

  • Expression - String representing a uuid.
    Expression<String>

Output type: Boolean

Examples

Example 1: Base case

Argument values:

  • Expression: uuid
uuidOutput
5c5622fe-e30e-4491-99b6-6213be506dectrue
9daf08e9-d2e2-4172-86cc-9102c4c770b3true
9DAF08E9-D2E2-4172-86CC-9102C4C770B3true
UUID with text before 9daf08e9-d2e2-4172-86cc-9102c4c770b3false
a1-a1-a1-a1-a1false
not a uuidfalse

Example 2: Null case

Argument values:

  • Expression: uuid
uuidOutput
nullfalse