Files
floci/src/test/java/io
Stas Burnashev 59c1d727fc fix(dynamodb): return attributes for UPDATED_NEW/UPDATED_OLD on new items (#538)
* fix(dynamodb): return attributes for UPDATED_NEW/UPDATED_OLD on new items

When UpdateItem creates a new item, oldItem is null. The UPDATED_NEW
branch required oldItem != null, so no attributes were returned.

Handle null oldItem by returning all newItem attributes (everything
is new). Same fix for UPDATED_OLD with null newItem.

Closes #537

* fix: exclude key attributes from UPDATED_NEW, remove dead UPDATED_OLD branch

- Diff newItem against the request key when oldItem is null, so key
  attributes are excluded from UPDATED_NEW (matches AWS behavior)
- Remove unreachable UPDATED_OLD else branch (newItem is never null)
- Assert key attributes are absent in the new-item test
2026-04-21 07:20:57 -05:00
..