Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-68327

Old JS engine cannot properly roundtrip NumberLong

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: 5.3.3
    • Component/s: None
    • Query Execution
    • ALL
    • 0

      It seems that the old JS engine does not return correct result for the following expression.

      function accumulate(state, input) {
        return input > state ? input : state;
      }
      

      Input params are state = '' (empty string) and input = NumberLong(1). The old engine returns {} and the new engine returns NumberLong(1). If input is 1.0, then both engines return 1.0

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            yoonsoo.kim@mongodb.com Yoon Soo Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: