covar_pop
aggregate function
Applies to: Databricks SQL Databricks Runtime
Returns the population covariance of number pairs in a group.
Syntax
covar_pop ( [ALL | DISTINCT] expr1, expr2 ) [FILTER ( WHERE cond ) ]
This function can also be invoked as a window function using the OVER
clause.
Arguments
expr1
: An expression that evaluates to a numeric.expr2
: An expression that evaluates to a numeric.cond
: An optional boolean expression filtering the rows used for aggregation.