Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HLL Union toString is not pure and can trigger a rebuild #482

Merged
merged 2 commits into from
Dec 7, 2023

Conversation

freakyzoidberg
Copy link
Member

@freakyzoidberg freakyzoidberg commented Dec 6, 2023

Hello,

The toString method of Union can mutate the object if a rebuild is necessary.
This make some test fail when running in debug (as some IDE will render object value automatically).

Not a major issue, but surely unexpected to have toString() mutate the object.

Thanks !

@leerho leerho self-requested a review December 7, 2023 01:37
@leerho leerho merged commit 0d48b4b into apache:master Dec 7, 2023
4 checks passed
@leerho
Copy link
Contributor

leerho commented Dec 7, 2023

Thank you! Excellent fix!

dongjoon-hyun pushed a commit to apache/spark that referenced this pull request Jan 3, 2024
### What changes were proposed in this pull request?
This pr aims to upgarde `datasketches-java` from 3.3.0 to 5.0.1.
Additionally, this PR adds handling for `SketchesArgumentException` to ensure backward compatibility for exceptional test scenarios in `hll.sql`.

### Why are the changes needed?
The new brings some bug fix and improvements, like

- apache/datasketches-java#437
- apache/datasketches-java#482

The full release notes as follows:
- https://github.com/apache/datasketches-java/releases/tag/4.0.0
- https://github.com/apache/datasketches-java/releases/tag/4.1.0
- https://github.com/apache/datasketches-java/releases/tag/4.2.0
- https://github.com/apache/datasketches-java/releases/tag/5.0.0
- https://github.com/apache/datasketches-java/releases/tag/5.0.1

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Pass GitHub Actions

### Was this patch authored or co-authored using generative AI tooling?
No

Closes #44547 from LuciferYang/datasketches-java-5.

Lead-authored-by: yangjie01 <[email protected]>
Co-authored-by: YangJie <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
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.

2 participants