You are viewing documentation about an older version (1.1.0). View latest version

snowflake.snowpark.functions.sum¶

snowflake.snowpark.functions.sum(e: ColumnOrName) → Column[source]¶

Returns the sum of non-NULL records in a group. You can use the DISTINCT keyword to compute the sum of unique non-null values. If all records inside a group are NULL, the function returns NULL.