From 93d579bae1c866c3752813604167d035e527085a 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 32feb97..0ec017b 100644 --- a/src/grammar/functions.ts +++ b/src/grammar/functions.ts @@ -89,6 +89,8 @@ export const functions: string[] = [ "geomean", "glob", "greatest", + "grouping", + "grouping_id", "haversine_dist_deg", "headers", "hour", From b3a9c88ec5440d573fcba437f71377dbed3d3e66 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 bfe2e3a..10c6b17 100644 --- a/src/grammar/keywords.ts +++ b/src/grammar/keywords.ts @@ -38,6 +38,7 @@ export const keywords: string[] = [ "copy", "create", "cross", + "cube", "cumulative", "current", "data_page_size", @@ -76,6 +77,7 @@ export const keywords: string[] = [ "full", "grant", "group", + "grouping", "groups", "header", "horizon", @@ -153,6 +155,7 @@ export const keywords: string[] = [ "resume", "revoke", "right", + "rollup", "row", "row_group_size", "rows", @@ -160,6 +163,7 @@ export const keywords: string[] = [ "select", "service", "set", + "sets", "show", "skip", "snapshot",