Skip to content

UpdateItem UPDATED_NEW granularity diverges from DynamoDB (nested SET fragment, REMOVE) #36

@hicksy

Description

@hicksy

Summary

UpdateItem ReturnValues projection differs from real DynamoDB, surfaced by the dynamodb-conformance suite (Dynoxide 0.9.13).

  1. Nested SET. SET parent.child = :v with ReturnValues: UPDATED_NEW should return only the changed fragment, { parent: { M: { child } } }. Dynoxide returns the whole parent map (sibling keys included).
  2. REMOVE. REMOVE y with ReturnValues: UPDATED_NEW should omit Attributes entirely, because nothing was set to a new value. Dynoxide returns Attributes: {}.

For reference, UPDATED_NEW on a create already returns the new attributes as AWS does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions