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

Error on row deletion (partitioning by virtual column): Found a row in wrong partition

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.1.12, 5.5(EOL), 10.0(EOL), 10.1(EOL)
    • 10.1(EOL)
    • Partitioning
    • None
    • 3.2.0-4-amd64 #1 SMP Debian 3.2.35-2 x86_64 GNU/Linux

    Description

      Scenario:

      1. CREATE TABLE `t4` (
          `hour` tinyint(3) unsigned AS (HOUR(period)) VIRTUAL,
          `period` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
        ) ENGINE=MyISAM DEFAULT CHARSET=utf8 PARTITION BY HASH (`hour`) PARTITIONS 24;
         
        insert into t4 select null, NOW() + INTERVAL RAND()*100 HOUR from seq_1_to_10000;
        

      2. Repeat the following query:

        delete from t4 limit 1000;
        

        Actual result: Error: Found a row in wrong partition.

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              Sergey.Antonyuk Sergey Antonyuk
              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.