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

Semi-join with correllated subquery case .. when ... end in the join key.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Fix
    • 1.1.6, 1.2.2
    • 23.10.0
    • PrimProc
    • None
    • 2020-3, 2020-4, 2020-5, 2020-6, 2020-7

    Description

      Error happened with set infinidb_vtable_mode 1 and 2.

      Prepare:

      set infinidb_vtable_mode= 2;
      create table cs1 (t varchar(2) , i int) engine = columnstore;
      create table cs2(t varchar(2) , i int) engine = columnstore;
      

      select count(1) from cs1 where exists (select 1 from cs2 where cs1.t = (case cs2.t when 0 then cs1.t else cs2.t end));
       
      #ERROR 1815 (HY000): Internal error: IDB-1000: 'cs1' and 'cs3' are not joined.
      

      Error message is different with a condition before the case condition in the where clause.

      select count(1) from cs1 where exists (select 1 from cs2 where cs1.t = cs2.t and cs1.t = (case cs2.t when 0 then cs1.t else cs2.t end));
       
      #ERROR 1815 (HY000): Internal error: IDB-3034: Query is not supported.  Unknown column '' in subquery.
      

      Attachments

        Issue Links

          Activity

            People

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