ARRAY_AVG

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

Returns the average of elements in an array.

Analyze Syntax

func.array_avg([1, 2, 3, 4])

Analyze Examples

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

┌──────┐
 20.0 
└──────┘

SQL Syntax

ARRAY_AVG([1, 2, 3, 4])

SQL Examples

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

┌──────┐
 20.0 
└──────┘