dragonfly
dragonfly copied to clipboard
ZINTERSTORE doesn't work as expected
(Please also review the command reference documentation when fixing)
Describe the bug ZINTERSTORE doesn't work as expected
To Reproduce Steps to reproduce the behavior:
- Insert records using
command - Query records using
command - Scroll down to '....'
- See error
Expected behavior dragonfly> ZADD zset1 1 "one" (integer) 1 dragonfly> ZADD zset1 1 "one" (integer) 1 dragonfly> ZADD zset2 1 "one" (integer) 1 dragonfly> ZADD zset2 2 "two" (integer) 1 dragonfly> ZADD zset2 3 "three" (integer) 1
dragonfly> ZINTERSTORE out 2 zset1 zset2 WEIGHTS 2 3 EXPECTED: (integer) 2 GOT: (integer) 0 dragonfly> ZRANGE out 0 -1 WITHSCORES EXPECTED:
- "one"
- "5"
- "two"
- "10" GOT: (empty array)