mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
* 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