Influxdb: [feature request] ORDER BY function return values.

Created on 14 Nov 2015  路  13Comments  路  Source: influxdata/influxdb

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
1.x arefunctions difficulthigh kinfeature-request wontfix

Most helpful comment

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

All 13 comments

+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

+1

This function is rly a most have !

+1

+1

+1

+1 This would be really useful!

+1, definitely a must

is there any update on the roadmap position for this?

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

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.

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.

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.

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.

Was this page helpful?
0 / 5 - 0 ratings