Reject expression-based sortBy in $linearFill parser

XMLWordPrintableJSON

    • Query Integration
    • Fully Compatible
    • v9.0, v8.3, v8.2, v8.0, v7.0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, $linearFill only validates that sortBy contains a single element; it doesn't reject expression-based sort parts (e.g. {x: {$meta: "randVal"}}).

      Expression-based sortBy is incompatible with $linearFill's linear interpolation, which requires a stable numeric/date field value the executor reads via a field path. The fix should match the precedent set by $derivative and $integral.

            Assignee:
            Daniel Segel
            Reporter:
            Daniel Segel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: