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] ORDER BY function return values. #4794

Closed
gam-phon opened this issue Nov 14, 2015 · 15 comments
Closed

[feature request] ORDER BY function return values. #4794

gam-phon opened this issue Nov 14, 2015 · 15 comments
Labels
1.x area/functions difficulty/high This issue needs to be broken down into smaller units of work. kind/feature-request wontfix

Comments

@gam-phon
Copy link
Contributor

This is the same request as #3954 but this feature request to be ordered by count.
Example:

select count(values) from events group by event_type order by count desc
@mvadu
Copy link
Contributor

mvadu commented Jan 13, 2016

+1 Allowing this with limit clause will allow for lot of interesting queries on the time series. It can be a dirty fix for #5345 for Top as well.

Something like below should give the worst performing transaction for an hour.
SELECT percentile(ResponseTime,90) FROM "Application_Transaction_Metrics" WHERE "State" =~ /California$/ AND time > 1452623400s and time < now() GROUP BY time(1h), "State", BusinessTransaction Order By percentile desc limit 1

@max3163
Copy link

max3163 commented Jan 20, 2016

+1

This function is rly a most have !

@ghost
Copy link

ghost commented Jan 20, 2016

+1

1 similar comment
@ericx10ng
Copy link

+1

@cmdrSpectral
Copy link

+1

@mebrunet
Copy link

+1 This would be really useful!

@seb-koch
Copy link

+1, definitely a must

@consense
Copy link

is there any update on the roadmap position for this?

@bfgoodrich
Copy link

It is now 2018, any update on this at all?

@NateZimmer
Copy link

Generally one wishes to target problematic devices. One can't target the most problematic devices if one cannot sort a long list by those values... this is kinda an embarrassing feature not to have.

@nathanielc nathanielc added the difficulty/high This issue needs to be broken down into smaller units of work. label Oct 1, 2018
@nathanielc
Copy link
Contributor

Added difficulty/high as arbitrary sorting on the results is not possible nor is there a current easy place to hook in such behavior in InfluxQL. Flux is already capable of sorting the results by an arbitrary value.

@dgnorton dgnorton added the 1.x label Jan 7, 2019
@stale
Copy link

stale bot commented Jul 23, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 23, 2019
@stale
Copy link

stale bot commented Jul 30, 2019

This issue has been automatically closed because it has not had recent activity. Please reopen if this issue is still important to you. Thank you for your contributions.

@stale stale bot closed this as completed Jul 30, 2019
@CanuckMarc
Copy link

2021 and still can't order by anything other than time.

@rsoudani
Copy link

same in late 2022, sad

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

No branches or pull requests