Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit test to verify support for arrays in AvroScheme #45

Open
kkrugler opened this issue Mar 4, 2016 · 0 comments
Open

Add unit test to verify support for arrays in AvroScheme #45

kkrugler opened this issue Mar 4, 2016 · 0 comments
Assignees
Milestone

Comments

@kkrugler
Copy link
Member

kkrugler commented Mar 4, 2016

From Sowmitra on May 19, 2015:

Finally zeroed in on the problem. For one of the datasets, I was using AvroScheme instead of PackedAvroScheme, and the data I was reading had a schema like below. Looks like AvroScheme does not handle the ser/de of the array field well. Are you aware of any issues around that?

The schema he was using looks like:

{
    "type" : "record",
    "name" : "Object",
    "fields" : [ {
        "name" : "field1",
        "type" : "int"
    }, {
        "name" : "field2",
        "type" : "string"
    }, {
        "name" : "field3",
        "type" : "boolean"
    }, {
        "name" : "field4",
        "type" : {
            "type" : "array",
            "items" : {
                "type" : "record",
                "name" : "field4_type",
                "fields" : [ {
                    "name" : "subField1",
                    "type" : "string"
                }, {
                    "name" : "subField2",
                    "type" : "string"
                } ]
            }
        }
    } ]
}
@kkrugler kkrugler added this to the 3.1 milestone Jul 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants