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

Add support for mismatching timeseries spec for $out

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • Execution Team 2023-02-20, QI 2023-11-13, QI 2023-11-27, QI 2023-12-11, QI 2023-12-25, QI 2024-01-08, QI 2024-01-22, QI 2024-02-05, QI 2024-02-19, QI 2024-03-04, QI 2024-03-18, QI 2024-04-01, QI 2024-04-15, QI 2024-04-29, QI 2024-05-13, QI 2024-05-27, QI 2024-06-10, QI 2024-06-24, QI 2024-07-08, QI 2024-07-22, QI 2024-08-05

      The current implementation of $out for time-series assumes that if $out is replacing an existing time-series collection, the specification the user provides matches the existing time-series collection, and raises an error if not. However, we can try to support changing the specifications of the time-series collection. We need to check if the metaField and timeField are changed, and if so update the indexes of the new collection accordingly. We also need to decide how conflicting options will be handled. 

            Assignee:
            Unassigned Unassigned
            Reporter:
            gil.alon@mongodb.com Gil Alon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: