From 3fe74d2a55f5eafc9ea278038f41d2a3aa9b7f7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?javier=20ram=C3=ADrez?= Date: Fri, 6 Mar 2026 16:43:52 +0100 Subject: [PATCH 1/2] Add 'grouping' and 'grouping_id' to functions list This is for for the GROUPING_SETS pr --- src/grammar/functions.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/grammar/functions.ts b/src/grammar/functions.ts index 646205b..8b19b22 100644 --- a/src/grammar/functions.ts +++ b/src/grammar/functions.ts @@ -250,6 +250,8 @@ export const aggregateFunctions: string[] = [ "first", "first_not_null", "geomean", + "grouping", + "grouping_id", "haversine_dist_deg", "ksum", "kurtosis", From 34977c2ea4af3f03b908af678e4e47c3109f1e5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?javier=20ram=C3=ADrez?= Date: Fri, 6 Mar 2026 16:45:17 +0100 Subject: [PATCH 2/2] Add new keywords 'cube', 'grouping', 'rollup', 'sets' This is for the GROUPING_SETS feature https://github.com/questdb/questdb/issues/6845 --- src/grammar/keywords.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/grammar/keywords.ts b/src/grammar/keywords.ts index faf530e..ef345e2 100644 --- a/src/grammar/keywords.ts +++ b/src/grammar/keywords.ts @@ -44,6 +44,7 @@ export const keywords: string[] = [ "copy", "create", "cross", + "cube", "cumulative", "current", "data_page_size", @@ -85,6 +86,7 @@ export const keywords: string[] = [ "full", "grant", "group", + "grouping", "groups", "header", "horizon", @@ -176,6 +178,7 @@ export const keywords: string[] = [ "revoke", "right", "role", + "rollup", "row", "row_group_size", "rows", @@ -183,6 +186,7 @@ export const keywords: string[] = [ "select", "service", "set", + "sets", "show", "skip", "snapshot",