Data connectivity & integrationPipeline Builder ExpressionsUUID V5

UUID V5

Supported in: Batch, Faster, Streaming

Generates a deterministic UUID v5 from a namespace UUID and a name string using SHA-1 hashing (RFC 4122). The same namespace and name will always produce the same UUID. Returns null if the namespace is not a valid UUID.

Expression categories: String

Declared arguments

  • Name: The name string to hash with the namespace to produce a deterministic UUID.
    Expression<String>
  • Namespace UUID: A valid UUID string to use as the namespace.
    Expression<String>

Output type: String

Examples

Example 1: Base case

Description: Generate a deterministic UUID v5 from a namespace UUID and name string.

Argument values:

  • Name: name
  • Namespace UUID: namespace
namespacenameOutput
6ba7b810-9dad-11d1-80b4-00c04fd430c8hello9342d47a-1bab-5709-9869-c840b2eac501
6BA7B810-9DAD-11D1-80B4-00C04FD430C8hello9342d47a-1bab-5709-9869-c840b2eac501
6ba7b811-9dad-11d1-80b4-00c04fd430c8https://example.com4fd35a71-71ef-5a55-a9d9-aa75c889a6d0

Example 2: Null case

Argument values:

  • Name: name
  • Namespace UUID: namespace
namespacenameOutput
nullhellonull
6ba7b810-9dad-11d1-80b4-00c04fd430c8nullnull
nullnullnull

Example 3: Edge case

Argument values:

  • Name: name
  • Namespace UUID: namespace
namespacenameOutput
not-a-uuidhellonull
empty stringhellonull
1-2-3-4-5hello85cac0b3-f821-5e29-ad03-7e26926dfdc3
+1-2-3-4-5hello85cac0b3-f821-5e29-ad03-7e26926dfdc3
123456789-1-1-1-1hello521c6c9d-6fff-59c1-aaed-00192ec1d25c
0000000000000000000001-1-1-1-1hello8bfab908-d58d-575d-b302-93686b232a3d
6ba7b8109dad11d180b400c04fd430c8hellonull
{6ba7b810-9dad-11d1-80b4-00c04fd430c8}hellonull
urn:uuid:6ba7b810-9dad-11d1-80b4-00c04fd430c8hellonull