Do not inject $_internalUnpackBucket stage for pipelines that do not return buckets documents

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      f an aggregation pipeline targets a viewless timeseries collection, we currently rewrite the pipeline to inject the $_internalUnpackBucket stage. This stage is in charge of translating raw timeseries buckets document into logical timeseries documents.

      The problem is that currently we are injecting this stage also for pipelines that do not return raw timeseries buckets document. Instead, we should do it only for pipelines that return raw timeseries buckets documents.

      For instance, we should not inject the $_internalUnpackBucket for pipelines that starts with $listCatalog stage.

              Assignee:
              Unassigned
              Reporter:
              Tommaso Tocci
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: