This topic describes how to use the UUID function in Realtime Compute. In Flink SQL, the UUID function returns a universally unique identifier.

Syntax

VARCHAR UUID()         

Description

Returns a universally unique identifier.

Example

  • Test statements
    SELECT uuid() as `result`
    FROM T1;                 
  • Test results
    result (VARCHAR)
    a364e414-e68b-4e5c-9166-65b3a153e257