Skip to content

Fix mishandling of null types in output Avro schemas #146

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
merged 1 commit into from
Jun 11, 2025

Conversation

ryannedolan
Copy link
Collaborator

@ryannedolan ryannedolan commented Jun 10, 2025

Summary

  • Fix Nested union: ["null",["null"]] bug

Details

Avro does not allow ["null",["null"]] nor ["null", "null"]. AvroConverter was generating ["null",["null"]], presumably in an attempt to represent a nullable null type. But of course the null type is implicitly nullable anyway.

Testing

New unit test fails with Nested union: ["null",["null"]] without the fix. Passes with the fix.

@ryannedolan ryannedolan changed the title WIP Fix mishandling of null types in output Avro schemas Jun 10, 2025
@ryannedolan ryannedolan marked this pull request as ready for review June 10, 2025 23:34
Copy link
Collaborator

@jogrogan jogrogan left a comment

Choose a reason for hiding this comment

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

Whoops, I broke this :)

@ryannedolan ryannedolan merged commit 076a544 into main Jun 11, 2025
1 check passed
@ryannedolan ryannedolan deleted the fix-null-types branch June 11, 2025 01:37
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