From 93378fb0987b5a9ce5546726bcd2536b3f55ac5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C4=83t=C4=83lin=20P=C3=AErvu?= Date: Thu, 17 Apr 2025 17:06:28 +0300 Subject: [PATCH] Update paramValues for querying parametrized views creating a a map of parameters using Map.of(...) will actually not work, probably something inside the library doesn't like "ImmutableCollections" created by Map.of(...) --- java/working-with-cql/query-execution.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java/working-with-cql/query-execution.md b/java/working-with-cql/query-execution.md index 8f206e176..d4f1416d1 100644 --- a/java/working-with-cql/query-execution.md +++ b/java/working-with-cql/query-execution.md @@ -112,7 +112,9 @@ To query `BooksView` in Java, run a select statement and provide values for all ```java CqnSelect query = Select.from("BooksView"); -var params = Map.of("minStock", 100); + +Map paramValues = new HashMap<>(); +paramValues.put("minStock", 100); Result result = service.run(query, params); ```