<?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: Temporary view in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/temporary-view/m-p/132982#M49698</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/186479"&gt;@y_sanjay&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I guess that is somehow related to how sessions are managed within SQL Editor. For instance when I ran following queries in SQL Editor all at once it worked and I've got 3 result sets:&lt;/P&gt;&lt;P&gt;1) First result set with OK status - which means that my view was successfuly created&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1758743550688.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/20211iBFF6BC560DBFBA73/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1758743550688.png" alt="szymon_dybczak_0-1758743550688.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2) Second result set associated with my SELECT * FROM employees view&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_1-1758743602423.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/20212i1BA12CE78E9167C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_1-1758743602423.png" alt="szymon_dybczak_1-1758743602423.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3) And the last one associated with SHOW VIEWS;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_2-1758743635801.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/20213iF5EF5A81AF4B5586/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_2-1758743635801.png" alt="szymon_dybczak_2-1758743635801.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now, when I try to execute this code one statement at the time I've got the same error as you:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_3-1758743682924.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/20214i05A104F4FEBA603F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_3-1758743682924.png" alt="szymon_dybczak_3-1758743682924.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now, in the documentation they mentioned that temporary views are visible only to the session that created them and are dropped when the session ends. So that could suggest that in SQL Editor every query rans in new session or there is some kind of bug.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_4-1758743723931.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/20215i23FC9096EF85A5F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_4-1758743723931.png" alt="szymon_dybczak_4-1758743723931.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Because if I try to execute the same kind of code on the same kind of compute within notebook - there's no such an issue:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_5-1758743885586.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/20216i4258C6F9C9231CDF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_5-1758743885586.png" alt="szymon_dybczak_5-1758743885586.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Sep 2025 20:01:42 GMT</pubDate>
    <dc:creator>szymon_dybczak</dc:creator>
    <dc:date>2025-09-24T20:01:42Z</dc:date>
    <item>
      <title>Temporary view</title>
      <link>https://community.databricks.com/t5/data-engineering/temporary-view/m-p/132973#M49695</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I wrote a query to create temp view in my catalog, query execution was successful and returned the result as 'OK' in SQL editor window. However, when I executed the command 'Show Tables' and' Select * {temp_view}', it's not identifying the view. What could have gone wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 19:13:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/temporary-view/m-p/132973#M49695</guid>
      <dc:creator>y_sanjay</dc:creator>
      <dc:date>2025-09-24T19:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary view</title>
      <link>https://community.databricks.com/t5/data-engineering/temporary-view/m-p/132975#M49697</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/186479"&gt;@y_sanjay&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-ddl-create-view" target="_self"&gt;Temporary views&lt;/A&gt; are only usable in the scope of the notebook or SQL session where you defined them, then&amp;nbsp; they are dropped after the session ends.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You may want to use "&lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-aux-show-views" target="_blank" rel="noopener"&gt;SHOW VIEWS&lt;/A&gt;" instead that also shows temporary views, but again, in the same session to reflect the results; otherwise, it won't be visible.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 19:49:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/temporary-view/m-p/132975#M49697</guid>
      <dc:creator>mmayorga</dc:creator>
      <dc:date>2025-09-24T19:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary view</title>
      <link>https://community.databricks.com/t5/data-engineering/temporary-view/m-p/132982#M49698</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/186479"&gt;@y_sanjay&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I guess that is somehow related to how sessions are managed within SQL Editor. For instance when I ran following queries in SQL Editor all at once it worked and I've got 3 result sets:&lt;/P&gt;&lt;P&gt;1) First result set with OK status - which means that my view was successfuly created&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1758743550688.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/20211iBFF6BC560DBFBA73/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1758743550688.png" alt="szymon_dybczak_0-1758743550688.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2) Second result set associated with my SELECT * FROM employees view&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_1-1758743602423.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/20212i1BA12CE78E9167C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_1-1758743602423.png" alt="szymon_dybczak_1-1758743602423.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3) And the last one associated with SHOW VIEWS;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_2-1758743635801.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/20213iF5EF5A81AF4B5586/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_2-1758743635801.png" alt="szymon_dybczak_2-1758743635801.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now, when I try to execute this code one statement at the time I've got the same error as you:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_3-1758743682924.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/20214i05A104F4FEBA603F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_3-1758743682924.png" alt="szymon_dybczak_3-1758743682924.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now, in the documentation they mentioned that temporary views are visible only to the session that created them and are dropped when the session ends. So that could suggest that in SQL Editor every query rans in new session or there is some kind of bug.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_4-1758743723931.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/20215i23FC9096EF85A5F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_4-1758743723931.png" alt="szymon_dybczak_4-1758743723931.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Because if I try to execute the same kind of code on the same kind of compute within notebook - there's no such an issue:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_5-1758743885586.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/20216i4258C6F9C9231CDF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_5-1758743885586.png" alt="szymon_dybczak_5-1758743885586.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 20:01:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/temporary-view/m-p/132982#M49698</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-09-24T20:01:42Z</dc:date>
    </item>
  </channel>
</rss>

