AVRO-2702: ResolvingGrammarGenerator Union use reader instead of writer schema#980
AVRO-2702: ResolvingGrammarGenerator Union use reader instead of writer schema#980bellemare wants to merge 1 commit intoapache:masterfrom
Conversation
|
One of the major issues with this PR is that there doesn't appear to be any existing tests that test for it. The reporter issued a comprehensive test (in Kotlin) that does reveal if the patch works (I have verified the code to indeed work), but it seems heavy-handed to implement a single test for what clearly seemed like a mistake in the union coding. I am interested to see what a committer says about what we should do with regards to testing this, as it could be symptomatic of underlying issues with the ResolvingGrammarGenerator tests, particularly around nesting and strings. Alternatively, I am fine with porting the single-purpose test from Kotlin to Java and submitting that. |
|
Hello! This looks important, and I'd like to get a 1.10.1 release candidate soon. I don't think anyone is happy with missing unit tests, but this does look like the obvious fix. Would it be possible to include the ported Bar.kt test for this specific bug? At the very least, having it in place could encourage other tests to spring up... Thanks for your contribution! |
|
Included in #987 and cherry-picked into branch-1.10. I added the unit test translated from Kotlin. Thanks for your contribution! |
Make sure you have checked all steps below.
Jira
Tests
SEE FOLLOWING COMMENT - The code that was changed does not appear to be testing thoroughly as is, and it may require more extensive unit test changes than a simple one-off.
Documentation