-
Notifications
You must be signed in to change notification settings - Fork 153
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
Fill function not working #930
Comments
I have a scenario like this. I want to sum the points of both (or more) symbols each 20 seconds (or any other interval). Below are the raw points stored in a single measurement grouped by symbol. The second query is the one I came up with to calculate sum(sum() gives me same issue as well). select last(bs) from table where symbol=<1> or symbol=<2> and time>=1592833320000ms and time<=1592833440000ms group by symbol, time(20s) name: table 2020-06-22T13:42:00Z 84 name: table 2020-06-22T13:42:00Z 288 check out how 13:43:00Z has no value; fill(previous) works if this was a single query and will copy over 282 from above. But when I group by both symbols the value will just be 0 for this time stamp and the mean value will go way down at this time. select mean(lbs) from (select last(bs) as lbs from table where symbol=<1> or symbol=<2> and time>=1592833320000ms and time<=1592833440000ms group by symbol, time(20s)) group by time(20s) limit 10 2020-06-22T13:42:00Z 372 Having a fill(previous) in the inner query does not work. Question is, how can I take the last value of the missing groups into the mean calculation. I even tried using FLUX with the following query, but still see same issue. Let me know if there is any workaround for this issue. Thanks! |
This issue has had no recent activity and will be closed soon. |
I have a measurement being updated every 9 minutes. I have tried using the fill function to replicate the IFQL fill(previous) behavior but it doesn't seem create the data specified by the window.
Expected: start and stop should be for every minute in the range (not just a minute when there is a value stored) with the value using the previous value if missing.
Flux script tested on 2.0 Alpha1:
The text was updated successfully, but these errors were encountered: