asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yingyi Bu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ASTERIXDB-1558) Possible minor glitch in UNKNOWN value related predicates/handling
Date Sat, 20 Aug 2016 00:30:20 GMT

    [ https://issues.apache.org/jira/browse/ASTERIXDB-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15429109#comment-15429109
] 

Yingyi Bu commented on ASTERIXDB-1558:
--------------------------------------

Not yet. This query still returns wrong result:

[ 'a', 'b', NULL,'c' ][5] IS NULL 

It returns false but should return NULL (the serialization of a MISSING).

> Possible minor glitch in UNKNOWN value related predicates/handling
> ------------------------------------------------------------------
>
>                 Key: ASTERIXDB-1558
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1558
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: AsterixDB, Translator - AQL
>            Reporter: Michael J. Carey
>            Assignee: Yingyi Bu
>            Priority: Minor
>              Labels: soon
>
> The following evaluates to TRUE:
>     {
>       'project': 'AsterixDB',
>       'members': [ 'vinayakb', 'dtabass', 'chenli', 'tsotras' ]
>     }.member IS MISSING;
> As, desirably, does:
>     {
>       'project': 'AsterixDB',
>       'members': [ 'vinayakb', 'dtabass', 'chenli', 'tsotras' ]
>     }.member IS UNKNOWN;
> But the following evaluates to NULL (and it seems to me that FALSE would be the proper
expected result):
>     {
>       'project': 'AsterixDB',
>       'members': [ 'vinayakb', 'dtabass', 'chenli', 'tsotras' ]
>     }.member IS NULL;
> Of course, I could be MISSING something here, as a SQL++ newbie....



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message