apache / datasketches-java

A software library of stochastic streaming algorithms, a.k.a. sketches.

Home Page:https://datasketches.apache.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backward compatibility for empty sketches generated from older versions

a2l007 opened this issue · comments

The latest version of sketches doesn't seem to be backward compatible for empty sketches generated using older versions. For example in an union operation, using an empty sketch such as AQMDAAAazJM= generated using the older versions would throw the error:

java.lang.AssertionError: reqOffset: 8, reqLength: 8, (reqOff + reqLen): 16, allocSize: 8

    at com.yahoo.memory.UnsafeUtil.assertBounds(UnsafeUtil.java:167)
    at com.yahoo.memory.BaseState.assertValidAndBoundsForRead(BaseState.java:330)
    at com.yahoo.memory.BaseWritableMemoryImpl.getNativeOrderedLong(BaseWritableMemoryImpl.java:284)
    at com.yahoo.memory.WritableMemoryImpl.getLong(WritableMemoryImpl.java:133)
    at com.yahoo.sketches.theta.UnionImpl.update(UnionImpl.java:278)

@AlexanderSaydakov @leerho This is the same problem that I had discussed with you and I'm logging this issue for tracking purposes.

Please specify exactly which version you see this problem. "Latest" will change over time :)

Sorry, the version on which we're seeing this issue is sketches-core 0.13.4

@a2l007 This should be fixed as of apache version 1.1.0 and later. Could you please confirm?

Thanks

I assume this has been fixed.