Files
floci/src/main/java/io
Stas Burnashev b899f177e4 fix(dynamoDB): support arithmetic in DynamoDB SET expressions (#480)
* fix: support arithmetic in DynamoDB SET expressions

SET expressions like `SET cnt = cnt + :inc` or
`SET cnt = if_not_exists(cnt, :start) + :inc` silently ignored
the arithmetic operator - only the left operand was assigned.

Add `findArithmeticOperator()` to locate `+`/`-` outside function
parentheses, and evaluate both operands via `evaluateSetExpr` with
BigDecimal arithmetic.

Closes #479

* fix: address review - path-aware evaluateSetExpr, proper error handling

- Make evaluateSetExpr use hasValueAtPath/getValueAtPath for nested
  path support (e.g. SET a.b = a.b + :inc)
- Throw ValidationException for non-numeric operands instead of
  silent no-op
- Catch NumberFormatException on BigDecimal parsing

* fix: add integration and compatibility tests for SET arithmetic

- Add DynamoDbIntegrationTest for if_not_exists + arithmetic (repro from #479)
- Add Java SDK compatibility test covering increment, consecutive
  increments, and subtraction
2026-04-17 18:17:02 -05:00
..