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

support queries with circular INNER joins

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 1.0.12
    • 6.1.1
    • ExeMgr
    • None
    • 2018-10, 2018-11, 2018-12, 2018-13, 2018-14, 2018-15, 2018-16, 2021-5, 2021-6, 2021-7, 2021-8, 2021-9

    Description

      Certain types of query will result in the following error:
      ERROR 1815 (HY000) at line 6: Internal error: IDB-1003: Circular joins are not supported.

      This happens if a given table is joined more than once. This is a common pattern and can be generated by bi tools including microstrategy.

      dbt3 query 5 is one such example that should be supported:

      execute the query #5
       
      select
      n_name,
      sum(l_extendedprice * (1 - l_discount)) as revenue
      from
      customer,
      orders,
      lineitem,
      supplier,
      nation,
      region
      where
      c_custkey = o_custkey
      and l_orderkey = o_orderkey
      and l_suppkey = s_suppkey
      and c_nationkey = s_nationkey
      and s_nationkey = n_nationkey
      and n_regionkey = r_regionkey
      and r_name = 'AMERICA'
      and o_orderdate >= '1993-01-01'
      and o_orderdate < date_add( '1993-01-01' , interval 1 year)
      group by
      n_name
      order by
      revenue desc;
      

      Attachments

        Issue Links

          Activity

            People

              dleeyh Daniel Lee (Inactive)
              dthompson David Thompson (Inactive)
              Votes:
              8 Vote for this issue
              Watchers:
              12 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.