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

PrimProc crash and restart on running LAST_DAY function on '0000-00-00' date

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Won't Do
    • 1.2.0
    • Icebox
    • PrimProc
    • None
    • CentOS Linux 7.4

    Description

      Cerate a table with a datetime column.

      create table `date_columnstore`(
      	recDate datetime DEFAULT NULL
      )ENGINE=columnstore DEFAULT CHARSET=utf8;
      
      

      Insert a record with '0000-00-00' as date.

      insert into date_columnstore values ('0000-00-00');
      

      Run the query:

      select last_day(CONCAT(year(recdate),'-0',(month(recdate),'-01'))) from date_columnstore;
      

      This causes PrimProc to restart.

      The same query in InnoDB or on dual returns null.

      The current workaround for us is to replace '0000-00-00' with null.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nisjoshi29 nishant
            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.