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

Regression: TIME_TO_SEC(const_expr) erroneosly returns 0

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 6.1.1
    • 6.1.1
    • PrimProc
    • 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

              dleeyh Daniel Lee (Inactive)
              bar Alexander Barkov
              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.