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

DATE + INTERVAL a SECOND is not like in MariaDB

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 5.4.3, 6.1.1
    • Icebox
    • PrimProc
    • None

    Description

      This is similar to MCOL-4420, however for VARCHAR input instead of DECIMAL input.

      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (a VARCHAR(10)) ENGINE=MyISAM;
      INSERT INTO t1 VALUES ('1.9');
      SELECT TIMESTAMP'2001-01-01 00:00:00' +  INTERVAL a SECOND FROM t1;
      

      +-----------------------------------------------------+
      | TIMESTAMP'2001-01-01 00:00:00' +  INTERVAL a SECOND |
      +-----------------------------------------------------+
      | 2001-01-01 00:00:01.900000                          |
      +-----------------------------------------------------+
      

      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (a VARCHAR(10)) ENGINE=COLUMNSTORE;
      INSERT INTO t1 VALUES ('1.9');
      SELECT TIMESTAMP'2001-01-01 00:00:00' +  INTERVAL a SECOND FROM t1;
      

      +-----------------------------------------------------+
      | TIMESTAMP'2001-01-01 00:00:00' +  INTERVAL a SECOND |
      +-----------------------------------------------------+
      | 2001-01-01 00:00:01.000000                          |
      +-----------------------------------------------------+
      

      Notice, unlike MyISAM, with ColumnStore the fractional part is set to zeros instead of '.900000'.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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