How to get a quantile value from a reduce value ?
According documentation “each reducer works independently on each result and writes its final output once”, but how to do it in a single query ?
This query failed due to reducers working independently:
FT.AGGREGATE myIndex "*" APPLY "@timestamp - (@timestamp % 3600)" AS hour GROUPBY 1 @hour REDUCE COUNT_DISTINCT 1 @user_id AS num_users REDUCE QUANTILE 2 @num_users 50 AS median
Thank you for your help.