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

[RESP] ZUNIONSTORE should not create NaN in scores

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

XMLWordPrintable

      Test: https://github.com/redis/redis/blob/7.2.5/tests/unit/type/zset.tcl#L1463-L1467

      Infinispan:

      127.0.0.1:11222> zadd zt -inf neginf
      (integer) 1
      127.0.0.1:11222> ZUNIONSTORE outt 1 zt weights 0
      (integer) 1
      127.0.0.1:11222> zrange outt 0 -1 withscores
      1) "neginf"
      2) "NaN"
      

      Redis:

      127.0.0.1:6379> zadd zt -inf neginf
      (integer) 1
      127.0.0.1:6379> ZUNIONSTORE outt 1 zt weights 0
      (integer) 1
      127.0.0.1:6379> zrange outt 0 -1 withscores
      1) 1) "neginf"
         2) (double) 0
      

              karestig@redhat.com Katia Aresti
              karestig@redhat.com Katia Aresti
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: