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

Extend vectorizer to handle "fail" function

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2024-01-22

      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

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

              Created:
              Updated:
              Resolved: