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

Add preserveNull and preserveEmptyArrays as $unwind options

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Minor - P4
    • Resolution: Incomplete
    • None
    • None
    • Aggregation Framework
    • None

    Description

      There are many cases in the BI-Connector (and presumably in customer usage) where the distinction between empty and null array fields in an $unwind must be distinguished, e.g., when mimicking SQL left joins using $unwinds.

      Adding these two options would allow for easy distinguishing. For the BI-Connector, we really only need preserveNull, but having the symmetric preserveEmptyArrays could utility.

      Attachments

        Activity

          People

            asya.kamsky@mongodb.com Asya Kamsky
            patrick.meredith@mongodb.com Patrick Meredith
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: