<?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: Right deep join SQL syntax in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Right-deep-join-SQL-syntax/m-p/50318#M53177</link>
    <description>&lt;P&gt;I think this is related to &lt;A href="https://issues.cloudera.org/browse/IMPALA-4610" target="_blank"&gt;https://issues.cloudera.org/browse/IMPALA-4610&lt;/A&gt; . I think you already discovered the workaround of using full subqueries.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2017 18:42:59 GMT</pubDate>
    <dc:creator>Tim Armstrong</dc:creator>
    <dc:date>2017-02-02T18:42:59Z</dc:date>
    <item>
      <title>Right deep join SQL syntax</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Right-deep-join-SQL-syntax/m-p/50285#M53176</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I was trying to execute a right deep join and found that the following syntax seems to not be supported by Impala parser:&lt;/P&gt;&lt;PRE&gt;SELECT *
FROM viewA a
JOIN (
	viewB b JOIN (
		viewC c JOIN viewD d ON (c.fieldC = d.fieldD)
		) ON (b.fieldB = d.fieldD)
	) ON (a.fieldA = d.fieldD)
	
	&lt;/PRE&gt;&lt;P&gt;Also not working:&lt;/P&gt;&lt;PRE&gt;SELECT *
FROM viewA a
JOIN (
	viewB b JOIN (
		viewC c JOIN viewD d ON (c.fieldC = d.fieldD)
		) ON (b.fieldB = d.fieldD)
	) ON (a.fieldA = d.fieldD)&lt;/PRE&gt;&lt;P&gt;I can execute them by creating a full subquery in each join, but i am used to write this and does not seems to be a problem for other database parsers. Should this syntax work or it is intended to give a syntax error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:00:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Right-deep-join-SQL-syntax/m-p/50285#M53176</guid>
      <dc:creator>Jacobo</dc:creator>
      <dc:date>2022-09-16T11:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Right deep join SQL syntax</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Right-deep-join-SQL-syntax/m-p/50318#M53177</link>
      <description>&lt;P&gt;I think this is related to &lt;A href="https://issues.cloudera.org/browse/IMPALA-4610" target="_blank"&gt;https://issues.cloudera.org/browse/IMPALA-4610&lt;/A&gt; . I think you already discovered the workaround of using full subqueries.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 18:42:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Right-deep-join-SQL-syntax/m-p/50318#M53177</guid>
      <dc:creator>Tim Armstrong</dc:creator>
      <dc:date>2017-02-02T18:42:59Z</dc:date>
    </item>
  </channel>
</rss>

