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

Partition HANDLER READ NEXT returns empty results when moving to the next partition

    XMLWordPrintable

Details

    • Bug
    • Status: Stalled (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.11
    • 11.4
    • Partitioning
    • None
    • Unexpected results

    Description

      CREATE TABLE t1 (a INT, KEY(a)) ENGINE=InnoDB
      PARTITION BY RANGE(a) (PARTITION p0 VALUES LESS THAN (10),
                             PARTITION p1 VALUES LESS THAN (20));
      INSERT INTO t1 VALUES (5),(8),(15);
      HANDLER t1 OPEN;
      --echo # no row: KEY_NOT_FOUND, p0 cursor positioned at 8
      HANDLER t1 READ a = (7);
      --echo # expect 8, as without partitioning
      HANDLER t1 READ a NEXT;
      --echo # expect 15, as without partitioning, but output nothing
      HANDLER t1 READ a NEXT;
      HANDLER t1 CLOSE;
      DROP TABLE t1;
      

      Attachments

        Issue Links

          Activity

            People

              ycp Yuchen Pei
              ycp Yuchen Pei
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 1.65d
                  1.65d
                  Remaining:
                  Time Spent - 2.65h Remaining Estimate - 1d 2.55h
                  1d 2.55h
                  Logged:
                  Time Spent - 2.65h Remaining Estimate - 1d 2.55h
                  2.65h

                  Git Integration

                    Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.