From 450321a00194a73fc289cac488064108ff692daf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TATSUNO=20=E2=80=9CTaz=E2=80=9D=20Yasuhiro?= Date: Sun, 18 Oct 2026 21:21:23 +0900 Subject: [PATCH] chore(dynamodb): cover a range-only sparse item in the index Scan test (#5924) An item that has the index sort key but not the index partition key is not in the index on AWS. This was the shape reported in #2275. --- .../DynamoDbLimitBoundaryPaginationIntegrationTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/java/io/github/hectorvent/floci/services/dynamodb/DynamoDbLimitBoundaryPaginationIntegrationTest.java b/src/test/java/io/github/hectorvent/floci/services/dynamodb/DynamoDbLimitBoundaryPaginationIntegrationTest.java index 49fb417b52..a5b4b9a860 100644 --- a/src/test/java/io/github/hectorvent/floci/services/dynamodb/DynamoDbLimitBoundaryPaginationIntegrationTest.java +++ b/src/test/java/io/github/hectorvent/floci/services/dynamodb/DynamoDbLimitBoundaryPaginationIntegrationTest.java @@ -471,12 +471,13 @@ class DynamoDbLimitBoundaryPaginationIntegrationTest { .then().statusCode(200); // pk=1: full index keys. pk=2: index HASH only (missing the index RANGE — // the case a partition-key-only sparse check would miss). pk=3: no index - // keys at all. pk=4: full index keys. + // keys at all. pk=4: full index keys. pk=5: index RANGE only (floci-io/floci#2275). String[] items = { "{\"pk\": {\"N\": \"1\"}, \"category\": {\"S\": \"a\"}, \"gsisort\": {\"N\": \"10\"}}", "{\"pk\": {\"N\": \"2\"}, \"category\": {\"S\": \"a\"}}", "{\"pk\": {\"N\": \"3\"}}", - "{\"pk\": {\"N\": \"4\"}, \"category\": {\"S\": \"a\"}, \"gsisort\": {\"N\": \"20\"}}" + "{\"pk\": {\"N\": \"4\"}, \"category\": {\"S\": \"a\"}, \"gsisort\": {\"N\": \"20\"}}", + "{\"pk\": {\"N\": \"5\"}, \"gsisort\": {\"N\": \"30\"}}" }; for (String item : items) { given()