Skip to content

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

Backlog

Description

@objectstack-fleet

repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH

Finding

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

Activity

  1. added
    bug
    pm:queue
    finding
    on Nov 23, 2026
  2. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    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 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-analytics native-sql-strategy.ts, as the card proposes.

  3. added
    domain:server
    and removed
    finding
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:databugdomain:serverpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions