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

Add support for a default collation for views

    XMLWordPrintableJSON

Details

    • Fully Compatible

    Description

      Like collections, views should have a default collation. You can specify a default collation for a view at creation time; if no collation is specified, the view's default collation is the "simple" collator.

      The default collation of a view should not be overridden. This prevents a user from circumventing field-level redaction performed in the view pipeline that is implemented with string comparisons. The following operations should fail with an OptionNotSupportedOnView error:

      • Specifying a per-operation collation that differs from an operation involving a view, whether directly or via $lookup or $graphLookup
      • Performing any operation that involves multiple views (i.e. via $lookup or $graphLookup) where the views don't all have the same collation
      • Creating a view to depend on another view that does not have a matching collation
      • Modifying a view to depend on another view that does not have a matching collation

      Attachments

        Activity

          People

            kyle.suarez@mongodb.com Kyle Suarez
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: