[ https://issues.apache.org/jira/browse/ASTERIXDB-1131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15315363#comment-15315363 ]
ASF subversion and git services commented on ASTERIXDB-1131: ------------------------------------------------------------ Commit 91a840d5bbd95a5c31b9f2b9224af53f8c585399 in incubator-asterixdb's branch refs/heads/master from [~buyingyi] [ https://git-wip-us.apache.org/repos/asf?p=incubator-asterixdb.git;h=91a840d ] ASTERIXDB-1131 and ASTERIXDB-1230: add regression tests. Change-Id: I3b520d27e2c9ea2fbbd0cf5fbbcfa6d24ed094d9 Reviewed-on: https://asterix-gerrit.ics.uci.edu/907 Reviewed-by: Jenkins <jenk...@fulliautomatix.ics.uci.edu> Tested-by: Jenkins <jenk...@fulliautomatix.ics.uci.edu> Reviewed-by: Jianfeng Jia <jianfeng....@gmail.com> Reviewed-by: Ildar Absalyamov <ildar.absalya...@gmail.com> > The function-generated Null is omitted when construct a List > ------------------------------------------------------------ > > Key: ASTERIXDB-1131 > URL: https://issues.apache.org/jira/browse/ASTERIXDB-1131 > Project: Apache AsterixDB > Issue Type: Bug > Components: Data Model > Reporter: Jianfeng Jia > Assignee: Yingyi Bu > > I hit a failed test case in which I was building a list with the elements > generated from a build-in function, as below, > for $a in [ > starts-with("xyz", null), > starts-with("xy", "x") > ] > return $a > If any of the elements is Null, it will be omitted in the returned list, e.g. > the above query returns the following result: > [ true > ] > However if I explicitly add a null in the list, all the Nulls will be > returned. > the following query: > for $a in [ > null, > starts-with("xy", null), > starts-with("xy", "x") > ] > return $a > will return the expected result: > [ null > , null > , true > ] > It applies for other similar functions which return an option value. -- This message was sent by Atlassian JIRA (v6.3.4#6332)