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

Expression in DEFAULT clause won't work

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 23.10.0
    • None
    • None

    Description

      > CREATE TABLE number (
          ->     n INT,
          ->     n2 BIGINT DEFAULT (n * n)
          -> ) ENGINE ColumnStore;
      ERROR 1178 (42000): The storage engine for the table doesn't support The syntax or the data type(s) is not supported by Columnstore. Please check the Columnstore syntax guide for supported syntax or data types.
      

      The above failt because the DEFAULT clause is not a constant value. This is supported by all engines, so my primary hope is that you can make it work with ColumnStore easily.

      But if this isn't possible, I ask you to produce a more specific error message. That error can have too many causes, so it's not helpful.

      Attachments

        Activity

          People

            Unassigned Unassigned
            f_razzoli Federico Razzoli
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.