Update run aggregate to support viewless timeseries

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 0

      There are multiple places in runAggregate() and the AggregationExecutionState class where we have timeseries logic that depends on having a view. The following places must be updated

      1. OplogAggCatalogState::validate. We should not be able to create an OplogAggCatalogState on a viewless timeseries collection.
      2. AggCatalogState::validate.  Queries on viewful timeseries collections do not support $_resumeAfter and we should continue to not support that for viewless timeseries. When we make this change we should see if we can enable timeseries_resume_after.js in the viewless timeseries suites.

      We should also expand the AggExState unittests to create and test viewless timeseries collections.

      OplogAggCatalogState::validate will be handled by SPM-4132 that supports change streams for viewless timeseries, so we should just take care of #2 in this ticket.

            Assignee:
            Unassigned
            Reporter:
            Gil Alon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: