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
Commit 85663e9
Browse filesBrowse the repository at this point in the historyBrowse files
fix(objectql): refuse a plain group over a virtual field at the aggregate door
A groupBy entry of any form naming a formula field (no stored column) is
refused INVALID_FIELD / 400 at groupBy.N / groupBy.N.field before any driver
is asked; a bucket over one keeps the date-bucket words.
Claude-Session: https://claude.ai/code/session_016WV4cyTehJsfYGVMzcXLJD
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: packages/objectql/src/engine-aggregate-query-shape-door.test.ts
+50-1Lines changed: 50 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,10 @@
14
14
* query runs the engine's in-memory aggregation over them: the controls below
15
15
* read real buckets, and a refusal is proven to precede every read.
16
16
*
17
+
* [#29304] …and a plain group (a name, or `{ field }`) over a virtual
18
+
* (`formula`) field, beside the #29167 bucket over one: `INVALID_FIELD` / 400
19
+
* at `groupBy.N` / `groupBy.N.field`.
20
+
*
17
21
* [#25819] The REST door's empty-list refusal is the protocol's own
18
22
* (`protocol.empty-aggregate-axis.test.ts`); the wire half below runs it over
19
23
* the real engine, which is what turned it into `404 OBJECT_NOT_FOUND`.
@@ -128,6 +132,45 @@ describe('[#25818] the aggregate query shapes that answered a plausible wrong ta
128
132
expect(reads,'every refusal precedes the driver').toHaveLength(0);
129
133
});
130
134
135
+
it('[#29304] refuses a plain group over a virtual (formula) field, whatever its returnType: INVALID_FIELD / 400 at groupBy.N (a name) or groupBy.N.field — no read',async()=>{
136
+
// Before this arm the in-memory aggregation served one null group holding
137
+
// every row, and a SQL driver refused a missing column with no path.
0 commit comments