This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

UUID Functions

This section provides reference information for the UUID-related functions in PlaidCloud Lakehouse.

1 - GEN_RANDOM_UUID

Generates a random UUID based on v4.

Analyze Syntax

func.gen_random_uuid()

SQL Examples

func.gen_random_uuid()

┌───────────────────────────────────────┐
           func.gen_random_uuid()      
├───────────────────────────────────────|
 f88e7efe-1bc2-494b-806b-3ffe90db8f47  
└───────────────────────────────────────┘

SQL Syntax

GEN_RANDOM_UUID()

Aliases

SQL Examples

SELECT GEN_RANDOM_UUID(), UUID();

┌─────────────────────────────────────────────────────────────────────────────┐
           gen_random_uuid()                          uuid()                
├──────────────────────────────────────┼──────────────────────────────────────┤
 f88e7efe-1bc2-494b-806b-3ffe90db8f47  f88e7efe-1bc2-494b-806b-3ffe90db8f47 
└─────────────────────────────────────────────────────────────────────────────┘

2 - UUID

Alias for GEN_RANDOM_UUID.