You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Druid has several query types and one of them is timeseries, in the timeseries query we need to write GROUP BY FLOOR(__time TO <unit>) or TIME_FLOOR(__time, period) to set the time granularity of aggregation.
I haven't found a good way to do such queries via Trino. #7994 seems helpful, but even it works, we may still need a similar concept/syntax in Trino so the SQL will not have a parsing error. So I am not sure which term would best describe such concept in Trino, truncation, interal, duration, or, we can have a new function just named time_floor?
The text was updated successfully, but these errors were encountered:
After some research, I feel this belongs to the aggregation pushdown scope, currently the GROUP BY is represented with groupingSets, while currently in
Druid has several query types and one of them is
timeseries
, in thetimeseries
query we need to writeGROUP BY FLOOR(__time TO <unit>)
orTIME_FLOOR(__time, period)
to set the time granularity of aggregation.I haven't found a good way to do such queries via Trino. #7994 seems helpful, but even it works, we may still need a similar concept/syntax in Trino so the SQL will not have a parsing error. So I am not sure which term would best describe such concept in Trino, truncation, interal, duration, or, we can have a new function just named
time_floor
?The text was updated successfully, but these errors were encountered: