All functions > GROUP BY

All functions in the GROUP BY category.

Backend availability

DD Available DD Partially available DD Not available DD DuckDB · PG Postgres · CH ClickHouse · TR Trino · BQ BigQuery · SF Snowflake · DB Databricks · SV Serving

Numeric

FunctionDescriptionBackends
SUM() GROUP BY ...Returns the sum of the values in the group.DDPGCHTRBQSFDBSV
AVG() GROUP BY ...Returns the average of the values in the group.DDPGCHTRBQSFDBSV
MAX() GROUP BY ...Returns the maximum value in the group.DDPGCHTRBQSFDBSV
MIN() GROUP BY ...Returns the minimum value in the group.DDPGCHTRBQSFDBSV
PRODUCT() GROUP BY ...Returns the product of the numeric values in the group.DDPGCHTRBQSFDBSV
BIT_AND() GROUP BY ...Returns the bitwise AND of all integer values in the group.DDPGCHTRBQSFDBSV
BIT_OR() GROUP BY ...Returns the bitwise OR of all integer values in the group.DDPGCHTRBQSFDBSV
BIT_XOR() GROUP BY ...Returns the bitwise XOR of all integer values in the group.DDPGCHTRBQSFDBSV

Counting

FunctionDescriptionBackends
COUNT() GROUP BY ...Returns the number of values in the group.DDPGCHTRBQSFDBSV
COUNT_IF() GROUP BY ...Returns the number of values in the group that are true.DDPGCHTRBQSFDBSV
APPROX_DISTINCT() GROUP BY ...Returns the approximate number of distinct values in the group.DDPGCHTRBQSFDBSV

Boolean

FunctionDescriptionBackends
BOOL_AND() GROUP BY ...Returns TRUE if all values in the group are true.DDPGCHTRBQSFDBSV
BOOL_OR() GROUP BY ...Returns TRUE if any value in the group is true.DDPGCHTRBQSFDBSV
EXISTS() GROUP BY ...Returns TRUE if the group has at least one row (that passes the FILTER).DDPGCHTRBQSFDBSV

Collection

FunctionDescriptionBackends
ANY_VALUE() GROUP BY ...Returns a value of the group: the minimum in value order.DDPGCHTRBQSFDBSV
ARRAY_AGG() GROUP BY ...Returns an array of the values in the group.DDPGCHTRBQSFDBSV
MIN_BY() GROUP BY ...Returns the minimum value in the group by the given expression.DDPGCHTRBQSFDBSV
MAX_BY() GROUP BY ...Returns the maximum value in the group by the given expression.DDPGCHTRBQSFDBSV
STRING_AGG() GROUP BY ...Concatenates string values in the group, separated by the given delimiter; optional inner ORDER BY...DDPGCHTRBQSFDBSV

Statistical

FunctionDescriptionBackends
STDDEV_POP() GROUP BY ...Returns the population standard deviation of the values in the group.DDPGCHTRBQSFDBSV
STDDEV_SAMP() GROUP BY ...Returns the sample standard deviation of the values in the group.DDPGCHTRBQSFDBSV
VAR_POP() GROUP BY ...Returns the population variance of the values in the group.DDPGCHTRBQSFDBSV
VAR_SAMP() GROUP BY ...Returns the sample variance of the values in the group.DDPGCHTRBQSFDBSV
CORR() GROUP BY ...Returns the Pearson correlation coefficient between two expressions.DDPGCHTRBQSFDBSV
COVAR_POP() GROUP BY ...Returns the population covariance between two expressions.DDPGCHTRBQSFDBSV
COVAR_SAMP() GROUP BY ...Returns the sample covariance between two expressions.DDPGCHTRBQSFDBSV
REGR_SLOPE() GROUP BY ...Returns the slope of the linear regression line fitted to (x, y) pairs.DDPGCHTRBQSFDBSV
REGR_INTERCEPT() GROUP BY ...Returns the y-intercept of the linear regression line fitted to (x, y) pairs.DDPGCHTRBQSFDBSV
REGR_R2() GROUP BY ...Returns the coefficient of determination (R²) of the linear regression.DDPGCHTRBQSFDBSV
APPROX_PERCENTILE() GROUP BY ...Returns the approximate value at the given percentile.DDPGCHTRBQSFDBSV
MEDIAN() GROUP BY ...Returns the median of the values in the group as DOUBLE.DDPGCHTRBQSFDBSV
QUANTILE_CONT() GROUP BY ...Returns the continuous quantile of the group at the given probability in (0, 1); result type is...DDPGCHTRBQSFDBSV
QUANTILE_DISC() GROUP BY ...Returns an element from the group at the given discrete quantile; result type matches the...DDPGCHTRBQSFDBSV

Summary
Functions in this category: 33

This documentation is automatically generated from the FeatureMesh registry.