Skip to content

Releases: VictoriaMetrics/metricsql

v0.87.3

Choose a tag to compare

@f41gh7 f41gh7 released this 08 Jul 18:23
9ec5396
feat: add support for fill modifiers in binary operations

 Added support for fill modifiers (fill, fill_left, fill_right) in binary operations to set default values when one side is missing. This expands query syntax and improves control over join behavior.

Related to https://github.com/VictoriaMetrics/VictoriaMetrics/issues/10598

Revert range() function

Choose a tag to compare

@makasim makasim released this 22 Jun 12:57
a808ea4
revert range() support (#76)

Reason was described in https://github.com/VictoriaMetrics/VictoriaMetrics/issues/11028#issuecomment-4728207220

v0.87.1: metricsql: add function range()

Choose a tag to compare

@JayiceZ JayiceZ released this 04 Jun 14:03
12dfdc2

Add support for the range() function in MetricsQL. It is registered as a transform function, and It returns the range duration of the current query range evaluation in seconds

PR #73
Related to VictoriaMetrics/VictoriaMetrics#11028

v0.87.0: Revert avoid unnecessary parentheses change (#72)

Choose a tag to compare

@makasim makasim released this 22 Apr 17:24
cc09923
* Revert "Avoid unnecessary parentheses in simple binary expressions (#63)"

This reverts commit d0bc93816e59e61cf79b323c4ce9e54c983233a4.

* add tests that verify order is preserved in important case

v0.86.1: fix: prevent regexp cache charsCurrent inflation on duplicate key Put

Choose a tag to compare

@f41gh7 f41gh7 released this 17 Apr 09:08
b60c155
CompileRegexp performs a non-atomic Get/compile/Put sequence. When multiple goroutines miss on Get for the same regexp concurrently, each calls Put, which blindly incremented charsCurrent without checking if the key already existed. This inflated the size counter while len(rc.m) stayed at 1, causing premature cache eviction and unnecessary regexp recompiles.

 This commit adds a check, if parsed regex was already added by concurrent goroutine.

v0.86.0: Avoid unnecessary parentheses in simple binary expressions (#63)

Choose a tag to compare

@makasim makasim released this 02 Apr 12:30
d0bc938
* Avoid unnecessary parentheses in simple binary expressions

Fixes https://github.com/VictoriaMetrics/metricsql/issues/54

needBinaryOpArgParens now takes the parent operator as a parameter and
uses three-tier logic: add parens when (1) the child op has lower
priority than the parent, (2) the parent is a
  non-arithmetic op (or, and, comparisons, etc.), or (3) the child
subtree contains non-trivial nodes (function calls, group/join
modifiers, etc.). Plain arithmetic chains of numbers and
  metric names — 1 + 2 + 3, a + b + c — no longer get wrapped in
redundant parentheses.

v0.84.9: metricsql: add function histogram_fraction()

Choose a tag to compare

@makasim makasim released this 11 Feb 10:12
a50761b
Add support for the histogram_fraction() function in MetricsQL. It is registered as a transform and recognized by the optimizer (arg index 2) so queries using it parse and optimize correctly.

PR https://github.com/VictoriaMetrics/metricsql/pull/59
Related to https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5346

v0.84.8: feat: use IsSupportedFunction instead (#39)

Choose a tag to compare

@makasim makasim released this 05 Sep 09:37
6ea382c
Signed-off-by: clavinjune <24659468+clavinjune@users.noreply.github.com>

v0.84.7: utils: fix timestamp function validation in IsLikelyInvalid (#55)

Choose a tag to compare

@makasim makasim released this 20 Aug 08:09
a878d78

Improve timestamp function compatibility with Prometheus.

Align timestamp behavior with Prometheus semantics, where it's treated as a transform function rather than a rollup, allowing usage with non-metric expressions like timestamp(sum(foo)).