-
Notifications
You must be signed in to change notification settings - Fork 1.9k
avro: Handle int64 values correctly [Backport to 4.2] #11892
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
Merged
cosmo0920
merged 6 commits into
4.2
from
cosmo0920-handle-int64-values-correctly-in-avro-4.2
Jun 2, 2026
+234
−34
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1bafe20
avro: Handle int64 values correctly
cosmo0920 4783d36
tests: internal: Add a test case for int64 values
cosmo0920 444ab10
avro: Preserve range error
cosmo0920 2a2090b
tests: internal: Add more test cases for avro handlings
cosmo0920 ace0e2e
tests: internal: FIx failing test cases for avro encoder
cosmo0920 4da4a52
github: workflows: Apply to run avro encoder tests
cosmo0920 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When this new range check fires for an element inside an Avro array,
msgpack2avrodoes not stop or preserve the failure in the array case: it appends the element, setsrettoFLB_FALSE, then continues and can overwriteretwith a later successful element. For an int array such as[2147483648, 1],flb_msgpack_to_avrocan return success even though the first element could not be assigned, so the encoder may emit a record with an unset/defaulted array element instead of rejecting the invalid input.Useful? React with 👍 / 👎.