Skip to content
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

[fast-avro] Schema evolution: complex fields changed to nullable #538

Conversation

krisso-rtb
Copy link
Contributor

[fast-avro] Fixing case when schema changed and complex fields became nullable.

Scenario: Record is serialized using schema with not-null complex fields (record, map, array)
and later deserialized with changed schema having these fields nullable (union of "null" complex type).

@codecov-commenter
Copy link

codecov-commenter commented Jan 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b0e0a27) 46.12% compared to head (5a6b1a6) 46.11%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #538      +/-   ##
============================================
- Coverage     46.12%   46.11%   -0.02%     
+ Complexity     4540     4536       -4     
============================================
  Files           407      407              
  Lines         28423    28423              
  Branches       4637     4637              
============================================
- Hits          13110    13106       -4     
  Misses        13746    13746              
- Partials       1567     1571       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dg-builder
Copy link
Collaborator

Hey @krisso-rtb, thanks for the fix! Do you know any history about when this bug was introduced?

@krisso-rtb
Copy link
Contributor Author

… nullable.

Scenario: Record is serialized using schema with not-null complex fields (record, map, array)
and later deserialized with changed schema having these fields nullable (union of "null" complex type).
@krisso-rtb krisso-rtb force-pushed the fast-avro-record-changed-to-nullable-record branch from 0c53b89 to 5a6b1a6 Compare January 24, 2024 11:44
@dg-builder dg-builder merged commit 58c9203 into linkedin:master Jan 24, 2024
2 checks passed
@krisso-rtb krisso-rtb deleted the fast-avro-record-changed-to-nullable-record branch January 24, 2024 15:51
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.

3 participants