You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Khurram Faraaz (JIRA)" <ji...@apache.org> on 2016/10/12 12:07:20 UTC

[jira] [Created] (DRILL-4942) incorrect result - case when (not null is null) then true else false end

Khurram Faraaz created DRILL-4942:
-------------------------------------

             Summary: incorrect result  - case when (not null is null) then true else false end
                 Key: DRILL-4942
                 URL: https://issues.apache.org/jira/browse/DRILL-4942
             Project: Apache Drill
          Issue Type: Bug
          Components: Execution - Flow
    Affects Versions: 1.9.0
            Reporter: Khurram Faraaz


Drill's result is different from that of Calcite and Postgres result.

Postgres 9.3 results
{noformat}
postgres=# select (case when (not null is null) then true else false end) from (values(1)) foo;
 case
------
 f
(1 row)
{noformat}

Calcite release 1.8.0 too returns false
{noformat}
0: jdbc:calcite:model=target/test-classes/mod> select (case when (not null is null) then true else false end) from (values(1));
+--------+
| EXPR$0 |
+--------+
| false  |
+--------+
1 row selected (1.271 seconds)
{noformat}

Drill 1.9.0 git commit ID: 4edabe7a, returns true
{noformat}
0: jdbc:drill:schema=dfs.tmp> select (case when (not null is null) then true else false end) from (values(1));
+---------+
| EXPR$0  |
+---------+
| true    |
+---------+
1 row selected (0.096 seconds)
{noformat}



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