Commit 3d6c2d8
fix(telemetry): FILTER must bind to the aggregate inside extract(), not outside
`extract(epoch from max(...)) filter (where ...)` is a syntax error — FILTER
attaches to extract() (not an aggregate). Move it inside: extract(epoch from
max(...) filter (where ...)). SAMPLE_SQL failed on every project's sampler tick.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent f5c8dcf commit 3d6c2d8
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments