Skip to content

Revert #40#43

Merged
cpiemontese merged 2 commits intomasterfrom
revert-#40
Mar 5, 2026
Merged

Revert #40#43
cpiemontese merged 2 commits intomasterfrom
revert-#40

Conversation

@lpeppe
Copy link
Copy Markdown
Contributor

@lpeppe lpeppe commented Mar 5, 2026

Reverting #40. As discussed in this Slack thread, that PR changed from_avro_map so it no longer errors when fields are missing from the target struct. This broke try_decode for union types when decoding records made entirely of nullable fields.

A possible fix would be to update try_decode to verify the record actually contains the fields it’s about to decode before calling from_avro_map. For now, reverting is the safest way to restore the previous behaviour and unblock decoding.

@lpeppe lpeppe requested a review from a team as a code owner March 5, 2026 10:51
@cpiemontese cpiemontese merged commit ca7eeae into master Mar 5, 2026
10 checks passed
@cpiemontese cpiemontese deleted the revert-#40 branch March 5, 2026 10:58
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