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

built-in accumulate functions shall ignore NULLs

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Optional
    • 7.0.0.Beta2
    • None
    • core engine
    • None
    • NEW
    • NEW

    Description

      This is a spin-off out of another problem here for a proposal of improvement.

      It could actually be beneficial for built-in accumulate functions to ignore NULLs.

      This would be similar behavior of other languages such:

      • SQL (e.g.: MySQL, Oracle, ..)
      • Clojure

      Currently it is up to the rule author to put a guarding condition in the first accumulate <source pattern> to manually ignore null sources to avoid the built-in accumulate functions to break trying to accumulate on NULLs.

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            mmortari@redhat.com Matteo Mortari
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: