joshuarobinson opened a new issue #1785:
URL: https://github.com/apache/arrow-datafusion/issues/1785


   **Describe the bug**
   When trying to use "read_avro()" or "register_avro()" with a certain avro 
file schema, I consistently get a panic.
   `thread 'main' panicked at 'expected struct got None', 
/home/ir/.cargo/registry/src/github.com-1ecc6299db9ec823/datafusion-6.0.0/src/avro_to_arrow/arrow_array_reader.rs:771:37
   `
   The avro file is correctly decoded when using avro-tools-1.11.0.jar.
   
   **To Reproduce**
   Steps to reproduce the behavior:
   I have simplified the logic to the following test program: 
https://gist.github.com/joshuarobinson/413536d5affd751eb9d8958a970e8b04
   
   and I'm attaching a 
[link](https://drive.google.com/file/d/1i1Gpan_PktI-wCSeRmPe54iRrbsHH8vb/view?usp=sharing)
 to the 6KB avro file that causes me the problem.
   
   **Expected behavior**
   A clear and concise description of what you expected to happen.
   Print out the contents of the avro file with basic datafusion 
"df.collect.show" type logic.
   
   **Additional context**
   Add any other context about the problem here.
   The problematic avro file is part of Apache Iceberg metadata, fwiw.


-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to