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

XMLWordPrintableJSON

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

      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
            Reporter:
            Anton Korshunov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: