Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-3037

aggregation and $merge accumulator is not working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.15.0
    • Component/s: Aggregation pipeline
    • Labels:
      None
    • # Replies:
      3
    • Last comment by Customer:
      true
    • Sprint:
      Iteration Halloumi

      Description

      Hello, I am trying to create the following aggregation pipeline but last step is not working.

      [{ $match: /** * query - The query in MQL. */
      {{Unknown macro: { codigoInternoDelContratoIuc }}}
      }, { $project: /** * specifications - The fields to * include or exclude. */{ "codigoInternoDelContratoIuc":1, all_buck: { $concatArrays: [ {$ifNull: ['$online', []]},'$buckets'] }} },
      Unknown macro: { $unwind}
      , { $group: /** * _id - The id of the group. * field1 - The first field name. */{ _id: "$all_buck.codigoRmsOperacionExtendido", mov:
      Unknown macro: { $mergeObjects}
      , count:{$sum:1 }]}}

      For mergeObjects is expecting [ ]... I have tried different version but it is not working. The same pipeline in the shell is working fine!
      Thank you i advance,

      Juan

        Attachments

          Activity

            People

            Assignee:
            durran.jordan Durran Jordan
            Reporter:
            juan.soto Juan Soto
            Participants:
            Last commenter:
            Jessica Sigafoos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since reply:
              1 year, 45 weeks, 6 days ago
              Date of 1st Reply: