Skip to content

Conversation

@Kriskras99
Copy link
Contributor

In Avro 1.12 official support for the fixed type was added for the logical type uuid. avro-rs had a different interpretation of that and would rewrite it to a bytes type.

To remain compatible with the legacy implementation, avro-rs now supports string, fixed, and bytes. bytes does not match spec, but does allow users to read already encoded data.

This is a severe breaking change, although only for people who only use avro-rs (the legacy encoding did not, and still does not work with other languages).

I've also reworked Schema::Decimal to use a similar setup as Schema::Uuid which saves a Box and does not make the type bigger.

@Kriskras99
Copy link
Contributor Author

I think this is ready to merge now

@martin-g martin-g changed the title Support fixed as type for uuid feat: Support fixed as type for uuid Dec 8, 2025
@Kriskras99
Copy link
Contributor Author

I've rebased this PR on main

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