Skip to content

Bugfix: HLL4 written in rust cannot not be loaded in Java#132

Merged
notfilippo merged 1 commit into
apache:mainfrom
fulmicoton-dd:paul.masurel/bugfix-java-aux-array-compact-flag
May 19, 2026
Merged

Bugfix: HLL4 written in rust cannot not be loaded in Java#132
notfilippo merged 1 commit into
apache:mainfrom
fulmicoton-dd:paul.masurel/bugfix-java-aux-array-compact-flag

Conversation

@fulmicoton-dd
Copy link
Copy Markdown
Contributor

The aux map can be serialized in two format.
Rust serializes only the compact format but omits to set the compact flag.

https://github.com/apache/datasketches-java/blob/main/src/main/java/org/apache/datasketches/hll/HeapAuxHashMap.java#L65-L96

This PR sets the flag.

The aux map can be serialized in two format.
Rust serializes only the compact format but omits to
set the compact flag.

https://github.com/apache/datasketches-java/blob/main/src/main/java/org/apache/datasketches/hll/HeapAuxHashMap.java#L65-L96

This PR sets the flag.
@fulmicoton-dd fulmicoton-dd force-pushed the paul.masurel/bugfix-java-aux-array-compact-flag branch from d5c88c9 to bf9e177 Compare May 19, 2026 11:24
@fulmicoton-dd fulmicoton-dd marked this pull request as ready for review May 19, 2026 11:25
Copy link
Copy Markdown
Member

@notfilippo notfilippo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@tisonkun , should we look into testing that our serialized sketches can be read correctly the Java / C++ implementation?

@tisonkun
Copy link
Copy Markdown
Member

@notfilippo I think we can file an issue on both repo and collaborate with perhaps @leerho and @AlexanderSaydakov to land the compatibility tests.

It can be also related to our long-term idea on #10

@notfilippo notfilippo merged commit c6ed433 into apache:main May 19, 2026
9 checks passed
@tisonkun
Copy link
Copy Markdown
Member

@notfilippo side note - we may use fix: .. to try to follow the semantic commit convention always.

@tisonkun tisonkun mentioned this pull request May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants