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

Regex $options should not serialize with "?"

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • ALL
    • QO 2023-07-24

      After serialization with "LiteralSerializationPolicy::kToRepresentativeParseableValue", $options with the $regex operator fails to re-parse with the error

      invalid flag in regex options: ? 

      You can see the relevant failing tests in the query_stats_passthrough in BF-29274.

            Assignee:
            will.buerger@mongodb.com Will Buerger
            Reporter:
            will.buerger@mongodb.com Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: