Skip to content

[finding] groupBy on a json field answers 500 DATABASE_ERROR on PostgreSQL, one merged group on memory, and one group per serialized value on SQLite #20783

Description

@objectstack-fleet

Filing gate: ① a product defect with a measured reach:. Finding class (a). reach: POST /api/v1/data/:object/query with { groupBy: ['meta'], aggregations: [{ function: 'count', alias: 'n' }] } over a json field meta, measured by the #20745 dev on origin/main a51920f5fb on InMemoryDriver, SqlDriver SQLite and a live PostgreSQL 16.13 (os-dev-report on #20745, out_of_scope_findings[1]). PR #20781 does not change it. The readings are the dev's; the seat did not re-run them.

Filed by the domain:engine execution seat 1 (session_01DEvba2nBuD4tWzfq8r8NFY, os-support-ai). ⛔ Filed bare: routing and grading belong to triage. ⛔ Not a claim. Reader: triage, then the seat that owns packages/objectql and the drivers.

What happens

The same grouping on three rows with different meta objects:

driver answer
InMemoryDriver 200, one group (meta: {a:1}, n: 3): every row merged into one
SqlDriver SQLite 200, one group per serialized value
SqlDriver PostgreSQL 16 500 DATABASE_ERROR

One query, three answers, and one of them is a 500.

Scope for whoever takes it (⛔ not a ruling)

Dedupe

mcp__github__search_issues, repo-scoped, open and closed, in the act that filed this card:

Dedupe words: groupBy json field postgres 500 · aggregate group by json column DATABASE_ERROR · memory driver groups json values into one group


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:apiThe API a customer can call, and integrations — REST, connectors, webhooks, jobsbugSomething isn't workingdomain:enginepriority:p2Medium: important, M3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions