Analytical Queries in Druid

65 views
Skip to first unread message

Abdel

unread,
Feb 10, 2022, 6:06:41 AM2/10/22
to Druid User
Hello,

I am trying to implement some analytical time series queries on Druid, the queries are:
  • znormalization
  • weighted average (most recent data has more weight)
  • anomaly detection
  • forecasting
Are these queries available on Druid? If not, I currently have these queries written in SQL (PostgresSQL syntax). Is there a way to do the transition from Postgres SQL to Druid?

Thanks! 

Sergio Ferragut

unread,
Feb 10, 2022, 8:06:37 PM2/10/22
to Druid User
Hi Abdel,

There is no direct postgreSQL to Druid SQL translation tool. But it would be interesting to see postgres SQL so that the community can provide ideas on how to do this in Druid.

Here's what I've found somewhat related to the functions you are looking for:


I'm pretty sure that someone posted how to do a weighted average on Druid, but I can't seem to find it now.
I believe it was done with javascript, here's some info on that: https://druid.apache.org/docs/0.22.1/querying/post-aggregations.html#javascript-post-aggregator

Sergio Ferragut

unread,
Feb 16, 2022, 7:48:02 PM2/16/22
to Druid User
Hi Abdel,

I also found this video on Anomaly Detection with Druid which I think you will find useful.

Abdel

unread,
Mar 26, 2022, 4:12:41 PM3/26/22
to Druid User
Thanks Sergio!
Reply all
Reply to author
Forward
0 new messages