You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sorts the specified range of the specified array of objects into ascending order, according to the natural ordering of its elements. ... All elements in this range must implement the Comparable interface`.
It appears that Arrays.sort(inBuf, adjBeg, adjBeg + adjPop, comp) should be called instead.
The text was updated successfully, but these errors were encountered:
Thank you!
This was a bit subtle. It only occurs during merge, when a compaction is required, and when the object T cannot be naturally ordered.
Will fix this and add a test for it.
This has been merged into the main branch (next release with this still TBD). It was also back-ported into the 5.0.X branch, and I'm working on starting a release vote for a v5.0.2 right now, which will include this fix.
datasketches-java/src/main/java/org/apache/datasketches/kll/KllItemsHelper.java
Lines 436 to 438 in 8ae234b
The
Arrays.sort
API in the above codeIt appears that
Arrays.sort(inBuf, adjBeg, adjBeg + adjPop, comp)
should be called instead.The text was updated successfully, but these errors were encountered: