[jboss-jira] [JBoss JIRA] (DROOLS-1242) built-in accumulate functions shall ignore NULLs

Matteo Mortari (JIRA) issues at jboss.org
Fri Jul 29 08:53:01 EDT 2016


Matteo Mortari created DROOLS-1242:
--------------------------------------

             Summary: built-in accumulate functions shall ignore NULLs
                 Key: DROOLS-1242
                 URL: https://issues.jboss.org/browse/DROOLS-1242
             Project: Drools
          Issue Type: Enhancement
          Components: core engine
            Reporter: Matteo Mortari
            Assignee: Matteo Mortari
            Priority: Optional


This is a spin-off out of another problem [here|https://issues.jboss.org/browse/GUVNOR-2589?focusedCommentId=13268928&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13268928] 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 ignore NULLs.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list