You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by GitBox <gi...@apache.org> on 2021/08/25 13:29:58 UTC

[GitHub] [datasketches-cpp] relistan opened a new issue #232: Java <-> CPP Theta sketch compatibility issue

relistan opened a new issue #232:
URL: https://github.com/apache/datasketches-cpp/issues/232


   I am unsure if this is user error or a bug. I have been attempting to exchange serialized Theta sketches between the Java  and C++ implementations. I am able to read sketches encoded from C++ in Java without any issue, _but not the other way around_. Is this perhaps an endianness issue? Both libraries are using Theta sketch serial version 3.
   
   If I use the sketches contained in the test suite for the C++ code that say they are from Java, they do work. If I use a sketch that I wrote out from Java (e.g. `sketch.compact().serialize()`) which works just fine from Java, I get a version mismatch error. Error from the C++ version when opening a sketch I wrote from Java:
   ```
   sketch type mismatch: expected 3, actual 2
   ```
   
   Relevant versions:
   * Java: `datasketches-java-2.0.0`
   * C++: `datasketches-cpp-3.1.0`
   
   Hardware/OS:
   * MacBook Pro
   * Intel CPU
   * macOS 10.13.6
   
   Any help is appreciated.
   
   
   


-- 
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: commits-unsubscribe@datasketches.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org


[GitHub] [datasketches-cpp] relistan closed issue #232: Java <-> CPP Theta sketch compatibility issue

Posted by GitBox <gi...@apache.org>.
relistan closed issue #232:
URL: https://github.com/apache/datasketches-cpp/issues/232


   


-- 
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: commits-unsubscribe@datasketches.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org


[GitHub] [datasketches-cpp] relistan commented on issue #232: Java <-> CPP Theta sketch compatibility issue

Posted by GitBox <gi...@apache.org>.
relistan commented on issue #232:
URL: https://github.com/apache/datasketches-cpp/issues/232#issuecomment-905611829


   Alas, this is 100% on me. Code was not actually calling `compact()` in Java and therefore the Family/type was wrong.


-- 
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: commits-unsubscribe@datasketches.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org