Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-7444

join constraints are ignored when BigDecimal equality is involved in a Pattern

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.40.0.Final
    • None
    • core engine
    • None
    • 2023 Week 18-20 (from May 1), 2023 Week 21-23 (from May 22)
    • 2
    • NEW
    • NEW
    • ---
    • ---

    Description

      Issue Description:
      For example,

          when
              $p1 : Person( name == "John" )
              $p2 : Person( name == "Paul", age == $p1.age, salary == $p1.salary )
      

      John : age = 30, salary = 10
      Paul : age = 28, salary = 10

      This rule should not match because ages are not the same. However, it matches. This issue is caused by DROOLS-7085 which employs TupleList instead of TupleIndexHashTable while other hashable beta constraints are marked is "indexed".

      Acceptance Criteria:

      • Use TupleIndexHashTable if there are other hashable beta constraints.
      • Exclude BigDecimal equality constraint from index and mark it indexed=false so that it will be asserted on PhreakJoinNode.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-tkobayas Toshiya Kobayashi
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: