AVG (Lakehouse v2)
Returns the average value of a numeric column.
Analyze Syntax
Section titled “Analyze Syntax”func.avg(get_column(table, 'salary'))Analyze Examples
Section titled “Analyze Examples”func.avg(get_column(table, 'salary'))SQL Syntax
Section titled “SQL Syntax”AVG(<salary>)SQL Examples
Section titled “SQL Examples”SELECT department, AVG(salary) FROM employees GROUP BY department;
┌────────────┬──────────────┐│ department │ avg(salary) │├────────────┼──────────────┤│ Sales │ 65000.00 ││ IT │ 82000.00 │└────────────┴──────────────┘