IDB-1003: Circular joins are not supported.
Bug #908934 reported by
Shining
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
InfiniDB Community |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
OS: CentOS 5.7 x86_64
Infinidb: 2.2.4
select n_name,
IDB-1003: Circular joins are not supported.
Is there a way to rewrite above SQL?
Changed in infinidb: | |
status: | New → Fix Released |
To post a comment you must log in.
mysql> 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 + 0 AND S_NATIONKEY = N_NATIONKEY AND N_REGIONKEY = R_REGIONKEY AND R_NAME = 'AMERICA' AND O_ORDERDATE >= date '1997-01-01' AND O_O ------- --+---- ------- ----+ ------- --+---- ------- ----+ ------- --+---- ------- ----+
RDERDATE < date '1997-01-01' + interval '1' year GROUP BY N_NAME ORDER BY REVENUE DESC;
+------
| N_NAME | REVENUE |
+------
| CANADA | 57165000.3824 |
| ARGENTINA | 55213294.4745 |
| UNITED STATES | 53893948.9531 |
| BRAZIL | 53012529.2573 |
| PERU | 51767803.7854 |
+------
5 rows in set (0.68 sec)