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

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

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Querying
    • Fully Compatible
    • Query 2020-09-07

      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.

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

              Created:
              Updated:
              Resolved: