Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-1974

Rule fires incorrectly when BigDecimal equality is involved in a pattern after upgrading to 7.13.2

XMLWordPrintable

    • 2
    • False
    • None
    • False
    • CR1
    • +
    • 2023 Week 18-20 (from May 1), 2023 Week 21-23 (from May 22), 2023 Week 24-26 (from Jun 12)

      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.

              rhn-support-tkobayas Toshiya Kobayashi
              rhn-support-hmiura Hiroko Miura
              Paolo Bizzarri Paolo Bizzarri
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: