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

Wire up BOTTOM aggregate #1820

Closed
pauldix opened this issue Mar 3, 2015 · 3 comments
Closed

Wire up BOTTOM aggregate #1820

pauldix opened this issue Mar 3, 2015 · 3 comments
Assignees
Labels
area/functions difficulty/high This issue needs to be broken down into smaller units of work.
Milestone

Comments

@pauldix
Copy link
Member

pauldix commented Mar 3, 2015

Users should be able to do a query like this:

select bottom(value), time, host
from cpu
limit 5

Will return a single series with 5 data points containing the time, the value, and the host.

If you do a query like this:

select bottom(value), time, host from cpu
where time > now() - 24h
group by time(1h)

You'd get a single series with 24 total data points. That's 1 data point in each time bucket (but it would have the point original timestamps), the value, and the host.

If you want to do a query where you get the bottom N series, look at issue #1819

This was referenced Mar 3, 2015
@beckettsean beckettsean added this to the 0.9.0 milestone Apr 20, 2015
@toddboom toddboom modified the milestones: 0.9.0, 0.9.1 May 8, 2015
@beckettsean beckettsean modified the milestones: 0.9.2, 0.9.1 Jun 16, 2015
@beckettsean beckettsean modified the milestones: 0.9.4, 0.9.2 Jul 15, 2015
@beckettsean beckettsean added status/help-wanted difficulty/high This issue needs to be broken down into smaller units of work. labels Jul 15, 2015
@mail2fish
Copy link

Is that mean we don't have top fun at 0.9.2 yet?

@pauldix
Copy link
Member Author

pauldix commented Aug 19, 2015

Should also be able to do:

select top(mean(value), 5), host from cpu where time > now() - 2h

This query would first compute the mean of each host in the range, then select the top 5.

Query parsing validation will have to be updated to enable this since we currently throw an error. See #3407 for more context.

@pauldix
Copy link
Member Author

pauldix commented Aug 19, 2015

@mail2fish it's not in 0.9 yet. We'll hopefully start this for the 0.9.4 cycle, but not sure yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/functions difficulty/high This issue needs to be broken down into smaller units of work.
Projects
None yet
Development

No branches or pull requests

6 participants