Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createEmpty : true in aggregateWindow does not work for 'selector' functions #21857

Open
mzakharocsc opened this issue Jul 15, 2021 · 6 comments

Comments

@mzakharocsc
Copy link

Steps to reproduce:

When performing queries with missing data, for example

from(bucket: "bucket")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "measurement")
  |> filter(fn: (r) => r["_field"] == "field")
  |> aggregateWindow(every: v.windowPeriod, fn: max, createEmpty: true)

if fn parameter in aggregateWindow is part of aggregates things work as expected, however when using selectors, such as last, first, min, max, createEmpty: true does not have any effect

Expected behavior:
Returned datasets would include null in _value column for missing timestamps

Actual behavior:
Returned datasets do NOT include null in _value column for missing timestamps

Environment info:

  • System info: Linux 4.15.0-135-generic x86_64
  • InfluxDB version: 2.0.7
@ghost
Copy link

ghost commented Jul 16, 2021

Having the same issue.

@tlifschitz
Copy link

Same problem over here. This prevents us from filling the null values and being able to join data to other irregular sampled series.

@tlifschitz
Copy link

Here it is stated that selector functions discard empty tables, not returning a null value by design. Which is the reason for doing this? In some cases it is useful to have the empty data points.

This should be a feature request instead of a bug? Can somebody clarify this? Thank you!@alexpaxton @ebb-tide @jsternberg @danxmoran @wbaker85 @scbrickley @TCL735 @codyshepherd

@mzakharocsc
Copy link
Author

It is not uncommon to plot data with empty tabels and aggregate using max/min. Using Grafana + graphite things work fine with max/min. Grafana + Influx runs into issues in plotting max/min with sporatic sensor data. Is there a direct substitue to max/min that will work in Influx for plotting? Otherwise, the bug is in the design and documentation as well.

@DaveMDS
Copy link

DaveMDS commented Nov 26, 2022

same issue here, any workaround?

@RanjithDBG
Copy link

Anything??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants