Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4216

Aggregation Queries give syntax error when escaping some regexes

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.21.0
    • 1.20.5
    • Aggregation pipeline
    • None
    • Mac OS Catalina
    • Iteration Blackberry

    Description

      Try using the following `$match` pipeline stage:

       ```

      {   MetricName: /\|/ }

      ```

       

      Gives the following error:

      ```

      Expected "[" or AggregationStage but "{" found.

      ```

       

      Expected behavior: Compass should allow me to escape my regexes in aggregation. This functionality works fine in basic query mode. I can't find any documentation to indicate that this is an invalid query or why this might be invalid if I have made a mistake.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ksefchik@gmail.com Kirk Sefchik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: