incrementing longs in group results in NaN

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If initial is something like

      {count : 0L}

      and the reduce is out.count++, you end up with NaN:

      { "retval" : [

      { "tag" : "A" , "count" : NaN}

      ,

      { "tag" : "B" , "count" : NaN}

      ,

      { "tag" : "C" , "count" : NaN}

      ] , "count" : 5.0 , "keys" : 3 , "ok" : 1.0}

        1. Tester.java
          0.9 kB
          Kristina Chodorow

            Assignee:
            Eliot Horowitz (Inactive)
            Reporter:
            Kristina Chodorow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: