jaideeppyne opened a new pull request, #209:
URL: https://github.com/apache/datasketches-go/pull/209

   KLL stores the exact stream extrema, but quantile queries can miss them 
after compaction when they fall out of the retained items. Calling the 
partition API also used to overwrite the cached sorted view, so a later query 
could return a different result.
   
   Insert a missing endpoint in the sorted view and transfer one unit of weight 
from its neighbor, following Java's `IncludeMinMax`. Quantile endpoints and 
partition boundaries then agree, and the partition call no longer changes later 
queries. This follows the interoperability direction of 
apache/datasketches-cpp#567.
   
   The new regression drops one endpoint regardless of compaction parity. It 
checks both search criteria, the sorted-view iterator's total weight, and query 
results before and after partitioning. It fails on the base revision and passed 
100 runs with the fix. The full `go test -race ./...` suite passed with the 
pinned C++ and Java snapshots and regenerated Go snapshots. `go vet ./...`, 
formatting, and `git diff --check` passed on Go 1.26.5.
   
   Implementation and tests prepared with OpenAI Codex assistance.
   


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