[ https://issues.apache.org/jira/browse/ASTERIXDB-1317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15299093#comment-15299093 ]
ASF subversion and git services commented on ASTERIXDB-1317: ------------------------------------------------------------ Commit 35390c82bcec95ed574001ce82f5ac8f47405092 in incubator-asterixdb's branch refs/heads/master from [~buyingyi] [ https://git-wip-us.apache.org/repos/asf?p=incubator-asterixdb.git;h=35390c8 ] ASTERIXDB-1190, ASTERIXDB-1216, ASTERIXDB-1317: fixes and regression tests. Change-Id: If21ad96b1bff59fa2da601b920d4a61900cad81f Reviewed-on: https://asterix-gerrit.ics.uci.edu/885 Reviewed-by: Jenkins <jenk...@fulliautomatix.ics.uci.edu> Tested-by: Jenkins <jenk...@fulliautomatix.ics.uci.edu> Reviewed-by: Till Westmann <ti...@apache.org> > avg() does not work on open lists > --------------------------------- > > Key: ASTERIXDB-1317 > URL: https://issues.apache.org/jira/browse/ASTERIXDB-1317 > Project: Apache AsterixDB > Issue Type: Bug > Components: AsterixDB, Functions - AQL > Reporter: Ian Maxon > Assignee: Yingyi Bu > > This query: > > for $i in dataset HRM_binned_clipped return { > "row_id": $i.row_id, > "sid": $i.sid, > "gdate": $i.gdate, > "gday": $i.gday, > "timebin": $i.timebin, > "stdv_RR_clipped": avg($i.RR_clipped) > } > Where the dataset is an open type, will fail when trying to compute the > average of stdv_RR_clipped, with this message: > Type of argument in function-call: asterix:avg, Args:[function-call: > asterix:field-access-by-name, Args:[%0->$$0, AString: {RR_clipped}]] should > be a collection type instead of ANY [AlgebricksException] -- This message was sent by Atlassian JIRA (v6.3.4#6332)