hutiefang76 opened a new pull request, #804: URL: https://github.com/apache/datasketches-java/pull/804
Part of #647: use a single bounded-long draw in ReservoirItemsSketch's steady-state update. A value below k both accepts the item and selects its replacement slot, giving each slot replacement probability 1/n. This keeps the existing 48-bit item-count limit, serialized format, initial-fill behavior, and capacity/null-check ordering. Thirteen new boundary cases cover counts around 32 bits and the 48-bit limit, sample membership, serialization round-trips, and unchanged state after a rejected update. Validation: OpenJDK 25.0.5, Maven 3.10.0, and the Java 25 toolchain. Full clean verify passed: 2442 tests, zero failures/errors/skips, plus Javadoc and Apache RAT checks. The default POM excludes the special cross-language test groups. For this linked worktree, the Git metadata plugin used its supported native backend: mvn -Dmaven.gitcommitid.nativegit=true clean verify. Generated with assistance from DeepSeek (deepseek-v4-pro) and OpenAI Codex for the code, tests, review, and PR text. -- 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]
