influxdb icon indicating copy to clipboard operation
influxdb copied to clipboard

[feature request] ORDER BY tag values

Open beckettsean opened this issue 11 years ago • 49 comments

beckettsean avatar Sep 02 '15 18:09 beckettsean

+1, would love this. Would also like to pass more than 1 tag to the order by operation so they are alpha sorted first by tag1 then by tag2, etc.

Jhors2 avatar Sep 02 '15 21:09 Jhors2

Will that issue meet our needs like that?:

select count(values) from events group by event_type order by count desc

muratcorlu avatar Nov 08 '15 18:11 muratcorlu

@muratcorlu no, that is a separate request. This is only for ordering by tag values, not by function return values.

beckettsean avatar Nov 09 '15 19:11 beckettsean

+1

timgriffiths avatar Nov 23 '15 04:11 timgriffiths

+1 plus order by <field>

cmdrSpectral avatar Feb 09 '16 17:02 cmdrSpectral

very useful +1

dstreppa avatar Jul 18 '16 10:07 dstreppa

:+1:

envintus avatar Sep 24 '16 01:09 envintus

Hi influxers, any update on this issue? Anything planned?

martinschuberts avatar Nov 23 '16 19:11 martinschuberts

Any workaround for this? For some reason influxdb decides tag values return should be sorted 100,101,102,...,198,199,001,002,003. As grafana writes whatever is returned by the database I have a large drop down menu of template values with a whacky sort that makes people confused how it even determined that is the correct sort.

gerrickw avatar Feb 01 '17 01:02 gerrickw

Any update ?

haidaraM avatar May 23 '17 08:05 haidaraM

+1

dominic-miglar avatar Nov 18 '17 20:11 dominic-miglar

+1

tabeyti avatar Nov 30 '17 00:11 tabeyti

Hi, Would be great especially if we use the tag to avoid overriding when 2 points with same tags values and same timestamp are written. Any workaround? Thanks

JamesGalt avatar Jan 26 '18 23:01 JamesGalt

So if someone is using influxDB to track device diagnostics naturally one would wish to sort by value. For example, if one is investigating device resets, one would wish to sort a list and prioritize the devices that are resetting the most. Without this... metrics that target problematic units are nearly impossible.

NateZimmer avatar Apr 19 '18 23:04 NateZimmer

+1

jcsdatera avatar Jun 06 '18 15:06 jcsdatera

+1

dannybeeckman avatar Jun 28 '18 06:06 dannybeeckman

@beckettsean we are now in August 2018 (issue created in 2015) any update on it or plan in influx roadmap ? (order by part capability is really a strong functionnality missing to influx)

JulienChampseix avatar Sep 14 '18 07:09 JulienChampseix

we are now in Mar 2019 :) I will take clickhouse soon

umatomba avatar Mar 13 '19 17:03 umatomba

+1

2019

laudukang avatar Mar 19 '19 10:03 laudukang

what are you doing guys please do something about this matter, irritating sort system group by tag it is 2019 now

imohidul avatar Apr 10 '19 10:04 imohidul