Startrekzky commented on issue #4651:
URL: 
https://github.com/apache/incubator-devlake/issues/4651#issuecomment-1467335791

   Hi @julianolsdominguesTW 
   Good catch. It seems `_find_clt_rank_each_month`  and `_clt`  are two 
equivalent temp tables, we should get rid of one.
   
   The idea of `_clt` is to get the median(not mean) change lead time for each 
month. Since MySQL doesn't support an aggregate function like median(), we have 
to first percent_rank() all records, and then find out the 50th percentile 
value (the value of the record with the biggest rank that <= 0.5).
   
   I hope it answers your question.


-- 
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]

Reply via email to