From 7070d5e19f1d938efaac9dbc989d1505d6f81789 Mon Sep 17 00:00:00 2001 From: agrgr Date: Mon, 24 Jun 2024 10:42:22 +0300 Subject: [PATCH] add clarifying comment --- .../data/aerospike/repository/query/MapQueryCreator.java | 4 ++++ 1 file changed, 4 insertions(+) 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 -> {