jaideeppyne opened a new pull request, #403: URL: https://github.com/apache/datasketches-rust/pull/403
## Problem After compaction, KLL can drop the stream minimum or maximum from the retained items. `quantile(0)` and `quantile(1)` still returned them, but every other query did not: - a rank just below 1 returned the last retained item, which can be less than the stored maximum - the inclusive rank and CDF of the minimum were 0 when that minimum was no longer retained The regression drops one endpoint regardless of the compaction coin. On the base revision, `quantile` of a rank just below 1 returned `6` instead of the stored maximum `7`. ## Fix The sorted view now inserts a missing minimum or maximum and moves one unit of weight off its neighbor, matching Java `IncludeMinMax` and the Go items sketch. The total weight is unchanged. Estimation-mode `rank` uses that view, so rank and CDF agree. ## Tests `cargo test -p tests-integration --test kll_test` — 29 passed. The new test fails on the base revision and passes with this change. -- 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]
