sarutak opened a new pull request, #92:
URL: https://github.com/apache/arrow-testing/pull/92

   This PR proposes to add `simple_enum.avro` and `simple_fixed.avro` which 
contain Avro's `Enum` and `Fixed`.
   These files are necessary for [this 
PR](https://github.com/apache/arrow-datafusion/pull/7635).
   The schema and data represented as JSON included in the files are like as 
follows.
   
   * simple_enum.avro
   ```
   {
       "name": "record1",
       "namespace": "ns1",
       "type": "record",
       "fields": [
           {
               "name": "f1",
               "type": {
                   "name": "enum1",
                   "type": "enum",
                   "symbols": ["a", "b", "c", "d"],
                   "default": "a"
               }
           },  {
               "name": "f2",
               "type": {
                   "name": "enum2",
                   "namespace": "ns2",
                   "type": "enum",
                   "symbols": ["e", "f", "g", "h"],
                   "default": "e"
               }
           },  {
               "name": "f3",
               "type": {
                   "name": "union1",
                   "type": [
                       "null",
                       {
                           "name": "enum3",
                           "type": "enum",
                           "symbols": ["i", "j", "k"],
                           "default": "i"
                       }
                   ]
               }
           }
       ]
   }
   ```
   ```
   {"f1":"a","f2":"g","f3":"j"}
   {"f1":"b","f2":"h","f3":"k"}
   {"f1":"c","f2":"e","f3":null}
   {"f1":"d","f2":"f","f3":"i"}
   ```
   
   * simple_fixed
   ```
   {
       "name": "record1",
       "type": "record",
       "namespace": "ns1",
       "fields": [
           {
               "name": "f1",
               "type": {
                   "name": "fixed1",
                   "type": "fixed",
                   "size": 5
               }
           },  {
               "name": "f2",
               "type": {
                   "name": "fixed2",
                   "namespace": "ns2",
                   "type": "fixed",
                   "size": 10
               }
           },  {
               "name": "f3",
               "type": {
                   "name": "union1",
                   "type": [
                       "null",
                       {
                           "name": "fixed3",
                           "type": "fixed",
                           "size": 6
                       }
                   ]
               }
           }
       ]
   }
   ```
   ```
   
{"f1":[97,98,99,100,101],"f2":[102,103,104,105,106,107,108,109,110,111],"f3":[65,66,67,68,69,70]}
   {"f1":[49,50,51,52,53],"f2":[49,50,51,52,53,54,55,56,57,48],"f3":null}
   ```


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