Repository navigation
Commit 70f469d
feat(zero-swift): aggregates, distinct and groupBy in the IVM engine
Ports the JS client's compute mode: the Aggregate, GroupBy,
GroupProjection and LiftField operators, the builder's paths for a
top-level aggregate, a grouping, a count of distinct combinations and a
relationship aggregate (a junction one through LiftField), and the view's
aggregate values (ViewValue.value, 0 or null before any row). The untyped
builder gets count/sum/avg/min/max (of a column or a JSON path), distinct
and groupBy, and rejects what the JS builder throws for, with its messages.
New vectors from JS: ivm-features gets curated aggregate, distinct, groupBy
and relationship-aggregate cases (and the builder's errors), recording the
pipeline's own rows as the server streams them; ivm-features-fuzz adds an
aggregate or grouping to seeded random programs.
Co-authored-by: tmm <tmm@tmm.dev>
Amp-Thread-ID: https://ampcode.com/threads/T-01a19a37-5aa9-7256-bff5-cdc47c01a1fe1 parent 680af92 commit 70f469d
12 files changed
Lines changed: 2030 additions & 41 deletions
File tree
- .changeset
- packages/zero-conformance
- src/ivm
- vectors
- swift
- Sources/Zero
- Builder
- Client
- IVM
- Query
- Tests/ConformanceTests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
6 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
7 | 14 | | |
8 | 15 | | |
9 | 16 | | |
| |||
44 | 51 | | |
45 | 52 | | |
46 | 53 | | |
47 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
48 | 72 | | |
49 | 73 | | |
50 | 74 | | |
| |||
128 | 152 | | |
129 | 153 | | |
130 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
131 | 170 | | |
132 | 171 | | |
133 | 172 | | |
| |||
307 | 346 | | |
308 | 347 | | |
309 | 348 | | |
| 349 | + | |
| 350 | + | |
310 | 351 | | |
311 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
312 | 356 | | |
313 | 357 | | |
314 | 358 | | |
| |||
0 commit comments