-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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-3219: Add nullable enum type field support in Avro.Reflect #1348
Conversation
Signed-off-by: Zike Yang <ar@armail.top>
Re: @blachniet @zcsizmadia @KyleSchoonover This is marked for release 1.11.1 -- would it be possible to take some time to review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't use Avro.Reflect myself, but I see how this change can improve support for nullable enums, and I don't think this can make anything worse.
The changes in LoadClassCache don't do anything about union schemas with nullable non-enum value types, or non-nullable enum types, but lang/csharp/src/apache/test/Reflect/TestFromAvroProject.cs has tests covering those and GitHub actions don't show any failure.
I approve this but recommend one optimization.
Please indicate in the PR title that this is specifically for Avro.Reflect. |
Thanks for the review @KalleOlaviNiemitalo . @RobertIndie If you can address the comments, we can probably get this into 1.11.1! |
Great. I will do it today. |
Signed-off-by: Zike Yang <zike@apache.org>
Thanks for your review. PTAL again. @KalleOlaviNiemitalo @RyanSkraba |
The C# code looks OK |
Signed-off-by: Zike Yang <zike@apache.org>
GitHub actions show that tests passed. I think this is ready to be merged. @RyanSkraba |
Thanks very much for the contribution @RobertIndie and the review @KalleOlaviNiemitalo |
* AVRO-3219: Add nullable enum type field support. Signed-off-by: Zike Yang <ar@armail.top> * Apply comments. Signed-off-by: Zike Yang <zike@apache.org> * Fix mistakenly removed the enum type check. Signed-off-by: Zike Yang <zike@apache.org>
Signed-off-by: Zike Yang zike@apache.org
Jira
Tests
TestNullableEnumResolution
Commits
Documentation