suneet-s commented on issue #12699: URL: https://github.com/apache/druid/issues/12699#issuecomment-1165183602
@NikitaElmanov you can get percentiles by using the `APPROX_QUANTILES_DS` function in sql. See https://druid.apache.org/docs/latest/querying/sql-aggregations.html#quantiles-sketch-functions for the list of aggregations. I think your query would look like ``` SELECT __time as "time", APPROX_QUANTILES_DS(sla, 0.99) as " ", --!!!!!!!!!!!!!!!!!!!!!!!!!! name as "service" FROM SYTESTER_DRUID WHERE ('${service}' = 'Show All' OR name in (${service:sqlstring})) AND __time >= MILLIS_TO_TIMESTAMP(${__from}) AND __time <= MILLIS_TO_TIMESTAMP(${__to}) GROUP BY __time, name ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
