[jboss-jira] [JBoss JIRA] (DROOLS-1612) Throw compilation error when using collect hit policy with aggr. function and multiple outputs

Tibor Zimányi (JIRA) issues at jboss.org
Tue Jun 13 06:34:00 EDT 2017


    [ https://issues.jboss.org/browse/DROOLS-1612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13420089#comment-13420089 ] 

Tibor Zimányi commented on DROOLS-1612:
---------------------------------------

PR with reproducer is here: https://github.com/kiegroup/drools/pull/1320

The test for this is DMNDecisionTableHitPolicyTest.testSimpleDecisionTableHitPolicyCollectSumMultipleOutputs(). 

> Throw compilation error when using collect hit policy with aggr. function and multiple outputs
> ----------------------------------------------------------------------------------------------
>
>                 Key: DROOLS-1612
>                 URL: https://issues.jboss.org/browse/DROOLS-1612
>             Project: Drools
>          Issue Type: Bug
>          Components: dmn engine
>    Affects Versions: 7.0.0.Final
>            Reporter: Tibor Zimányi
>            Assignee: Edson Tirelli
>             Fix For: 7.1.0.Final
>
>
> According to the DMN spec., "Decision tables with compound outputs support only the following hit policies: Unique, Any, Priority, First, Output
> order, Rule order and Collect without operator, because the collect operator is undefined over multiple outputs." 
> However when I use decision table with "COLLECT" hit policy, "sum" aggregate function and multiple outputs, the table compiles. When evaluating the table, I get nulls as output value results, but no error message in DMNResult. 
> I will provide a reproducer in a PR. 



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jboss-jira mailing list