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

Count stage is not being evaluated properly after moving it in the pipeline

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.14.0-beta
    • Fix Version/s: 1.14.0, 1.15.0
    • Component/s: Aggregation pipeline
    • Labels:
      None
    • # Replies:
      0
    • Last comment by Customer:
      true
    • Sprint:
      Sprint Vanilla Ice

      Description

      It requires renaming the parameter to get it re-evaluated. Otherwise, it keeps showing "No Preview documents".

       

      Repro steps:

      1. Create a simple pipeline
      2. Stage 1 : $match
      3. Stage 2: $count - any name as as paramater "", say "movies"

      Both stages are properly evaluated and the count stage shows "movies":1065

      4. Create new $match stage, $match {}

      The stage appears after $count

      5. Rearrange the stages for the $count to be the last stage again. Instead of showing 1065, it shows "No Preview documents".

      If I go a rename "movies" in the $count stage to "films", it produces the expected result:

      "films":1065

        Attachments

          Activity

            People

            • Assignee:
              durran.jordan Durran Jordan
              Reporter:
              grigori.melnik Grigori Melnik (Inactive)
              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, 5 days ago