Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-350

can't select date value of 0000-00-00

    XMLWordPrintable

    Details

    • Sprint:
      2016-20, 2016-21, 2016-22

      Description

      found this while reviewing justin's testsuite result bugs and it looks like we missed a verification in MCOL-171. It looks like datetime correctly supports where clauses on 0000-00-00 but not date values.

      MariaDB [test]> create table t2(d date, dt datetime) engine=columnstore;
      Query OK, 0 rows affected (0.54 sec)
       
      MariaDB [test]> insert into t2 values ('0000-00-00','0000-00-00');
      Query OK, 1 row affected (0.17 sec)
       
      MariaDB [test]>  select * from t2 where dt='0000-00-00';
      +------------+---------------------+
      | d          | dt                  |
      +------------+---------------------+
      | 0000-00-00 | 0000-00-00 00:00:00 |
      +------------+---------------------+
      1 row in set (0.04 sec)
       
      MariaDB [test]>  select * from t2 where d='0000-00-00';
      Empty set (0.01 sec)
      

      the last query should also return a result. In justin's test suite, it means that the data setup code doesn't correctly set the d column to null causing some of the failures.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dleeyh Daniel Lee
              Reporter:
              dthompson David Thompson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: