sum()(聚合函数)sum() (aggregation function)

计算组中 Expr 的总和。Calculates the sum of Expr across the group.

  • 只能在 summarize 内的聚合上下文中使用Can be used only in context of aggregation inside summarize

语法Syntax

summarize sum(Expr)summarize sum(Expr)

参数Arguments

  • Expr:用于聚合计算的表达式。Expr : Expression that will be used for aggregation calculation.

返回Returns

组中 Expr 的总和值。The sum value of Expr across the group.