Files
greptimedb/src
discord9 2dfb66b325 feat(promql): compile a bare selector and an anchored range window
The compiler refused a bare instant selector and any `@` anchor, so the two
shapes an ordinary query starts from could not reach the tree. It now binds a
selector's lookback, offset and output grid into an instant node, and resolves
`@ 1234`, `@ start()` and `@ end()` into the millisecond anchor a range window
already carries, bound apart from the offset so a shift and an anchor are not
folded into one number.

A bare selector's own anchor stays refused: an instant node binds a lookback, an
offset and a grid and has no field to anchor one.

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-20 16:23:42 +08:00
..