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

AVRO-3632: [Rust] Handle defaults in unions according to the spec #1901

Merged
merged 1 commit into from Oct 10, 2022

Conversation

woile
Copy link
Contributor

@woile woile commented Oct 7, 2022

What is the purpose of the change

Check the first element of the union matches the default value provided according to the union spec

Verifying this change

This change added tests and can be verified as follows: cargo test

Documentation

  • Does this pull request introduce a new feature? NO

@github-actions github-actions bot added the Rust label Oct 7, 2022
lang/rust/avro/src/error.rs Outdated Show resolved Hide resolved
lang/rust/avro/src/schema.rs Outdated Show resolved Hide resolved
Copy link
Member

@martin-g martin-g left a comment

Choose a reason for hiding this comment

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

Please fix the clippy errors

@woile
Copy link
Contributor Author

woile commented Oct 10, 2022

Thanks for the feedback, I'll update the PR ASAP.

@martin-g martin-g merged commit 92d5706 into apache:master Oct 10, 2022
martin-g pushed a commit that referenced this pull request Oct 10, 2022
@martin-g
Copy link
Member

Thank you for the contribution, @woile !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants