$internalConstructStats should accept value to be processed directly instead of hardcoding to "$val"

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The $internalConstructStats accumulator currently accepts the full root document and expects a hardcoded field "val" to contain the actual data to accumulate. It would be better (and more inline with other accumulators) to have the desugaring phase handle this and pass the value directly to the accumulator, so something like this:

       $_internalConstructStats: {
          val: "$val",
          sampleRate: sampleRate
      }
      

            Assignee:
            [DO NOT USE] Backlog - Query Optimization
            Reporter:
            Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: