Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-15093

MyRocks: add support for virtual columns

    XMLWordPrintable

Details

    Description

      MyRocks-in-MariaDB doesn't support virtual columns:

      create table sbtest1 (pad varchar(60)) engine=rocksdb;
      

      MariaDB [j2]> ALTER TABLE sbtest1 ADD reverse_pad char(60) GENERATED ALWAYS AS (reverse(pad)) VIRTUAL;
      ERROR 1910 (HY000): ROCKSDB storage engine does not support generated columns
      

      Btw, Percona Server doesn't suppor them either:

      MySQL [test]> ALTER TABLE sbtest1 ADD reverse_pad char(60) GENERATED ALWAYS AS (reverse(pad)) VIRTUAL;
      ERROR 3106 (HY000): 'Specified storage engine' is not supported for generated columns.
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            psergei Sergei Petrunia
            Votes:
            1 Vote for this issue
            Watchers:
            5 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.