englefly commented on PR #18331:
URL: https://github.com/apache/doris/pull/18331#issuecomment-1495202229

   > obviously
   
   When we map date range to double range,  the length of range is stretched. 
This stretch introduces error when we compute `length(rangeA)/length(rangeB)`
   
   for example, we map date rangeA1 (19900101, 19910101) to double 
rangeA2(19900101.0, 19910101.0). 
   map date rangeB1(19900101, 19900201) to double rangeB2 (19900101.0, 
19900201.0)
   rangeA1/rangeA2 = 1/12
   rangeB2/rangeB2 = (19900201-19900101) / (19910101-19900101) = 100 / 10000 = 
1 / 100


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

Reply via email to