Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13524

Or Stream Evaluator produces incorrect results with more than 2 arguments

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 7.7.1
    • Fix Version/s: None
    • Component/s: streaming expressions
    • Labels:
      None

      Description

      Background

      Documentation for the OR evaluator says that it "will return the logical OR of at least 2 boolean parameters." The evaluator indeed accepts more than two parameters:

      or(true, true, true)

      returns true. However, it stops evaluating other parameters when the first two parameters evaluate to false.

      Steps to Reproduce

      Evaluate the following expression:

      or(false, false, true)
      

      Expected Result: "return-value": true
      Actual Result: "return-value": false
       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pseudochaos Oleksandr Chornyi
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m