ARRAY_SUM

Learn how to use the ARRAY_SUM array function in PlaidCloud Lakehouse. Returns the sum of elements in an array - see syntax, examples, and output.

Returns the sum of elements in an array.

Analyze Syntax

func.array_sum([1, 2, 3, 4, 5])

Analyze Examples

func.array_sum([10, 20, 30])

┌────┐
 60 
└────┘

SQL Syntax

ARRAY_SUM([1, 2, 3, 4, 5])

SQL Examples

SELECT ARRAY_SUM([10, 20, 30]);

┌────┐
 60 
└────┘