Functions.Sum Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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