dragonfly icon indicating copy to clipboard operation
dragonfly copied to clipboard

ZINTERSTORE doesn't work as expected

Open ashotland opened this issue 2 years ago • 0 comments

(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:

  1. Insert records using command
  2. Query records using command
  3. Scroll down to '....'
  4. 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:

  1. "one"
  2. "5"
  3. "two"
  4. "10" GOT: (empty array)

ashotland avatar Feb 21 '23 08:02 ashotland