Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-7239

[RESP] ZUNIONSTORE should be executable against regular set

XMLWordPrintable

      Running ZUNIONSTORE against mix of regular and sorted set throws a WRONGTYPE error. Redis is able to process this combination.

      Infinispan:

      127.0.0.1:11222> sadd seta a b c
      (integer) 3
      127.0.0.1:11222> zadd zsetb 1 b 2 c 3 d
      (integer) 3
      127.0.0.1:11222> ZUNIONSTORE zsetc 2 seta zsetb weights 2 3
      (error) WRONGTYPE Operation against a key holding the wrong kind of value
      

      Redis:

      127.0.0.1:6379> sadd seta a b c
      (integer) 3
      127.0.0.1:6379> zadd zsetb 1 b 2 c 3 d
      (integer) 3
      127.0.0.1:6379> ZUNIONSTORE zsetc 2 seta zsetb weights 2 3
      (integer) 4
      

              rh-ee-jbolina Jose Bolina
              rhn-support-pdrobek Pavel Drobek
              Pavel Drobek Pavel Drobek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: