Reject expression-based sortBy in $linearFill parser

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • 8.2.12, 8.0.28, 7.0.39, 8.3.7, 9.0.0-rc1
    • Affects Version/s: 8.0.27
    • Component/s: None
    • None
    • Query Integration
    • 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:
            3 Start watching this issue

              Created:
              Updated: