You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by al...@apache.org on 2023/09/13 19:18:31 UTC

[arrow-testing] branch master updated (e81d0c6 -> 2c84953)

This is an automated email from the ASF dual-hosted git repository.

alamb pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-testing.git


    from e81d0c6  Add Avro file for null test case (#90)
     add 3f8afb0  Add nested_records.avro
     add a631857  Edit README.md
     new 2c84953  Add an Avro test data containing nested records (#91)

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 data/avro/README.md           |   1 +
 data/avro/nested_records.avro | Bin 0 -> 619 bytes
 2 files changed, 1 insertion(+)
 create mode 100644 data/avro/nested_records.avro


[arrow-testing] 01/01: Add an Avro test data containing nested records (#91)

Posted by al...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-testing.git

commit 2c84953c8c2779a0dc86ef9ebe8a6cd978125bfe
Merge: e81d0c6 a631857
Author: Andrew Lamb <an...@nerdnetworks.org>
AuthorDate: Wed Sep 13 15:18:26 2023 -0400

    Add an Avro test data containing nested records (#91)
    
    This PR proposes to add an Avro format test data which contains nested
    records.
    This data is necessary for testing the change proposed in [this
    PR](https://github.com/apache/arrow-datafusion/pull/7525).
    
    The schema of this test data is 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"
                        }
                    ]
                }
            }
        ]
    }
    ```
    
    And the JSON representation of the Avro format file is as follows.
    ```
    {"f1":{"f1_1":"aaa","f1_2":10,"f1_3":{"f1_3_1":3.14}},"f2":[{"f2_1":true,"f2_2":1.2},{"f2_1":true,"f2_2":2.2}]}
    {"f1":{"f1_1":"bbb","f1_2":20,"f1_3":{"f1_3_1":3.14}},"f2":[{"f2_1":false,"f2_2":10.2}]}
    ```

 data/avro/README.md           |   1 +
 data/avro/nested_records.avro | Bin 0 -> 619 bytes
 2 files changed, 1 insertion(+)