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

Extend vectorizer to handle "fail" function

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • None
    • None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2024-01-22

    Description

      The "fail" function is used to abort the processing when the value being examined is incompatible with the operation being performed. It doesn't return any value, so there should not be a vectorized counterpart. The vectorizer should translate it using an expression if (valueBlockAny(current_mask, true)) fail(...) else valueBlockNew(Nothing, valueBlockSize(current_mask)) if there is an active mask. The error would be thrown whenever at least one item is supposed to be processed by the fail() instruction.
      If there is no active mask, the fail() call can be left as is in the code

      Attachments

        Activity

          People

            alberto.massari@mongodb.com Alberto Massari
            alberto.massari@mongodb.com Alberto Massari
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: