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

SchemaTranslator: support non-null defaults for primitive and collection optional fields #994

Merged
merged 6 commits into from
Mar 28, 2024

Conversation

dg-builder
Copy link
Contributor

@dg-builder dg-builder commented Mar 27, 2024

Map, array, and primitive non-null defaults are now supported for optional fields.

Added unit tests to cover this case.

@@ -2645,36 +2656,6 @@ public Object[][] toAvroSchemaErrorData()
IllegalArgumentException.class,
"cannot translate union value"
},
{
// inconsistent default,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we now support this case.

@dg-builder dg-builder changed the title (default handling) SchemaTranslator: support non-null defaults for primitive and collection optional fields Mar 27, 2024
@dg-builder dg-builder marked this pull request as ready for review March 27, 2024 21:15
@dg-builder dg-builder merged commit 9237163 into linkedin:master Mar 28, 2024
2 checks passed
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