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

Test partitionBy null/missing

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0-rc0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Query Optimization 2021-04-05

      Description

      $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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: