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

InfluxDB returns nothing on group by time queries when there is no data in the database regardless of FILL #9079

Closed
nhaugo opened this issue Nov 8, 2017 · 2 comments
Assignees

Comments

@nhaugo
Copy link
Contributor

nhaugo commented Nov 8, 2017

Bug report

InfluxDB: 1.3.7
OS: MacOSX, Ubuntu 16.04

Perform a query like:
select mean(usage_user) from cpu where time < now() - 1000000m AND time > now() - 1000000m - 1m group by time(10s) fill(0)

Where there is no data in the requested time frame

Expected behavior: I would expect the database to return timestamps with the fill value

Actual behavior: Nothing is returned

@rbetts
Copy link
Contributor

rbetts commented Nov 8, 2017

@jsternberg I have a vague memory that you explained to me that this was by design? Perhaps the DB doesn't fill until it finds the first non-empty group; otherwise you'd have to express a lower time bound on all queries or fill from epoch time 0 forward?

@rbetts
Copy link
Contributor

rbetts commented Nov 8, 2017

From docs:

Currently, queries ignore fill() if no data fall within the query’s time range. This is the expected behavior. An open feature request on GitHub proposes that fill() should force a return of values even if the query’s time range covers no data.

See also: #6878 and #6967

@rbetts rbetts closed this as completed Nov 8, 2017
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

3 participants