Skip to content

Conversation

@jonvex
Copy link
Contributor

@jonvex jonvex commented May 12, 2025

Change Logs

The precision is incorrect for evolution from float to double and has been fixed for most of spark by #13188. However, there are some edge cases that still need to be fixed.

This pr fixes avro log blocks the evolution is fixed by adding the float -> double conversion into the method that determines if we need to manually convert the record (and the manual conversion already has the float->double conversion correct)

Impact

Fix float -> double precision issue for avro log blocks

Risk level (write none, low medium or high below)

low

Documentation Update

N/A

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

@github-actions github-actions bot added the size:XS PR with lines of changes in <= 10 label May 12, 2025
@jonvex jonvex changed the title [HUDI-8902] Fix schema evolution from float to double for avro log blocks and for vectorized reader [HUDI-8902] Fix schema evolution from float to double for avro log blocks May 13, 2025
@jonvex jonvex marked this pull request as ready for review May 13, 2025 23:20
@github-actions github-actions bot added size:S PR with lines of changes in (10, 100] and removed size:XS PR with lines of changes in <= 10 labels May 13, 2025
@hudi-bot
Copy link
Collaborator

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@danny0405 danny0405 merged commit cac1bea into apache:master May 14, 2025
60 checks passed
alexr17 pushed a commit to alexr17/hudi that referenced this pull request Aug 25, 2025
…ocks (apache#13289)

* fix for avro log blocks and for vectorized reader
* add test and revert vectorized change

---------

Co-authored-by: Jonathan Vexler <=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S PR with lines of changes in (10, 100]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants