Skip to content

Conversation

@steven-aerts
Copy link
Contributor

Prevent the fixed and bytes type to be preliminary cut off when they are encoded into the json encoding.

Verifying this change

This change added tests and can be verified as follows: We updated the existing test_avro_data tests to validate this corner case.

Documentation

  • Does this pull request introduce a new feature? no

@github-actions github-actions bot added Java Pull Requests for Java binding C labels May 8, 2025
@steven-aerts steven-aerts force-pushed the avro-4136 branch 2 times, most recently from 6a7cab6 to 68ce21c Compare May 8, 2025 08:13
@github-actions github-actions bot removed the Java Pull Requests for Java binding label May 8, 2025
Copy link
Member

@martin-g martin-g left a comment

Choose a reason for hiding this comment

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

LGTM!

How about adding some extra tests for:

  • char all_nulls[] = {0x00, 0x00, 0x00};
  • char starts_with_null[] = {0x00, 0xDE, 0xAD};
  • char ends_with_null[] = {0xDE, 0xAD, 0x00};

Prevent the fixed and bytes type to be preliminary cut off when they
are encoded into the json encoding.
@martin-g martin-g merged commit 1110d25 into apache:main Oct 24, 2025
6 checks passed
@martin-g
Copy link
Member

Thank you, @steven-aerts !

@steven-aerts steven-aerts deleted the avro-4136 branch October 24, 2025 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants