Skip to content

Commit 644211d

Browse files
committed
DynamoDb enhanced client: support UpdateExpressions in single-request update
1 parent f433032 commit 644211d

File tree

1 file changed

+4
-7
lines changed
  • services-custom/dynamodb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/internal/operations

1 file changed

+4
-7
lines changed

services-custom/dynamodb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/internal/operations/UpdateItemOperation.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -277,15 +277,12 @@ public TransactWriteItem generateTransactWriteItem(TableSchema<T> tableSchema, O
277277
* <li><b>Request expressions</b>: Includes explicit UpdateExpression from the request (if any)</li>
278278
* </ol>
279279
*
280-
* <p><b>Conflict Detection:</b>
281-
* <ul>
282-
* <li>POJO vs Request conflicts are detected client-side and throw {@code IllegalArgumentException}</li>
283-
* <li>Extension vs Request conflicts are detected server-side by DynamoDB and throw {@code DynamoDbException}</li>
284-
* </ul>
280+
* <p><b>Conflict Detection:</b> All conflicts are detected server-side by DynamoDB and throw {@code DynamoDbException}.
285281
*
286282
* <p><b>Attribute Filtering:</b>
287-
* Attributes referenced in extension expressions are automatically excluded from REMOVE actions
288-
* to prevent conflicts, even when {@code ignoreNulls} is false.
283+
* When {@code ignoreNulls} is false, null POJO attributes normally generate REMOVE actions.
284+
* However, attributes referenced in extension expressions are automatically excluded from
285+
* REMOVE actions to prevent DynamoDB conflicts between extension and POJO operations.
289286
*
290287
* @param tableMetadata metadata about the table structure
291288
* @param transformation write modification from extensions containing UpdateExpression

0 commit comments

Comments
 (0)