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

[feature request] keep last value or fill(previous) without a group by #3633

Closed
timgriffiths opened this issue Aug 12, 2015 · 2 comments
Closed
Labels
area/influxql Issues related to InfluxQL query language kind/enhancement kind/feature-request
Milestone

Comments

@timgriffiths
Copy link

I understand we have the fill(previous) option available to me, but this only applies if i am using a group by.

I currently trying to store and graph exchange market data and we don't want to use any sort of aggregation we just want to give influxdb a time range and get back the raw data, and with out the last value it's harder to see what's going on, graphite has this very nice function called keepLastValue which will give you the last value before your time range you selected starts and also sets the last value at the end of your time window (if there is not a data point at the start and end of your time windows)

for example, if i ask for a time window between 13:45:33 and 13:45:43

and your data looked like this

13:45:32 - 4
13:45:35 - 5
13:45:40 - 6

keep last would give you a data set that looked like

13:45:33 - 4
13:45:35 - 5
13:45:40 - 6
13:45:43 - 6

making plotting a step graph very easy and shows the user what really happening with their dataset.

@beckettsean beckettsean changed the title Feature Request: keep last value or fill(previous) with out a group by [feature request] keep last value or fill(previous) without a group by Aug 19, 2015
@beckettsean beckettsean added this to the Longer term milestone Aug 25, 2015
@pauldix
Copy link
Member

pauldix commented Aug 25, 2015

It doesn't make sense to use fill for this since fill works in the context of a time series with regular intervals. This is more like putting a data point at the start time and at the end time of the query.

I think it would be some sort of new function that works with raw queries only. Will have to address this at some point in the future.

@jsternberg
Copy link
Contributor

I don't think this issue makes any sense in the context of how fill currently works so I'm going to close this for now. Something related, but different enough to actually be feasible, would be #7216. I think that one is a request to have fill create points for timestamps where other auxiliary fields have points and that is feasible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/influxql Issues related to InfluxQL query language kind/enhancement kind/feature-request
Projects
None yet
Development

No branches or pull requests

5 participants