Commit b4fe866
When no new deadlocks occurred for a database, the MERGE source was
empty and no row was created, leaving stale delta values in the last
row. Expanded the MERGE source with a combined_source CTE that carries
forward databases from the previous collection with zero counts, so
the delta calculation properly resets to 0.
Fixes #803
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a25c90b commit b4fe866
1 file changed
Lines changed: 35 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
| |||
192 | 194 | | |
193 | 195 | | |
194 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
195 | 229 | | |
196 | 230 | | |
197 | | - | |
| 231 | + | |
198 | 232 | | |
199 | 233 | | |
200 | 234 | | |
| |||
0 commit comments