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

Crash after pushing down condition with DEFAULT to derived table

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 10.5
    • 10.5.27
    • Optimizer
    • None

    Description

      CREATE TABLE t1 (c1 INT);
      INSERT INTO t1 VALUES (1);
      CREATE TABLE t2 (c2 INT);
      INSERT INTO t2 VALUES (1);
       
      SET optimizer_switch='derived_merge=off';
       
      EXPLAIN EXTENDED
           SELECT dt1_c1 FROM 
             (SELECT c1 AS dt1_c1 FROM t1) AS dt1
             JOIN 
             (SELECT 1 AS dt2_c2 FROM t2) AS dt2
                ON DEFAULT(dt2_c2) BETWEEN dt1_c1 AND dt1_c1;
      

      Attachments

        Issue Links

          Activity

            People

              oleg.smirnov Oleg Smirnov
              oleg.smirnov Oleg Smirnov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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