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

Test partitionBy null/missing

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Query Optimization 2021-04-05

      $setWindowFields implements partitioning by sorting. We should make sure partitioning works when the partition key is a mixture of nulls and missing.

      Should we coerce missing to null? ($group does, to ensure the _id field is always present.) At minimum, we need to make sure that all nulls are in the same partition, and all missings are in the same partition.

      We should also make sure to test compound keys where the components are a mixture of null and missing.

            Assignee:
            yuhong.zhang@mongodb.com Yuhong Zhang
            Reporter:
            david.percy@mongodb.com David Percy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: