<?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>topic Re: Read temporary views in SQL Analytics in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/read-temporary-views-in-sql-analytics/m-p/18518#M12296</link>
    <description>&lt;P&gt;So this is interesting, I tried to run the CREATE query per your example above:&lt;/P&gt;&lt;P&gt;CREATE TEMPORARY VIEW IF NOT EXISTS view_test AS&lt;/P&gt;&lt;P&gt;select * from ....&lt;/P&gt;&lt;P&gt;But this gave me a exception:&lt;/P&gt;&lt;P&gt;"It is not allowed to define a TEMPORARY view with IF NOT EXISTS"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I used a similar query before to create my view:&lt;/P&gt;&lt;P&gt;CREATE OR REPLACE TEMPORARY VIEW view_test AS&lt;/P&gt;&lt;P&gt;select * from ....&lt;/P&gt;&lt;P&gt;This works fine, the query returns: "was successfully executed" but I cant use the view becouse it's not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2022 14:54:29 GMT</pubDate>
    <dc:creator>Marra</dc:creator>
    <dc:date>2022-06-07T14:54:29Z</dc:date>
    <item>
      <title>Read temporary views in SQL Analytics</title>
      <link>https://community.databricks.com/t5/data-engineering/read-temporary-views-in-sql-analytics/m-p/18514#M12292</link>
      <description>&lt;P&gt;I'm having issues trying to read temporary views in SQL Analytics module. Ive managed to create temporary views based on a query but I don't know how to read from them? Just using the name of the view returns "Table or view not found".&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 09:27:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/read-temporary-views-in-sql-analytics/m-p/18514#M12292</guid>
      <dc:creator>Marra</dc:creator>
      <dc:date>2022-06-07T09:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Read temporary views in SQL Analytics</title>
      <link>https://community.databricks.com/t5/data-engineering/read-temporary-views-in-sql-analytics/m-p/18515#M12293</link>
      <description>&lt;P&gt;@Daniel Alteborg​&amp;nbsp;, Temp views are visible only to the session created and are dropped when the session ends.&lt;/P&gt;&lt;P&gt;I guess that is your issue here.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 09:44:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/read-temporary-views-in-sql-analytics/m-p/18515#M12293</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-06-07T09:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Read temporary views in SQL Analytics</title>
      <link>https://community.databricks.com/t5/data-engineering/read-temporary-views-in-sql-analytics/m-p/18516#M12294</link>
      <description>&lt;P&gt;No, I'm actually having issues reading from the view in the same session that created it. Using the same view name I get a table or view not found.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 09:55:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/read-temporary-views-in-sql-analytics/m-p/18516#M12294</guid>
      <dc:creator>Marra</dc:creator>
      <dc:date>2022-06-07T09:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Read temporary views in SQL Analytics</title>
      <link>https://community.databricks.com/t5/data-engineering/read-temporary-views-in-sql-analytics/m-p/18517#M12295</link>
      <description>&lt;P&gt;Strange,&lt;/P&gt;&lt;P&gt;did you create the view as follows:&lt;/P&gt;&lt;P&gt;CREATE TEMPORARY VIEW IF NOT EXISTS view&lt;/P&gt;&lt;P&gt;    AS ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(If you are on community edition this feature might not be available, can't tell.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 09:58:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/read-temporary-views-in-sql-analytics/m-p/18517#M12295</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-06-07T09:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Read temporary views in SQL Analytics</title>
      <link>https://community.databricks.com/t5/data-engineering/read-temporary-views-in-sql-analytics/m-p/18518#M12296</link>
      <description>&lt;P&gt;So this is interesting, I tried to run the CREATE query per your example above:&lt;/P&gt;&lt;P&gt;CREATE TEMPORARY VIEW IF NOT EXISTS view_test AS&lt;/P&gt;&lt;P&gt;select * from ....&lt;/P&gt;&lt;P&gt;But this gave me a exception:&lt;/P&gt;&lt;P&gt;"It is not allowed to define a TEMPORARY view with IF NOT EXISTS"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I used a similar query before to create my view:&lt;/P&gt;&lt;P&gt;CREATE OR REPLACE TEMPORARY VIEW view_test AS&lt;/P&gt;&lt;P&gt;select * from ....&lt;/P&gt;&lt;P&gt;This works fine, the query returns: "was successfully executed" but I cant use the view becouse it's not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 14:54:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/read-temporary-views-in-sql-analytics/m-p/18518#M12296</guid>
      <dc:creator>Marra</dc:creator>
      <dc:date>2022-06-07T14:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Read temporary views in SQL Analytics</title>
      <link>https://community.databricks.com/t5/data-engineering/read-temporary-views-in-sql-analytics/m-p/18519#M12297</link>
      <description>&lt;P&gt;I should be able to read the view with "select * from view_test"?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 14:55:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/read-temporary-views-in-sql-analytics/m-p/18519#M12297</guid>
      <dc:creator>Marra</dc:creator>
      <dc:date>2022-06-07T14:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Read temporary views in SQL Analytics</title>
      <link>https://community.databricks.com/t5/data-engineering/read-temporary-views-in-sql-analytics/m-p/18520#M12298</link>
      <description>&lt;P&gt;@Daniel Alteborg​, hm ok,&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/azure/databricks/sql/language-manual/sql-ref-syntax-ddl-create-view" alt="https://docs.microsoft.com/en-us/azure/databricks/sql/language-manual/sql-ref-syntax-ddl-create-view" target="_blank"&gt;https://docs.microsoft.com/en-us/azure/databricks/sql/language-manual/sql-ref-syntax-ddl-create-view&lt;/A&gt;&lt;/P&gt;&lt;P&gt;so it should work.&lt;/P&gt;&lt;P&gt;Maybe you do not have the necessary permissions?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 14:59:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/read-temporary-views-in-sql-analytics/m-p/18520#M12298</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-06-07T14:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Read temporary views in SQL Analytics</title>
      <link>https://community.databricks.com/t5/data-engineering/read-temporary-views-in-sql-analytics/m-p/18522#M12300</link>
      <description>&lt;P&gt;I havn't been able to resolve the issue. I'm using a admin account in databricks so it should't be a permission issue?&lt;/P&gt;&lt;P&gt;Is there any sample dataset that I can use in sql analytics so that I can try again and share my specific code here?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 10:11:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/read-temporary-views-in-sql-analytics/m-p/18522#M12300</guid>
      <dc:creator>Marra</dc:creator>
      <dc:date>2022-06-15T10:11:38Z</dc:date>
    </item>
  </channel>
</rss>

