Commit 92a67f2
* feat(drivers,spec)!: `GroupByNode.alias` is honoured by the three SQL faces (#6401)
`GroupByNodeSchema.alias` was declared and only partially executed: the
in-memory fallback projected `g.alias ?? g.field` while `SqlDriver.aggregate`,
`driver-turso`'s remote transport and `driver-sqlite-wasm` (inheriting the
former) all read `g.field` only. The same aggregate therefore came back keyed
`closed_at` under pushdown and `qtr` under the fallback, and the choice between
them is `engine.ts`'s `allStructuredSupported && !tzRequiresInMemory` — a driver
capability bit and a timezone the caller cannot see.
Resolved to ENFORCE under ADR-0049, chosen from a measurement rather than a
preference: real non-test producers of the key number ZERO, but the capability
is live on three consumers and is COMPELLED by the publish gate —
`validate-react-page-props.ts` errors REACT_CHART_AXIS_UNKNOWN unless a chart's
category axis is bound to `alias ?? field`. ADR-0049 removes a dangling promise
and enforces a live one with a missing gate; this is the second.
- driver-sql: both limbs of the structured groupBy branch project `alias ??
field`; `presentedOutput` re-keyed by the OUTPUT column, matching the
aggregation branch beside it.
- driver-turso REMOTE: `"field" AS "alias"`, with the alias held to
`assertSafeIdentifier` like every other identifier.
- driver-sqlite-wasm: inherits, covered by its own conformance suite.
GROUP BY still keys on the FIELD everywhere — only the projection is renamed.
`having` needed no change and now means one thing on every path.
AGGREGATION_CASES gains a `groupByAlias` axis; `objectql`'s in-memory fallback
is enrolled as a fourth face, answering #6409's open question 2. driver-memory
already agreed and needed no alignment; driver-mongodb carries a measured DEBT
row — it cannot take a structured GroupByNode at all.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01USxSgh1HUGZuh8vuFXKTGQ
* chore(changeset): answer the ADR-0087 disposition question in writing (#6401)
The changeset declares a breaking change (bang), so #6148's gate requires the
ADR-0087 ledger question to be ANSWERED, not assumed. The answer is
`not-required (no-migration-prescription)`: nothing is retired — the key keeps
its declaration and starts being honoured — so there is no tombstone to write
and no authored metadata a codemod could rewrite.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01USxSgh1HUGZuh8vuFXKTGQ
---------
Co-authored-by: os-zhuang <steve@objectstack.ai>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
1 parent 04c56aa commit 92a67f2
11 files changed
Lines changed: 516 additions & 49 deletions
File tree
- .changeset
- packages
- drivers
- driver-sqlite-wasm/src
- driver-sql/src
- driver-turso/src
- objectql/src
- spec/src/data
- scripts
- skills/objectstack-query/rules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
| |||
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
95 | 104 | | |
| 105 | + | |
96 | 106 | | |
97 | 107 | | |
98 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4103 | 4103 | | |
4104 | 4104 | | |
4105 | 4105 | | |
4106 | | - | |
| 4106 | + | |
| 4107 | + | |
4107 | 4108 | | |
4108 | 4109 | | |
4109 | 4110 | | |
| |||
4116 | 4117 | | |
4117 | 4118 | | |
4118 | 4119 | | |
| 4120 | + | |
| 4121 | + | |
| 4122 | + | |
| 4123 | + | |
| 4124 | + | |
| 4125 | + | |
| 4126 | + | |
| 4127 | + | |
| 4128 | + | |
| 4129 | + | |
| 4130 | + | |
| 4131 | + | |
4119 | 4132 | | |
4120 | 4133 | | |
4121 | 4134 | | |
| |||
4129 | 4142 | | |
4130 | 4143 | | |
4131 | 4144 | | |
4132 | | - | |
| 4145 | + | |
4133 | 4146 | | |
4134 | 4147 | | |
4135 | | - | |
| 4148 | + | |
| 4149 | + | |
| 4150 | + | |
| 4151 | + | |
| 4152 | + | |
| 4153 | + | |
| 4154 | + | |
4136 | 4155 | | |
4137 | | - | |
| 4156 | + | |
4138 | 4157 | | |
4139 | 4158 | | |
4140 | 4159 | | |
| |||
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
38 | 43 | | |
39 | 44 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
43 | 52 | | |
| 53 | + | |
44 | 54 | | |
45 | 55 | | |
46 | 56 | | |
| |||
Lines changed: 62 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
58 | 65 | | |
59 | 66 | | |
60 | 67 | | |
| |||
176 | 183 | | |
177 | 184 | | |
178 | 185 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
183 | 196 | | |
184 | 197 | | |
185 | 198 | | |
186 | 199 | | |
187 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
188 | 218 | | |
189 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
190 | 240 | | |
191 | 241 | | |
192 | 242 | | |
| |||
0 commit comments