Skip to content

run_with_names does not return hashes for sub records #30

@saurori

Description

@saurori

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), ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions