SAY-5 opened a new pull request, #808:
URL: https://github.com/apache/arrow-go/pull/808

   ### Rationale for this change
   Fixes #777. `ArrowSchemaFromAvro` previously silently dropped non-nullable 
Avro unions (e.g. `["int","string"]`) in both `arrowSchemafromAvro` and 
`iterateFields`. Output schemas were missing fields with no warning to the 
caller.
   
   ### What changes are included in this PR?
   Panic with a clear error message at the two `case "union"` / `case 
*avro.UnionSchema` arms when the union is not a simple nullable. The package's 
existing `recover()` in `ArrowSchemaFromAvro` converts this into a returned 
error.
   
   ### Are these changes tested?
   Yes — `TestComplexUnionReportsError` exercises a record with 
`["int","string"]` and asserts a non-nil error mentioning `union`.
   
   ### Are there any user-facing changes?
   Callers that previously received an incomplete schema for a complex-union 
field now get an explicit error.
   


-- 
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