sqd opened a new issue, #10770:
URL: https://github.com/apache/arrow-rs/issues/10770

   ### Describe the bug
   
   An Avro record with no fields is legal, and encodes to zero bytes. The 
reader accepts such a schema and decodes its (empty) bytes fine, but fails at 
flush:
   
       Invalid argument error: use StructArray::try_new_with_length or
       StructArray::new_empty_fields to create a struct array with no
       fields so that the length can be set correctly
   
   `Decoder::Record` flushes through `StructArray::try_new`, which infers its 
length from the first child array, but a zero-field record has no child array.
   
   
   ### To Reproduce
   
   See associated PR
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   _No response_


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