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

[RESP] ZUNIONSTORE should be executable against regular set

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

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
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: