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

Struct fields become lowercase in Hive #138

Open
sgalla1 opened this issue Sep 29, 2020 · 0 comments
Open

Struct fields become lowercase in Hive #138

sgalla1 opened this issue Sep 29, 2020 · 0 comments

Comments

@sgalla1
Copy link

sgalla1 commented Sep 29, 2020

When reading a Map type from DynamoDB into a Struct type in Hive, field names become lowercase. This causes issues if then writing back to another table in Dynamo.

E.g. A reading Dynamo data:

    {
        "Frame":"Red",
        "Wheels":"Black"
    }

Into hive column with type struct<Frame:string,Wheels:string> will become:

    {
        "frame":"Red",
        "wheels":"Black"
    }

If written back to DynamoDB. This is handled for column names through the dynamodb.column.mapping but I see no way to map the struct field names back to map fields.

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