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

Change unsupportedExpression to MONGO_UREACHABLE in SBE $text expression pre-visitor

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.7.0
    • None
    • Querying
    • Fully Compatible
    • Query 2020-09-07

    Description

      In WRITING-5356 we implemented support for legacy $text expression. The way it's implemented, we actually don’t use the match expression itself to evaluate the search predicate, but rather do it in a PlanStage layer, so this expression shouldn't ever appear as a filter in a PlanStage tree, meaning that we can never reach this line (and this is the reason we're not failing with an 'unsupported expression' error.

      We need to change this line to MONGO_UREACHABLE along with a comment describing why we never need to translate this expression.

      Same here.

      Attachments

        Activity

          People

            david.storch@mongodb.com David Storch
            anton.korshunov@mongodb.com Anton Korshunov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: