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

Add TIME_ROUND_FRACTIONAL support in ColumnStore

    XMLWordPrintable

Details

    Description

      ColumnStore currently ignores sql_mode=TIME_ROUND_FRACTIONAL:

      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (a DECIMAL(10,7)) ENGINE=ColumnStore;
      INSERT INTO t1 VALUES (1.0000006);
      SET sql_mode=TIME_ROUND_FRACTIONAL;
      SELECT CAST(a AS TIME(6)) FROM t1;
      

      +--------------------+
      | CAST(a AS TIME(6)) |
      +--------------------+
      | 00:00:01.000000    |
      +--------------------+
      

      The expected result should be:

      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (a DECIMAL(10,7)) ENGINE=MyISAM;
      INSERT INTO t1 VALUES (1.0000006);
      SET sql_mode=TIME_ROUND_FRACTIONAL;
      SELECT CAST(a AS TIME(6)) FROM t1;
      

      +--------------------+
      | CAST(a AS TIME(6)) |
      +--------------------+
      | 00:00:01.000001    |
      +--------------------+
      

      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.