[V4] Update DocumentModel to handle expressions without variables #3804
+54
−18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #3802
Motivation and Context
Fixes a regression introduced in V4 where an expression without variables would throw an
AmazonDynamoDBException: ExpressionAttributeValues must not be empty
. For example, this operation:Would result in the following request body:
This PR updates the document model to match the request sent by V3:
Testing
DRY_RUN-c628983c-fa45-42c4-a4d0-81921c146e4f
AWSConfigs.InitializeCollections
is set totrue
Types of changes
Checklist
License