[
https://issues.apache.org/jira/browse/AVRO-2034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16578256#comment-16578256
]
Dominic Egger commented on AVRO-2034:
-------------------------------------
I have a similar issue and came across this ticket. I dug some more into the
issue and created some failing examples
[https://gist.github.com/GrafBlutwurst/4d5c108b026b34ce83d2569bc8991b3d]
Any feedback on
[https://stackoverflow.com/questions/51817298/strict-avro-parsing-mode-no-dropping-additional-fields]
would be welcome. but it seems the JSON parser has a major bug in record
handling
> Nested schema types with unexpected fields causes json parse failure
> --------------------------------------------------------------------
>
> Key: AVRO-2034
> URL: https://issues.apache.org/jira/browse/AVRO-2034
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.8.1
> Reporter: Todd Nine
> Priority: Major
>
> When parsing a nested type with an unexpected field using the JSON parser,
> this results in an error. To reproduce, see the class {{TestNestedRecords}}
> in the referenced PR.
> https://github.com/apache/avro/pull/224
> Note that this only occurs when the following pattern exists in the schema.
> # regular field
> # nested record with additional field
> # Any subsequent field following the nested record with an unexpected field
> appears to reproduce the problem.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)