Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Duplicate
-
1.7.7
-
None
-
None
Description
When trying to encode to JSON a record whose schema contains a recursive type embedded in another type (ie. an array), the "flatten" method in the Parser leaves a hole in the middle of the symbol stack which causes a NPE to occur. My best guess is that it's leaving space for the embedded recursion but never populating the symbol, but that code is a bit obtuse so I am having trouble getting to the root cause (otherwise I would have provided a patch to solve the problem as well).
Attached is a class with a short main method that replicates the problem with anonymized versions of my datatypes/record and a screenshot of the symbol stack at runtime right before the error occurs.
Not yet tested in 1.8.0 but should be easy to verify.
Attachments
Attachments
Issue Links
- duplicates
-
AVRO-1667 Parser symbol tree flattening is broken for recursive schemas
- Resolved