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

Implement validation error generation for geospatial and bitwise query operators

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Query 2020-08-24

      Implement validation error generation for $geoIntersects, $geoWithin, $bitsAllClear, $bitsAllSet, $bitsAnyClear, and $bitsAnySet along with unit tests verifying that generated errors conform to the expected format.

      Note that this ticket should involve simply tagging the correct nodes with the proper annotation in 'expression_parser.cpp' and adding appropriate error messages as was done for the comparison operators since the expected format for these operators don't involve adding any operator-specific fields.

      Additionally, note that SERVER-49023 changes the interface for error generation as it introduces a stack of frames which allows for nested errors to be generated and as such, the work for this patch should be based on top of the linked commit.

            Assignee:
            mindaugas.malinauskas@mongodb.com Mindaugas Malinauskas
            Reporter:
            mihai.andrei@mongodb.com Mihai Andrei
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: