Repository navigation
Commit 0715889
feat(planner): --planner saved for SQL (#866)
* feat(planner): --planner saved for SQL (#856)
An e2e query is now written in `promql` or `sql`; --query-language picks
which ones are planned. In SQL mode each `records` metric is a table
(labels as metadata columns, values as value columns, time column `ts`),
and a SQL query is one leaf that may read several RQEs, all of which must
be served by one deployment.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(planner): sub-second saved windows; review fixes
- A plan's window_secs/slide_secs may be fractional (an instant query's
window is one scrape, 0.1 s at 10 samples/s); they are converted to whole
ms, and a fraction of a ms is refused.
- A SQL query's RQEs are compared as a set.
- records metrics go through --planner milp's table checks; empty values
are refused.
- The query language is checked once, in saved_plan_output.
- Test: one SQL query's RQEs needing different sketches is refused.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent dbca6b6 commit 0715889
2 files changed
Lines changed: 446 additions & 49 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
338 | 339 | | |
339 | 340 | | |
340 | 341 | | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | 342 | | |
346 | 343 | | |
347 | 344 | | |
| |||
359 | 356 | | |
360 | 357 | | |
361 | 358 | | |
| 359 | + | |
362 | 360 | | |
363 | 361 | | |
364 | 362 | | |
| |||
0 commit comments