You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Ildar Absalyamov (JIRA)" <ji...@apache.org> on 2016/01/27 20:11:40 UTC
[jira] [Commented] (ASTERIXDB-1278) Incorrect result from avg
[ https://issues.apache.org/jira/browse/ASTERIXDB-1278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15119991#comment-15119991 ]
Ildar Absalyamov commented on ASTERIXDB-1278:
---------------------------------------------
Yeah, I've encountered this problem before and have half-way done solution for it
> Incorrect result from avg
> -------------------------
>
> Key: ASTERIXDB-1278
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-1278
> Project: Apache AsterixDB
> Issue Type: Bug
> Components: Functions - AQL
> Reporter: James Fang
>
> I was investigating aggregation functions on a list of records and found a bug when an incorrect result was returned. From what I have tested, it only affects avg and sql-avg.
> Query:
> let $w:=[{"item":1, "price":1},{"item":1, "price":2},{"item":2, "price":3}]
> return avg(for $x in $w return $x.price)
> Result:
> 4611686018427387904
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)