Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-16688

[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
              karestig@redhat.com Katia Aresti
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: