<?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: Cache Select on Temp Table? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/cache-select-on-temp-table/m-p/19058#M12720</link>
    <description>&lt;P&gt;Thank you! The newer documentation does indeed work for me.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jun 2022 15:35:21 GMT</pubDate>
    <dc:creator>auser85</dc:creator>
    <dc:date>2022-06-03T15:35:21Z</dc:date>
    <item>
      <title>Cache Select on Temp Table?</title>
      <link>https://community.databricks.com/t5/data-engineering/cache-select-on-temp-table/m-p/19055#M12717</link>
      <description>&lt;P&gt;How might I cache a temp table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation suggests it is possible: &lt;A href="https://docs.databricks.com/spark/latest/spark-sql/language-manual/delta-cache.html" target="test_blank"&gt;https://docs.databricks.com/spark/latest/spark-sql/language-manual/delta-cache.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider the following on DBR 10.5 and Spark 3.2.1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;%python&lt;/P&gt;&lt;P&gt;df.createOrReplaceTempView("changeset");&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;CACHE SELECT * from changeset&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;`CACHE supports only SELECT queries with optional WHERE clause, e.g. CACHE SELECT &amp;lt;columns&amp;gt; FROM &amp;lt;table&amp;gt; [ WHERE &amp;lt;predicate&amp;gt; ]`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 18:13:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cache-select-on-temp-table/m-p/19055#M12717</guid>
      <dc:creator>auser85</dc:creator>
      <dc:date>2022-06-01T18:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cache Select on Temp Table?</title>
      <link>https://community.databricks.com/t5/data-engineering/cache-select-on-temp-table/m-p/19056#M12718</link>
      <description>&lt;P&gt;@Andrew Fogarty​&amp;nbsp;, Please check if the doc helps you.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/spark/latest/spark-sql/language-manual/sql-ref-syntax-aux-cache-cache-table.html" alt="https://docs.databricks.com/spark/latest/spark-sql/language-manual/sql-ref-syntax-aux-cache-cache-table.html" target="_blank"&gt;https://docs.databricks.com/spark/latest/spark-sql/language-manual/sql-ref-syntax-aux-cache-cache-table.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 10:12:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cache-select-on-temp-table/m-p/19056#M12718</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2022-06-02T10:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cache Select on Temp Table?</title>
      <link>https://community.databricks.com/t5/data-engineering/cache-select-on-temp-table/m-p/19058#M12720</link>
      <description>&lt;P&gt;Thank you! The newer documentation does indeed work for me.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 15:35:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cache-select-on-temp-table/m-p/19058#M12720</guid>
      <dc:creator>auser85</dc:creator>
      <dc:date>2022-06-03T15:35:21Z</dc:date>
    </item>
  </channel>
</rss>

