Releases: VictoriaMetrics/metricsql
Releases · VictoriaMetrics/metricsql
Release list
v0.87.3
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
revert range() support (#76) Reason was described in https://github.com/VictoriaMetrics/VictoriaMetrics/issues/11028#issuecomment-4728207220
v0.87.1: metricsql: add function range()
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)
* 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
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)
* 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()
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)
Signed-off-by: clavinjune <24659468+clavinjune@users.noreply.github.com>
v0.84.7: utils: fix timestamp function validation in IsLikelyInvalid (#55)
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)).