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

Incorrect Join Execution When Controlling BNLH and BKAH Join Algorithms

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.8.2, 10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8
    • 10.4, 10.5, 10.6
    • Optimizer
    • None

    Description

      CREATE TABLE `t1` (
      `c0` varchar(100) NOT NULL,
      KEY `ic1` (`c0`)
      );
      INSERT INTO `t1` VALUES (' '), ('-1555786384'), ('0OqU'), ('<kWmNizZ');

      CREATE TABLE `t2` (
      `c0` varchar(100) NOT NULL
      );
      INSERT INTO `t2` VALUES ('Yc'), ('L*1'), ('-239020720'), (''), ('D47');

      mysql> SET SESSION join_cache_level = 4;
      Query OK, 0 rows affected (0.00 sec)

      mysql> SELECT t2.c0 FROM t2 RIGHT OUTER JOIN t1 ON t1.c0 = t2.c0;
      ------

      c0

      ------

      NULL
      NULL
      NULL
      NULL

      ------
      4 rows in set (0.01 sec)

      mysql> SET optimizer_switch='join_cache_hashed=off';
      Query OK, 0 rows affected (0.00 sec)

      mysql> SELECT t2.c0 FROM t2 RIGHT OUTER JOIN t1 ON t1.c0 = t2.c0;
      ------

      c0

      ------

       
      NULL
      NULL
      NULL

      ------
      4 rows in set (0.00 sec)

      Attachments

        Activity

          People

            psergei Sergei Petrunia
            sugar Xiu Tang
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.