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

[RESP] ZUNIONSTORE should not create NaN in scores

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
              rhn-support-pdrobek Pavel Drobek
              Pavel Drobek Pavel Drobek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: