diff --git a/src/main/java/org/springframework/data/aerospike/repository/query/MapQueryCreator.java b/src/main/java/org/springframework/data/aerospike/repository/query/MapQueryCreator.java index 765d50e8..6f3a68fe 100644 --- a/src/main/java/org/springframework/data/aerospike/repository/query/MapQueryCreator.java +++ b/src/main/java/org/springframework/data/aerospike/repository/query/MapQueryCreator.java @@ -270,6 +270,10 @@ private Qualifier processMapContaining(QueryQualifierBuilder qb, Part part, Stri case KEY -> { op = keysOp; setQualifierBuilderValue(qb, queryParameters.get(1)); + // the actual value is irrelevant here, + // the last dotPath element is discarded within AerospikeQueryCreatorUtils.getCtxFromDotPathArray(), + // the elements except the first and the last are converted to CTX, + // the key object (can contain '.') is transferred separately via qualifier builder value dotPath.add("mapKeyPlaceholder"); } case VALUE -> {