influxdata / flux

Flux is a lightweight scripting language for querying databases (like InfluxDB) and working with data. It's part of InfluxDB 1.7 and 2.0, but can be run independently of those.

Home Page:https://influxdata.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flux function increase() skips data

Shhhpoulpe opened this issue · comments

When using the increase function, the function sometimes skip some data making the result false:

This is the raw data:
data

Expected result should be 41, instead we get 40:
result

I tried to put the same data twice, and the two results were different (one value of 70 got skipped):
other

The request used:

from(bucket: "metrics_test")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "test_categ" or r["_measurement"] == "test_categ2")
  |> increase()
  |> yield(name: "increase")

The version of our influxDB instance is 2.5.1.

Regards,

This issue has had no recent activity and will be closed soon.