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

AVRO-2108: [Java] DoubleArray converts double to float on array add #3285

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sarthaksin1857
Copy link

@sarthaksin1857 sarthaksin1857 commented Jan 9, 2025

What is the purpose of the change

Fixing AVRO-4108

Verifying this change

This change added a single test which simulates the issue testDoubleArrayPreservesPrecisionForNonFloatRepresentableValues which creates a double value that cannot be represented by float. It adds it to the array and then verifies that it still contains the double value.

Documentation

This is a bug fix so no documentation needed. I added comments in the test to explain the issue.

@github-actions github-actions bot added the Java Pull Requests for Java binding label Jan 9, 2025
@sarthaksin1857 sarthaksin1857 marked this pull request as ready for review January 10, 2025 17:02
@sarthaksin1857 sarthaksin1857 changed the title Fixing DoubleArray float cast AVRO-2108: [java] DoubleArray converts double to float on array add Jan 10, 2025
@sarthaksin1857 sarthaksin1857 changed the title AVRO-2108: [java] DoubleArray converts double to float on array add AVRO-2108: [Java] DoubleArray converts double to float on array add Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java Pull Requests for Java binding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants