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

Regression: TIME_TO_SEC(const_expr) erroneosly returns 0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.1.1
    • Fix Version/s: 6.1.1
    • Component/s: PrimProc
    • Labels:
      None

      Description

      This problem does not exists in develop-5 and is only repeatable in 6.x.

      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (a INT)ENGINE=ColumnStore;
      INSERT INTO t1 VALUES (1);
      SELECT TIME_TO_SEC('10:50:40.9999') FROM t1;
      

      +------------------------------+
      | TIME_TO_SEC('10:50:40.9999') |
      +------------------------------+
      |                       0.0000 |
      +------------------------------+
      

      Looks wrong. It should return this result:

      SELECT TIME_TO_SEC('10:50:40.9999');
      

      +------------------------------+
      | TIME_TO_SEC('10:50:40.9999') |
      +------------------------------+
      |                   39040.9999 |
      +------------------------------+
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dleeyh Daniel Lee
              Reporter:
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration