-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
type: bugA general bugA general bug
Milestone
Description
Current Behavior
redis.jsonArrpop("k",new JsonPath("$"),i);
returns last element instead of element at pos i
Environment
- Lettuce version(s): [e.g. 6.5.5.RELEASE]
Possible Solution
Should be an easy fix, see current code here:
lettuce/src/main/java/io/lettuce/core/RedisJsonCommandBuilder.java
Lines 109 to 118 in cb02888
if (jsonPath != null && !jsonPath.isRootPath()) { | |
// OPTIONAL as per API | |
args.add(jsonPath.toString()); | |
if (index != -1) { | |
// OPTIONAL as per API | |
args.add(index); | |
} | |
} | |
Additional context
Metadata
Metadata
Assignees
Labels
type: bugA general bugA general bug