Skip to content

Sanitize list indices in DynamoDB projection expressions - #7366

Open
afarber wants to merge 1 commit into
aws:masterfrom
afarber:5603-square-brackets
Open

Sanitize list indices in DynamoDB projection expressions#7366
afarber wants to merge 1 commit into
aws:masterfrom
afarber:5603-square-brackets

Conversation

@afarber

@afarber afarber commented Sep 10, 2026

Copy link
Copy Markdown

Motivation and Context

Fixes #5603.

The DynamoDB Enhanced Client generated invalid expression attribute-name keys when projecting an attribute path containing a list index, such as phoneNumbers[1].

Modifications

  • Sanitize [ and ] through the existing shared attribute-name sanitizer.
  • Update regression coverage for list-index projection aliases.
  • Add a changelog entry.

Testing

./mvnw -pl :dynamodb-enhanced \
  -Dtest=EnhancedClientUtilsTest,ProjectionExpressionTest test

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

License

  • I confirm that this pull request can be released under the Apache 2 license

@afarber
afarber requested a review from a team as a code owner September 10, 2026 19:11
@afarber
afarber force-pushed the 5603-square-brackets branch from 8ebaf1a to 3e6bcc3 Compare September 12, 2026 07:44
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

Successfully merging this pull request may close these issues.

Projection expression with list item throws error using DynamoDB Enhanced client

1 participant