Exclusion projection disables lastpoint optimization in timeseries

XMLWordPrintableJSON

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

      Pipeline

      [{$group: {_id: "$m", l: {$bottom: {sortBy: {t: 1}, output: "$x"}}}}]
      

      over timeseries with "m" being the metaField and "t" being the timeField triggers lastpoint optimization as expected, however, the same pipeline prefixed with exclusion projection:

      [{$project: {y: 0}}, {$group: {_id: "$m", l: {$bottom: {sortBy: {t: 1}, output: "$x"}}}}]
      

      does not. But it would be valid to apply the optimization in this case as well (or remove the useless projection altogether).

              Assignee:
              [DO NOT USE] Backlog - Query Integration
              Reporter:
              Irina Yatsenko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: