Skip to content

Null type becomes BOOL #928

Closed
Closed
@sergiors

Description

@sergiors

Is your feature request related to a problem? Please describe.

I did a stream to copy dynamodb to elasticsearch, I used the object DynamoDBStreamEvent, until that okey,
but when I try get the values, the null type becomes a boolean type.

Describe the solution you'd like

I read the source-code the AttributeValue.null_value and think the null value should back to python native value, like described in boto3 types

Describe alternatives you've considered

Additional context

As alternative to fix the stream copy, the only value that I need to check is the null value.

{k: v.get_value if not v.null_value else None for k, v in dct.items()}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions