[ 
https://issues.apache.org/jira/browse/ASTERIXDB-2843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dmitry Lychagin updated ASTERIXDB-2843:
---------------------------------------
    Summary: Incorrect result with array_sum()  (was: Incorrect result)

> Incorrect result with array_sum()
> ---------------------------------
>
>                 Key: ASTERIXDB-2843
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2843
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: COMP - Compiler
>    Affects Versions: 0.9.6
>            Reporter: Dmitry Lychagin
>            Assignee: Dmitry Lychagin
>            Priority: Major
>             Fix For: 0.9.7
>
>
> The following query returns incorrect result:
> {noformat}
> select array_sum(array_reverse(lst))
> let lst = (
>   from range(1, 3) r
>   select value int32(to_string(r))
> )
> {noformat}
> Returns 
> { "$1": 0 }
> while it should return
> { "$1": 6 } 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to