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

Skip 'n' expression evaluation during ExpressionN serialization

    • Query Integration
    • Fully Compatible
    • ALL
    • v8.0, v7.0, v6.0
    • Hide

      1. Run a $setWindowFields with an expression likeĀ 
      $maxN: {n: {$abs: {$ceil: {$strcasecmp: ["Grocery Small", "withdrawal"]}}}, input: "$x"}
      2. Run $queryStats

      Show
      1. Run a $setWindowFields with an expression likeĀ  $maxN: {n: {$abs: {$ceil: {$strcasecmp: ["Grocery Small", "withdrawal"] }}}, input: "$x"} 2. Run $queryStats
    • 200

      The ExpressionN::serialize implementation (indirectly) evaluates the accumulator 'n' expression and initializes the accumulator with it. We shouldn't need to do this step for serialization (and it can cause errors on re-parsing for $queryStats).

            Assignee:
            alyssa.clark@mongodb.com Alyssa Clark
            Reporter:
            alyssa.clark@mongodb.com Alyssa Clark
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: