ARRAY_APPEND

Learn how to use the ARRAY_APPEND array function in PlaidCloud Lakehouse. Prepends an element to the array. Full syntax and usage reference.

Prepends an element to the array.

Analyze Syntax

func.array_append( <array>, <element>)

Analyze Examples

func.array_append([3, 4], 5)

┌──────────────────────────────┐
 func.array_append([3, 4], 5) 
├──────────────────────────────┤
 [3,4,5]                      
└──────────────────────────────┘

SQL Syntax

ARRAY_APPEND( <array>, <element>)

SQL Examples

SELECT ARRAY_APPEND([3, 4], 5);

┌─────────────────────────┐
 array_append([3, 4], 5) 
├─────────────────────────┤
 [3,4,5]                 
└─────────────────────────┘