Details
-
Bug
-
Status: Closed (View Workflow)
-
Blocker
-
Resolution: Fixed
-
1.0.12
-
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
- blocks
-
MCOL-4530 TPC-H query 19: - semi joins / 'lineitem' and 'part' are not joined.
- Closed
- includes
-
MCOL-4513 Investigate the original reasons why ColumnStore is flagging "circular joins" as an error, and provide guidance as to how to stop it from happening.
- Closed
- is blocked by
-
MCOL-4713 Optimizer statistics
- Closed
- is duplicated by
-
MCOL-1420 Loos spanning tree check when ON clause contains references to 2 of 3 joined tables.
- Closed
- relates to
-
MCOL-4902 Views disable certain outer join optimization
- Closed
- split to
-
MCOL-4699 support queries with circular OUTER joins
- Closed