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

SYSDATE() row-by-row operation returns ERROR 1292: Incorrect datetime value

    XMLWordPrintable

Details

    • 2026-9, 2026-10

    Description

      Customer reported that SYSDATE() row-by-row operation returns

       ERROR 1292: Incorrect datetime value in Columnstore 25.10.4. 

      Same query (that evaluating window functions over cross-engine joins and ColumnStore materializes an internal streaming temporary table) works fine in CS 23.10.4.
      Please see repro files.

      If I used
      a/

       SET SESSION columnstore_select_handler=OFF; 

      b/
      or cast(), e.g.

      INSERT INTO TempSpotNbrAnalysis
      SELECT TempSpotSectors.RequestID,
            6,
            CAST(SYSDATE() AS DATETIME) 

      then query works. May above can serve as temp workaround, but (a) likely reduce performance, while (b) requires to change previously working SQL.

      Attachments

        1. repro.txt
          6 kB
        2. repro.PNG
          repro.PNG
          114 kB

        Activity

          People

            alexey.antipovsky Aleksei Antipovskii
            YK Yakov Kushnirsky
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 3d
                3d
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 2d Time Not Required
                2d

                Git Integration

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