diff --git a/server/src/functions.ts b/server/src/functions.ts index 2ea6742..75491e5 100644 --- a/server/src/functions.ts +++ b/server/src/functions.ts @@ -91,6 +91,20 @@ FROM UNNEST([1, 2]) AS i`, example: `SELECT LOGICAL_AND(b) -- false FROM UNNEST([true, false]) AS b`, + }, + { + ident: "GROUPING", + example: `/** + * one, two, one_agg + * 1, , 0 + * , 2, 1 + */ +SELECT + one, + two, + GROUPING(one) one_agg, +FROM (SELECT 1 AS one, 2 AS two) +GROUP BY GROUPING SETS (one, two)`, }, { ident: "LOGICAL_OR",