Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-9362

ExpressionValueSource has buggy rewrite method

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.6
    • Component/s: modules/expressions
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      ExpressionValuesSource does not actually rewrite itself due to small mistake in check of inner rewrites.

      changed |= (rewritten[i] == variables[i]);
      

      should be changed to

      changed |= (rewritten[i] != variables[i]);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                emetsds Dmitry Emets
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

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