Commit 01c1741
test(views): regenerate canonical schema for the unified view emitter
The single emitViewDdl emitter renders aggregate views as one LEFT JOIN +
GROUP BY (COUNT(DISTINCT) to survive the join), whereas the deleted
migrate-ts emitter used correlated subqueries. The two are data-equivalent
for a single has-many join — pinned by the projection-aggregate query
scenarios (populated rows + the empty-program NULL case), which pass
against real Postgres.
Regenerate the committed canonical schema.postgres.sql (bun run gen:schema)
and update the schema-artifact Phase B assertions from the correlated-
subquery form to the JOIN+GROUP BY form. Also reflects view-body identifier
quoting + strategy-resolved JOIN columns.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent ee7b756 commit 01c1741
2 files changed
Lines changed: 28 additions & 20 deletions
File tree
- fixtures/persistence-conformance/canonical
- server/typescript/packages/integration-tests/test
Lines changed: 15 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
74 | 80 | | |
75 | 81 | | |
0 commit comments