Files
floci/src/main/java/io/github/hectorvent
TATSUNO “Taz” Yasuhiro fbe92aa411 fix(dynamodb): more request validations in Query and Scan (#3360)
* fix(dynamodb): accept and report Query key conditions the way AWS does

Three gaps in KeyConditionExpression validation.

A sort-key comparison with the value on the left, such as ":lo <= sk",
is valid on AWS and means "sk >= :lo". Floci rejected it because it only
looked for the attribute on the left. The operands are now normalised
before the key checks run.

A nested path on a key attribute now reports that it cannot carry a
condition, instead of the generic unsupported message.

A condition on a non-key attribute now reports the partition key it left
unconditioned, which is what AWS answers.

Closes 2 TIER 1 and 1 TIER 3 case in the dynamodb-conformance suite.

* fix(dynamodb): bound Segment and TotalSegments on Scan

A parallel Scan accepted a negative Segment. A TotalSegments of 0 was
rejected, but with the zero-based wording instead of the AWS constraint
wording. Both are now rejected with the AWS constraint wording, before
the required-parameter checks run. The TotalSegments upper bound from
#3287 moves into the same block, so several violations are reported in
one message.

Closes 1 TIER 3 case in the dynamodb-conformance suite.

* fix(dynamodb): report TotalSegments before Segment on Scan and test the lower bound
2026-09-11 00:08:03 -04:00
..