[
https://issues.jboss.org/browse/DROOLS-1242?page=com.atlassian.jira.plugi...
]
Matteo Mortari updated DROOLS-1242:
-----------------------------------
Description:
This is a spin-off out of another problem
[
here|https://issues.jboss.org/browse/GUVNOR-2589?focusedCommentId=1326892...]
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.
was:
This is a spin-off out of another problem
[
here|https://issues.jboss.org/browse/GUVNOR-2589?focusedCommentId=1326892...]
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.
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=1326892...]
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.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)