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

Extract quarter is broken

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 23.02.4
    • None
    • None

    Description

      MariaDB [mytest]> create table t1 (c1 datetime) engine=columnstore;

      Query OK, 0 rows affected (0.128 sec)

      MariaDB [mytest]> insert into t1 values ('2000-01-15 17:00:00.000000'),('2000-04-16 08:08:08.000000'),('2000-07-15 08:08:08.000000'),('2004-11-13 17:00:00.000000');

      Query OK, 4 rows affected (0.191 sec)

      Records: 4 Duplicates: 0 Warnings: 0

      MariaDB [mytest]> select c1, extract(quarter from c1) from t1;

      ---------------------------------------------+

      c1 extract(quarter from c1)

      ---------------------------------------------+

      2000-01-15 17:00:00 1
      2000-04-16 08:08:08 2
      2000-07-15 08:08:08 2
      2004-11-13 17:00:00 3

      ---------------------------------------------+

      4 rows in set (0.090 sec)

      Attachments

        Issue Links

          Activity

            People

              leonid.fedorov Leonid Fedorov
              leonid.fedorov Leonid Fedorov
              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.