Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-4942

incorrect result - case when (not null is null) then true else false end

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.9.0
    • 1.13.0
    • Execution - Flow
    • None

    Description

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

      Postgres 9.3 results

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

      Calcite release 1.8.0 too returns false

      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)
      

      Drill 1.9.0 git commit ID: 4edabe7a, returns true

      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)
      

      Attachments

        Issue Links

          Activity

            People

              sharnyk Serhii Harnyk
              khfaraaz Khurram Faraaz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: