[jira] Created: (ESPER-407) last() aggregator (undocumented) incorrectly mapped to count()

View: New views
3 Messages — Rating Filter:   Alert me  

[jira] Created: (ESPER-407) last() aggregator (undocumented) incorrectly mapped to count()

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

last() aggregator (undocumented) incorrectly mapped to count()
--------------------------------------------------------------

                 Key: ESPER-407
                 URL: http://jira.codehaus.org/browse/ESPER-407
             Project: Esper
          Issue Type: Bug
    Affects Versions: 3.2
            Reporter: Mitch
            Priority: Minor


The last() aggregator appears to compile OK using createEPL() but is reported to listeners incorrectly as 'count()'.

Doing a prepared query produces an exception:

EPPreparedStatement eps = admin.prepareEPL("select last(id) from TEST");

java.lang.IllegalArgumentException: Could not map expression node of type ExprLastNode
        at com.espertech.esper.epl.spec.StatementSpecMapper.unmapExpressionFlat(StatementSpecMapper.java:1452)
        at com.espertech.esper.epl.spec.StatementSpecMapper.unmapExpressionDeep(StatementSpecMapper.java:791)
        at com.espertech.esper.epl.spec.StatementSpecMapper.unmapSelect(StatementSpecMapper.java:651)
        at com.espertech.esper.epl.spec.StatementSpecMapper.unmap(StatementSpecMapper.java:94)
        at com.espertech.esper.core.EPAdministratorImpl.prepareEPL(EPAdministratorImpl.java:190)



--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Updated: (ESPER-407) last() aggregator (undocumented) incorrectly mapped to count()

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/ESPER-407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Bernhardt updated ESPER-407:
-----------------------------------

    Fix Version/s: 3.3

Assigned to 3.3

> last() aggregator (undocumented) incorrectly mapped to count()
> --------------------------------------------------------------
>
>                 Key: ESPER-407
>                 URL: http://jira.codehaus.org/browse/ESPER-407
>             Project: Esper
>          Issue Type: Bug
>    Affects Versions: 3.2
>            Reporter: Mitch
>            Priority: Minor
>             Fix For: 3.3
>
>
> The last() aggregator appears to compile OK using createEPL() but is reported to listeners incorrectly as 'count()'.
> Doing a prepared query produces an exception:
> EPPreparedStatement eps = admin.prepareEPL("select last(id) from TEST");
> java.lang.IllegalArgumentException: Could not map expression node of type ExprLastNode
> at com.espertech.esper.epl.spec.StatementSpecMapper.unmapExpressionFlat(StatementSpecMapper.java:1452)
> at com.espertech.esper.epl.spec.StatementSpecMapper.unmapExpressionDeep(StatementSpecMapper.java:791)
> at com.espertech.esper.epl.spec.StatementSpecMapper.unmapSelect(StatementSpecMapper.java:651)
> at com.espertech.esper.epl.spec.StatementSpecMapper.unmap(StatementSpecMapper.java:94)
> at com.espertech.esper.core.EPAdministratorImpl.prepareEPL(EPAdministratorImpl.java:190)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Closed: (ESPER-407) last() aggregator (undocumented) incorrectly mapped to count()

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/ESPER-407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Bernhardt closed ESPER-407.
----------------------------------

    Resolution: Fixed

Release 3.3

> last() aggregator (undocumented) incorrectly mapped to count()
> --------------------------------------------------------------
>
>                 Key: ESPER-407
>                 URL: http://jira.codehaus.org/browse/ESPER-407
>             Project: Esper
>          Issue Type: Bug
>    Affects Versions: 3.2
>            Reporter: Mitch
>            Priority: Minor
>             Fix For: 3.3
>
>
> The last() aggregator appears to compile OK using createEPL() but is reported to listeners incorrectly as 'count()'.
> Doing a prepared query produces an exception:
> EPPreparedStatement eps = admin.prepareEPL("select last(id) from TEST");
> java.lang.IllegalArgumentException: Could not map expression node of type ExprLastNode
> at com.espertech.esper.epl.spec.StatementSpecMapper.unmapExpressionFlat(StatementSpecMapper.java:1452)
> at com.espertech.esper.epl.spec.StatementSpecMapper.unmapExpressionDeep(StatementSpecMapper.java:791)
> at com.espertech.esper.epl.spec.StatementSpecMapper.unmapSelect(StatementSpecMapper.java:651)
> at com.espertech.esper.epl.spec.StatementSpecMapper.unmap(StatementSpecMapper.java:94)
> at com.espertech.esper.core.EPAdministratorImpl.prepareEPL(EPAdministratorImpl.java:190)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email