Dmitry Lychagin created ASTERIXDB-3015:
------------------------------------------
Summary: avg() returns incorrect result if first value is not a
number
Key: ASTERIXDB-3015
URL: https://issues.apache.org/jira/browse/ASTERIXDB-3015
Project: Apache AsterixDB
Issue Type: Bug
Components: FUN - Functions
Affects Versions: 0.9.6
Reporter: Dmitry Lychagin
Assignee: Dmitry Lychagin
Fix For: 0.9.8
avg() function returns incorrect result if it receives a first value of a
non-numeric type.
{noformat}
select value avg(x) from ["a", 1, 2, 3] x;
{noformat}
returns NULL, while it should return 2.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)