You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
analytics: the unknown-dialect decline ignores timeDimensions[].dateRange, so a window on a JSON-stored member is refused 400 on a non-SQL datasource instead of declined #36773
packages/services/service-analytics/src/strategies/native-sql-strategy.ts — the unknown-dialect decline jsonConstructOnUnknownDialectIn (around l.1118-1193 at #36671's head) reads the where, the dataset filter, measure filter and read scope, but never timeDimensions[].dateRange. So on a datasource whose dialect the native strategy does not know (a non-SQL driver), a dateRange window ($gte / $lte) on a JSON-stored member is not declined to the engine; it reaches refuseWhereJsonColumnComparison (no dialect condition) and is refused 400 INVALID_FILTER by the native compile.
Found by the #36264 dev; contract review 7111741771 on PR #36671 (③) carries it as a production-code follow-up. #36671's changeset now declares this behaviour as it ships.
Expected
The decline treats a window on a JSON-stored member like the other filter positions: on an unknown dialect the request is declined to the engine path instead of refused by the native compile — or, if refusal is the intended answer on every datasource, that is ruled and the decline's doc says so.
Acceptance
A test on a non-SQL datasource with a dateRange on a JSON-stored member pins the chosen answer.
Triage: lands in area:data · domain:server · priority:p3 · Bug · pm:queue · size S. The filing seat's area and grade stand. Type set to Bug.
Rationale: on a datasource whose dialect the native strategy does not know, a dateRange window on a JSON-stored member is refused with a loud 400 INVALID_FILTER instead of being declined to the engine. Nothing is stored or shown wrongly, and the error names the filter, so under North Star Priority rule 2 this is Impeded. Reach is a rare configuration (a non-SQL driver plus a JSON-stored member plus a time window) ⇒ p3. The fix and its pin stay in service-analyticsnative-sql-strategy.ts, as the card proposes.
Activity
objectstack-fleet commentedon Nov 23, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: lands in
area:data·domain:server·priority:p3· Bug ·pm:queue· size S. The filing seat's area and grade stand. Type set to Bug.Rationale: on a datasource whose dialect the native strategy does not know, a
dateRangewindow on a JSON-stored member is refused with a loud 400INVALID_FILTERinstead of being declined to the engine. Nothing is stored or shown wrongly, and the error names the filter, so under North Star Priority rule 2 this is Impeded. Reach is a rare configuration (a non-SQL driver plus a JSON-stored member plus a time window) ⇒ p3. The fix and its pin stay inservice-analyticsnative-sql-strategy.ts, as the card proposes.