sjs004 opened a new pull request, #16971: URL: https://github.com/apache/lucene/pull/16971
### Description `DoubleDocValuesStats ` and ` SortedDoubleDocValuesStats ` initialize their maximum to `Double.MIN_VALUE` . Unlike `Integer.MIN_VALUE` , this is a positive number: the smallest positive nonzero double, ` 4.9E-324` . No negative value or zero replaces it. Collecting `[-5, -3, -4]` therefore reports maximum `4.9E-324 ` instead of `-3` , even though that positive maximum was never indexed. The initial minimum, `Double.MAX_VALUE` , is also incorrect when every input is positive infinity. -- 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]
