ARRAY_REMOVE_FIRST

Learn how to use the ARRAY_REMOVE_FIRST array function in PlaidCloud Lakehouse. Removes the first element from the array. Includes syntax and examples.

Removes the first element from the array.

Analyze Syntax

func.array_remove_first( <array> )

Analyze Examples

func.array_remove_first([1, 2, 3]) 

┌─────────────────────────────────────┐
 func.array_remove_first([1, 2, 3])  
├─────────────────────────────────────┤
 [2,3]                               
└─────────────────────────────────────┘

SQL Syntax

ARRAY_REMOVE_FIRST( <array> )

SQL Examples

SELECT ARRAY_REMOVE_FIRST([1, 2, 3]);

┌───────────────────────────────┐
 array_remove_first([1, 2, 3]) 
├───────────────────────────────┤
 [2,3]                         
└───────────────────────────────┘