SUM (Lakehouse v2)
返回分组内所有值之和。
Analyze 语法
Section titled “Analyze 语法”func.sum(get_column(table, 'amount'))Analyze 示例
Section titled “Analyze 示例”func.sum(get_column(table, 'amount'))SQL 语法
Section titled “SQL 语法”SUM(<amount>)SQL 示例
Section titled “SQL 示例”SELECT department, SUM(salary) FROM employees GROUP BY department;
┌────────────┬─────────────┐│ department │ sum(salary) │├────────────┼─────────────┤│ Sales │ 195000 ││ IT │ 246000 ││ HR │ 210000 │└────────────┴─────────────┘