Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-6148

Semi-joins and correlated subqueries in filters are not processed by QA

    XMLWordPrintable

Details

    • 2025-7, 2025-8

    Description

      Consider example:

      set columnstore_unstable_optimizer=on;
      set @@optimizer_switch='derived_merge=off';
      select calsettrace(1);
      select count(*) from lineitem l where exists (select * from lineitem la where 
      l.l_orderkey=la.l_orderkey);
      

      Here is the actual error that tells either ExistsFilter CSEP is not considered by RBO or JOIN filter predicate is not updated by parallel CSE apply routine.

      MariaDB [test]> select count(*) from lineitem l where exists (select * from lineitem la where 
      l.l_orderkey=la.l_orderkey);
      ERROR 1815 (HY000): Internal error: MCS-1000: 'sub-query' and 'l, sub-query' are not joined.
      

      Attachments

        Issue Links

          Activity

            People

              drrtuy Roman
              drrtuy Roman
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.