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

ExpressionValueSource has buggy rewrite method

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 8.6
    • modules/expressions
    • None
    • 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

              Unassigned Unassigned
              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