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

Inplace algorithm doesn't support changing virtual column datatype

Details

    Description

      Inplace algorithm doesn't support change of virtual column data type.

      --source include/have_innodb.inc
      create table t1(f1 int not null, f2 char(100) as ("test") virtual)engine=innodb;
      alter table t1 modify column f2 varchar(200) as ("db") virtual, algorithm=inplace;
      drop table t1;
      

      Above alter fails with the following error:

      failed: 1845: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY 

      There is no reason mentioned why inplace fails. Above alter doesn't affect the data or rebuild
      the table. It should be part of INNOBASE_INPLACE_IGNORE flag. I think inplace should support this operation.

      Attachments

        Issue Links

          Activity

            thiru Thirunarayanan Balathandayuthapani created issue -
            thiru Thirunarayanan Balathandayuthapani made changes -
            Field Original Value New Value
            Fix Version/s 10.1 [ 16100 ]
            Fix Version/s 10.2 [ 14601 ]
            Affects Version/s 10.1 [ 16100 ]
            Affects Version/s 10.2 [ 14601 ]
            thiru Thirunarayanan Balathandayuthapani made changes -
            Assignee Thirunarayanan B [ thiru ]
            thiru Thirunarayanan Balathandayuthapani made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            thiru Thirunarayanan Balathandayuthapani made changes -
            Status In Progress [ 3 ] Stalled [ 10000 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 85846 ] MariaDB v4 [ 143534 ]

            People

              thiru Thirunarayanan Balathandayuthapani
              thiru Thirunarayanan Balathandayuthapani
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.