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

Partitioned versioned tables do not accept Trx IDs

Details

    Description

      Quoting the previous issue, as it still produces the same error:

      Creating a system-versioned table with row version by trx id works as described in the KB. However when I add partitions to separate current and historic data, I get an error.

      The CREATE TABLE statement:

      CREATE TABLE sbtest1 (
      id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, 
      k INTEGER UNSIGNED DEFAULT '0' NOT NULL,
      c CHAR(120) DEFAULT '' NOT NULL,
      pad CHAR(60) DEFAULT '' NOT NULL,
      start_trxid BIGINT UNSIGNED GENERATED ALWAYS AS ROW START,
      end_trxid BIGINT UNSIGNED GENERATED ALWAYS AS ROW END,
      PERIOD FOR SYSTEM_TIME(start_trxid, end_trxid),
      PRIMARY KEY (id),
      INDEX k_ (k)
      ) ENGINE=InnoDB WITH SYSTEM VERSIONING PARTITION BY SYSTEM_TIME (
        PARTITION p_hist HISTORY,
        PARTITION p_cur CURRENT
      )
      

      and the error message:

      ERROR 4110 (HY000): `start_trxid` must be of type TIMESTAMP(6) 
      for system-versioned table `sbtest1`
      

      If partitioning isn't supposed to work with trx ids, this should be documented.

      Attachments

        Issue Links

          Activity

            DanPoult Daniel Poulton created issue -
            DanPoult Daniel Poulton made changes -
            Field Original Value New Value

            As the issue MDEV-15951 which you linked says, it's not supported. Indeed, it must be documented.

            elenst Elena Stepanova added a comment - As the issue MDEV-15951 which you linked says, it's not supported. Indeed, it must be documented.
            elenst Elena Stepanova made changes -
            Component/s Documentation [ 10903 ]
            Fix Version/s N/A [ 14700 ]
            Assignee Jacob Moorman [ jacob.moorman ]
            KennethDyer Kenneth Dyer (Inactive) made changes -
            Assignee Jacob Moorman [ jacob.moorman ] Kenneth Dyer [ kennethdyer ]

            We've spend weeks investigating what was wrong with our new system settings, and now see this...

            It should really be documented.

            bluet BlueT - Matthew Lien added a comment - We've spend weeks investigating what was wrong with our new system settings, and now see this... It should really be documented.
            alice Alice Sherepa made changes -

            If this just documented and not fixed then the selects, maintenance and cleanup on the huge plain tables with TrxID history is unefficient and very heavy task.
            Meaning the transaction precise history is not really usable feature for production environment.

            ykantoni YURII KANTONISTOV added a comment - If this just documented and not fixed then the selects, maintenance and cleanup on the huge plain tables with TrxID history is unefficient and very heavy task. Meaning the transaction precise history is not really usable feature for production environment.
            serg Sergei Golubchik made changes -

            jacob.moorman from our discussion, I decided to reassign Kenneth's ticket to you?

            julien.fritsch Julien Fritsch added a comment - jacob.moorman from our discussion, I decided to reassign Kenneth's ticket to you?
            julien.fritsch Julien Fritsch made changes -
            Assignee Kenneth Dyer [ kennethdyer ] Jacob Moorman [ jacob.moorman ]
            julien.fritsch Julien Fritsch made changes -
            Epic Link MENT-51 [ 75581 ]
            julien.fritsch Julien Fritsch made changes -
            julien.fritsch Julien Fritsch made changes -
            Epic Link MENT-51 [ 75581 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 98758 ] MariaDB v4 [ 141461 ]
            julien.fritsch Julien Fritsch made changes -
            Assignee Jacob Moorman [ jacob.moorman ] Joe Cotellese [ JIRAUSER54006 ]
            julien.fritsch Julien Fritsch made changes -
            Assignee Joe Cotellese [ JIRAUSER54006 ] Daniel Bartholomew [ dbart ]

            People

              dbart Daniel Bartholomew
              DanPoult Daniel Poulton
              Votes:
              1 Vote for this issue
              Watchers:
              9 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.