Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-392 TIME datatype is not supported
  3. MCOL-1428

SUBTIME() as a WHERE condition on TIME data type caused primProc to hang

    XMLWordPrintable

Details

    • Sub-Task
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • None
    • 1.2.0
    • ExeMgr
    • None
    • 2018-08, 2018-09, 2018-10, 2018-11, 2018-12, 2018-13, 2018-14, 2018-15, 2018-16, 2018-17, 2018-18

    Description

      MariaDB [mytest]> create table t1 (c1 time) engine=columnstore;
      Query OK, 0 rows affected (2.52 sec)

      MariaDB [mytest]> insert into t1 values ('13:00:00');
      Query OK, 1 row affected (0.36 sec)

      MariaDB [mytest]>
      MariaDB [mytest]>
      MariaDB [mytest]> insert into t1 values ('13:00:00');
      Query OK, 1 row affected (0.04 sec)

      MariaDB [mytest]> select * from t1;
      ----------

      c1

      ----------

      13:00:00
      13:00:00

      ----------
      2 rows in set (0.11 sec)

      MariaDB [mytest]> drop table t1;
      Query OK, 0 rows affected (0.18 sec)

      MariaDB [mytest]> create table t1 (c1 time) engine=columnstore;
      Query OK, 0 rows affected (0.21 sec)

      MariaDB [mytest]> insert into t1 values ('13:00:00');
      Query OK, 1 row affected (0.10 sec)

      MariaDB [mytest]> select * from t1;
      ----------

      c1

      ----------

      13:00:00

      ----------
      1 row in set (0.03 sec)

      MariaDB [mytest]> select cidx, CTIME,SUBTIME(CTIME,'1 01:24:59') from datatypetestm where ADDTIME(CTIME,'1 01:24:59') =0;
      Empty set (0.06 sec)

      MariaDB [mytest]> select cidx, CTIME,SUBTIME(CTIME,'1 01:24:59') from datatypetestm where SUBTIME(CTIME,'1 01:24:59') =0;

      It hung here

      The same query with "<0" or ">0" also hung.

      Attachments

        Activity

          People

            dleeyh Daniel Lee (Inactive)
            dleeyh Daniel Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.