mzabaluev opened a new pull request, #9328:
URL: https://github.com/apache/arrow-rs/pull/9328

   # Which issue does this PR close?
   
   - Closes TBA.
   
   # Rationale for this change
   
   When an Avro reader schema has a union type that needs to be resolved 
against the type in the writer schema, resolution information other than 
primitive type promotions is not properly handled when creating the decoder.
   For example, when the reader schema has a nullable record field that has an 
added nested field on top of the fields defined in the writer schema, the 
record type resolution needs to be applied, using a projection with the default 
field value.
   
   # What changes are included in this PR?
   
   Extend the union resolution information in the decoder with variant
   data for enum remapping and record projection. The Projector data
   structure with Skipper decoders makes part of this information,
   which necessitated some refactoring.
   
   # Are these changes tested?
   
   TODO:
   
   - [ ] Debug failing tests including a busy-loop failure mode.
   - [ ] Add more unit tests exercising the complex resolutions.
   
   # Are there any user-facing changes?
   
   No.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to