Skip to content

Translate complex collection structural equality in queries #257

Description

@j-d-ha

Problem

ComplexPropertiesStructuralEqualityTestBase exposes query shapes where complex collection properties are compared structurally, for example:

e.RequiredAssociate.NestedCollection == e.OptionalAssociate!.NestedCollection

and where a nested complex collection is compared with an inline or parameter value.

DynamoDB can store nested list/map attributes, and PartiQL should be able to compare document values. This looks like a provider translation gap rather than a DynamoDB storage limitation.

Desired support

Translate structural equality for list-valued complex properties / nested complex collections to PartiQL document equality where DynamoDB supports it, including:

  • attribute-to-attribute comparison
  • attribute-to-inline-list comparison
  • attribute-to-parameter comparison

Related current spec coverage

ComplexPropertiesStructuralEqualityDynamoTest skips these inherited tests pending this support:

  • Two_nested_collections
  • Nested_collection_with_inline
  • Nested_collection_with_parameter

Separate but nearby gap: translating Contains over complex collection elements may also need investigation, potentially via DynamoDB PartiQL contains(...) semantics for map/list element values.

Notes

When implementing, verify DynamoDB Local and AWS PartiQL semantics for list/map equality, including list order sensitivity and parameter serialization for list-of-map values.

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