You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT"graphs_volume24hoursmetric"."time", AVG("graphs_volume24hoursmetric"."value") AS"value"FROM"graphs_volume24hoursmetric"WHERE ("graphs_volume24hoursmetric"."pool_id"= c6e6b7bd-1f0e-4766-89ed-56bc592742ed AND"graphs_volume24hoursmetric"."time" BETWEEN 2023-03-0211:07:24.915758+00:00AND2023-03-0511:07:24.915784+00:00)
GROUP BY time_bucket_gapfill(INTERVAL 1 day, "graphs_volume24hoursmetric"."time", 2023-03-0211:07:24.915758+00:00, 2023-03-0511:07:24.915784+00:00), "graphs_volume24hoursmetric"."time"
Hoping to get 3 points, I get some bullshit out of 40 points.
According to the official documentation, you need to use the function after the 'SELECT" keyword, and not after "GROUP BY". In my case, aggregation should occur in the interval of 1 day, not 40.
Time buckets are usually used together with GROUP BY to aggregate data. But you can also run time_bucket on a single time value.
The text was updated successfully, but these errors were encountered:
According to the official documentation, the functions should be after the keyword "SELECT".
I wrote:
And I've got this SQL:
This query outputs all the points that were created after 3 days.
Then I've used
time_bucket_gapfill
according to the documentation in the README.Wrote:
Got:
Hoping to get 3 points, I get some bullshit out of 40 points.
According to the official documentation, you need to use the function after the 'SELECT" keyword, and not after "GROUP BY". In my case, aggregation should occur in the interval of 1 day, not 40.
The text was updated successfully, but these errors were encountered: