Support $planCacheStats aggregation stage on time-series collection (sharded and unsharded)

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Running coll.aggregate([\{$planCacheStats: {}}]) on a time-series collection will fail with
      "$planCacheStats is only valid as the first stage in a pipeline".
       
      In case of time-series pipelines, $_internalUnpackBucket is the first stage. We need special handling for stages with constraints on pipeline position like the following for $indexStats. https://github.com/10gen/mongo/blob/master/src/mongo/db/views/resolved_view.cpp/#L137-L161

            Assignee:
            [DO NOT USE] Backlog - Query Execution
            Reporter:
            Adi Agrawal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: