kkewwei opened a new pull request, #17030: URL: https://github.com/apache/lucene/pull/17030
### Description I discovered `TestJoinUtil.testMultiValueRandomJoin` test failed with `ScoreMode.Avg` in https://github.com/apache/lucene/actions/runs/43663834758/job/132658987242 `GenericTermsCollector` accumulates scores in `double[]` within each collector. However, when results from parallel collectors were reduced, each collector's score was converted to `float` before being merged. Consequently, the final score depended on how matching documents were distributed across collectors. This was especially visible with `ScoreMode.Avg`: premature rounding of partial sums could produce a slightly different average for join values. <!-- If this is your first contribution to Lucene, please make sure you have reviewed the contribution guide. https://github.com/apache/lucene/blob/main/CONTRIBUTING.md --> -- 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]
