<?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: CREATE TEMP TABLE in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/create-temp-table/m-p/110946#M43746</link>
    <description>&lt;P&gt;You can create temp tables in dlt pipelines as well&lt;BR /&gt;&lt;BR /&gt;simply&lt;BR /&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/97035"&gt;@Dlt&lt;/a&gt;.table(name ="temp_table", temporary = True)&lt;/P&gt;&lt;P&gt;def temp_table():&lt;/P&gt;&lt;P&gt;return &amp;lt;any_query&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 22 Feb 2025 05:52:58 GMT</pubDate>
    <dc:creator>ashraf1395</dc:creator>
    <dc:date>2025-02-22T05:52:58Z</dc:date>
    <item>
      <title>CREATE TEMP TABLE</title>
      <link>https://community.databricks.com/t5/data-engineering/create-temp-table/m-p/110933#M43744</link>
      <description>&lt;P&gt;The Databricks assistant tells me (sometimes) that `CREATE TEMP TABLE` is a valid SQL operation.&amp;nbsp; And other sources (e.g.,&amp;nbsp;&lt;A href="https://www.freecodecamp.org/news/sql-temp-table-how-to-create-a-temporary-sql-table/" target="_blank" rel="noopener"&gt;https://www.freecodecamp.org/news/sql-temp-table-how-to-create-a-temporary-sql-table/&lt;/A&gt;) say the same.&lt;/P&gt;&lt;P&gt;But in actual practice, this generates a syntax error.&amp;nbsp; And also, sometimes the Assistant tells me that it's not a valid operation, and I should use CREATE TEMP VIEW instead.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I don't want a view.&amp;nbsp; I want the data materialized.&amp;nbsp; Is there an option to actually do TEMP TABLE, or something like it?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 21:44:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-temp-table/m-p/110933#M43744</guid>
      <dc:creator>dkxxx-rc</dc:creator>
      <dc:date>2025-02-21T21:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE TEMP TABLE</title>
      <link>https://community.databricks.com/t5/data-engineering/create-temp-table/m-p/110935#M43745</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/137009"&gt;@dkxxx-rc&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can try to create a temp view and cache it. Caching will materialize it in memory.&lt;/P&gt;&lt;P&gt;CREATE TEMP VIEW temp_view AS&lt;/P&gt;&lt;P&gt;SELECT * FROM some_table WHERE condition&lt;/P&gt;&lt;P&gt;CACHE TABLE temp_view&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2025 01:43:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-temp-table/m-p/110935#M43745</guid>
      <dc:creator>KaranamS</dc:creator>
      <dc:date>2025-02-22T01:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE TEMP TABLE</title>
      <link>https://community.databricks.com/t5/data-engineering/create-temp-table/m-p/110946#M43746</link>
      <description>&lt;P&gt;You can create temp tables in dlt pipelines as well&lt;BR /&gt;&lt;BR /&gt;simply&lt;BR /&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/97035"&gt;@Dlt&lt;/a&gt;.table(name ="temp_table", temporary = True)&lt;/P&gt;&lt;P&gt;def temp_table():&lt;/P&gt;&lt;P&gt;return &amp;lt;any_query&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2025 05:52:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-temp-table/m-p/110946#M43746</guid>
      <dc:creator>ashraf1395</dc:creator>
      <dc:date>2025-02-22T05:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE TEMP TABLE</title>
      <link>https://community.databricks.com/t5/data-engineering/create-temp-table/m-p/113907#M44673</link>
      <description>&lt;P&gt;In addition to accepting KaranamS's answer, I will note a longer and useful discussion, with caveats, at&amp;nbsp;&lt;A href="https://community.databricks.com/t5/data-engineering/how-do-temp-views-actually-work/m-p/20137/highlight/true#M13584" target="_blank"&gt;https://community.databricks.com/t5/data-engineering/how-do-temp-views-actually-work/m-p/20137/highlight/true#M13584&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 15:10:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-temp-table/m-p/113907#M44673</guid>
      <dc:creator>dkxxx-rc</dc:creator>
      <dc:date>2025-03-28T15:10:07Z</dc:date>
    </item>
  </channel>
</rss>

