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

schema_registry: Support default null type in union for Avro #4129

Merged

Conversation

BenPope
Copy link
Member

@BenPope BenPope commented Mar 28, 2022

Cover letter

For Avro, null type in a union is supported for backwards compatibility,
if it's also the default. The default value must be of the type of the
first type in the union.

This change allows that.

Fixes #4120

Release notes

Improvements

  • Schema Registry: Support default null type in union for Avro

For Avro, nil type in a union is supported for backwards compatibility,
if it's also the default. The default value must be of the type of the
first type in the union.

This change allows that.

Fixes redpanda-data#4120
@BenPope
Copy link
Member Author

BenPope commented Mar 28, 2022

Unrelated test failures.

@BenPope BenPope merged commit b744123 into redpanda-data:dev Mar 28, 2022
@BenPope
Copy link
Member Author

BenPope commented Mar 28, 2022

/backport v21.11.x

@emaxerrno
Copy link
Contributor

Beautiful pr.

@BenPope BenPope added kind/bug Something isn't working area/schema-registry Schema Registry service within Redpanda labels Mar 28, 2022
BenPope added a commit that referenced this pull request Mar 29, 2022
Backport #4129: schema_registry: Support default nil type in union for Avro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda area/schema-registry Schema Registry service within Redpanda kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avro schema evolution not working with Union type and null default
3 participants