Allow creating TTL index over timeField with partialFilterExpression defined over metaField

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution Team 2022-05-30, Execution Team 2022-06-13, Execution Team 2022-07-11
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We should reject any TTL index that is created over a field other than the collection timeField, as well as any TTL index that does not include a partialFilterExpression. The partialFilterExpression should only be allowed to access the metaField (constant across measurements within a bucket), and not any measurement data. We should be able to reuse some existing code for checking and re-writing the partialFilterExpression.

            Assignee:
            Fausto Leyva (Inactive)
            Reporter:
            Dan Larkin-York
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: