sarutak opened a new issue, #7524:
URL: https://github.com/apache/arrow-datafusion/issues/7524

   ### Describe the bug
   
   Given we have an Avro format file whose schema contains nested records like 
as follows.
   ```
   {
       "name": "record1",
       "namespace": "ns1",
       "type": "record",
       "fields": [
           {
               "name": "f1",
               "type": {
                   "name": "record2",
                   "namespace": "ns2",
                   "type": "record",
                   "fields": [
                       {
                           "name": "f1_1",
                           "type": "string"
                       },  {
                           "name": "f1_2",
                           "type": "int"
                       },  {
                           "name": "f1_3",
                           "type": {
                               "name": "record3",
                               "namespace": "ns3",
                               "type": "record",
                               "fields": [
                                   {
                                       "name": "f1_3_1",
                                       "type": "double"
                                   }
                               ]
                           }
                       }
                   ]
               }
           },  {
               "name": "f2",
               "type": "array",
               "items": {
                   "name": "record4",
                   "namespace": "ns4",
                   "type": "record",
                   "fields": [
                       {
                           "name": "f2_1",
                           "type": "boolean"
                       },  {
                           "name": "f2_2",
                           "type": "float"
                       }
                   ]
               }
           }
       ]
   }
   ```
   If we create a table from such an Avro format file and then scan the table, 
it fails.
   
   ### To Reproduce
   
   You can easily reproduce this issue using an Avro format file I prepared.
   
https://github.com/sarutak/arrow-testing/blob/nested-records/data/avro/nested_records.avro
   
   Then, create a table from the file and scan the table.
   ```
   CREATE EXTERNAL TABLE mytbl STORED AS AVRO LOCATION '/path/to/avro_file';
   SELECT * FROM mytbl;
   ```
   
   ### 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