<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Drill query  cannot be planned possibly due to either a cartesian join or an inequality join in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Drill-query-cannot-be-planned-possibly-due-to-either-a/m-p/178377#M61402</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15991/mmlr-90.html" nodeid="15991"&gt;@mÁRIO Rodrigues&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;This seems to be known issue and Jira &lt;A href="https://issues.apache.org/jira/browse/DRILL-5214"&gt;DRILL-5214&lt;/A&gt; has been raised for the same.&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2017 14:28:32 GMT</pubDate>
    <dc:creator>ssubhas</dc:creator>
    <dc:date>2017-05-31T14:28:32Z</dc:date>
    <item>
      <title>Drill query  cannot be planned possibly due to either a cartesian join or an inequality join</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Drill-query-cannot-be-planned-possibly-due-to-either-a/m-p/178376#M61401</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Im performing a tpch benchmark using drill, the queries are stored in sql file and are executed over a hive schema (with tables stored as orc). When i try to run query 22 (ill put the code next), Drill gives an error of "Error: UNSUPPORTED_OPERATION ERROR: This query cannot be planned possibly due to either a cartesian join or an inequality join". The same happens in query 22 of tpch, can some tell me how to fix the query?&lt;/P&gt;&lt;P&gt;Query code:&lt;/P&gt;&lt;P&gt;"SELECT  S_NAME, COUNT(*) AS NUMWAIT
FROM SUPPLIER, LINEITEM L1, ORDERS, NATION WHERE S_SUPPKEY = L1.L_SUPPKEY AND
O_ORDERKEY = L1.L_ORDERKEY AND O_ORDERSTATUS = 'F' AND L1.L_RECEIPTDATE&amp;gt; L1.L_COMMITDATE
AND EXISTS (SELECT * FROM LINEITEM L2 WHERE L2.L_ORDERKEY = L1.L_ORDERKEY
AND L2.L_SUPPKEY &amp;lt;&amp;gt; L1.L_SUPPKEY) AND
NOT EXISTS (SELECT * FROM LINEITEM L3 WHERE L3.L_ORDERKEY = L1.L_ORDERKEY AND
L3.L_SUPPKEY &amp;lt;&amp;gt; L1.L_SUPPKEY AND L3.L_RECEIPTDATE &amp;gt; L3.L_COMMITDATE) AND
S_NATIONKEY = N_NATIONKEY AND N_NAME = 'SAUDI ARABIA'
GROUP BY S_NAME
ORDER BY NUMWAIT DESC, S_NAME
LIMIT 100;"&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:37:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Drill-query-cannot-be-planned-possibly-due-to-either-a/m-p/178376#M61401</guid>
      <dc:creator>mmlr_90</dc:creator>
      <dc:date>2022-09-16T11:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Drill query  cannot be planned possibly due to either a cartesian join or an inequality join</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Drill-query-cannot-be-planned-possibly-due-to-either-a/m-p/178377#M61402</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15991/mmlr-90.html" nodeid="15991"&gt;@mÁRIO Rodrigues&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;This seems to be known issue and Jira &lt;A href="https://issues.apache.org/jira/browse/DRILL-5214"&gt;DRILL-5214&lt;/A&gt; has been raised for the same.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 14:28:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Drill-query-cannot-be-planned-possibly-due-to-either-a/m-p/178377#M61402</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2017-05-31T14:28:32Z</dc:date>
    </item>
  </channel>
</rss>

