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

The query result is incorrect when querying multiple tables

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.5.16, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11, 11.0
    • 10.4, 10.5, 10.6, 10.11
    • None
    • None
    • centos 7.6

    Description

      Step 1: Create a table and insert data
      1.Create database sqltester
      create database sqltester
      2.Execute the attachment file to create a table and insert data
      source sqltester_for_parallel_with_index.2k_dp_210col.index_desc.sql
      3.Execute the attachment file to create a table and insert data
      source sqltester_for_parallel_with_index_view_part_tab.sql
      Step 2: Execute the query

      select
        ref_0.tinytext_col as c0
      from 
        sqltester.alltypecol_t1 as ref_0
      where (EXISTS (
          select          
                count(
                  18) over (partition by ref_1.c0 order by ref_0.longtext_col) as c2
            from 
              sqltester_1.tx_cmplx_005 as ref_1
            where (EXISTS (
                select  
                    ref_0.mediumint_col as c2
                  from 
                    sqltester.tx_cmplx_004 as ref_2
                        inner join sqltester.t0_sub_1 as ref_3
                        on (false)
                      inner join sqltester_1.t12 as ref_5
                      on (false)
                  where (false)
                  )) 
              and (EXISTS (
                    select  
                        ref_0.double_col as c1
                      from 
                        sqltester.t5 as ref_8
                      where false
                      ))
            ))
      group by 1
      order by 1 desc;
      

      The expected result is empty, but the actual result is not empty

      Attachments

        Activity

          People

            psergei Sergei Petrunia
            guozhentang guozhentang
            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.