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

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

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • ALL
    • None
    • 3
    • 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 Unassigned
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: