Share via


Functions.Sum Method

Definition

Overloads

Sum(Column)

Returns the sum of all values in the expression.

Sum(String)

Returns the sum of all values in the expression.

Sum(Column)

Returns the sum of all values in the expression.

public static Microsoft.Spark.Sql.Column Sum (Microsoft.Spark.Sql.Column column);
static member Sum : Microsoft.Spark.Sql.Column -> Microsoft.Spark.Sql.Column
Public Shared Function Sum (column As Column) As Column

Parameters

column
Column

Column to apply

Returns

Column object

Applies to

Sum(String)

Returns the sum of all values in the expression.

public static Microsoft.Spark.Sql.Column Sum (string columnName);
static member Sum : string -> Microsoft.Spark.Sql.Column
Public Shared Function Sum (columnName As String) As Column

Parameters

columnName
String

Column name

Returns

Column object

Applies to