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

run_with_names does not return hashes for sub records #30

Open
saurori opened this issue Jun 8, 2017 · 0 comments
Open

run_with_names does not return hashes for sub records #30

saurori opened this issue Jun 8, 2017 · 0 comments

Comments

@saurori
Copy link

saurori commented Jun 8, 2017

When running a query using run_with_names, sub records are not converted to named hashes.

For example an originating Avro schema that looks like this:

        {
            "name": "issuer",
            "type": {
                "type": "record",
                "name": "issuer",
                "fields": [
                    {
                        "name": "country",
                        "type": {
                            "name": "country",
                            "type": "array",
                            "items": "string"
                        }
                    },
                    ...

Returns data that outputs like:

"issuer"=>[["US"], ...

Looking at the information returned in columns when querying using run I do see the issuer sub record type information available, for example:

#<struct Presto::Client::ModelVersions::V0_153::ClientColumn name="issuer", type="row(country array(varchar), ...
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

1 participant