<?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 What's the difference between a Global view and a Temp view? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/what-s-the-difference-between-a-global-view-and-a-temp-view/m-p/21708#M14837</link>
    <description>&lt;P&gt;The difference between Global and Temp is how the lifetime of the view is tied to the application:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://spark.apache.org/docs/latest/api/python/reference/api/pyspark.sql.DataFrame.createOrReplaceTempView.html?highlight=createorreplacetempview#pyspark.sql.DataFrame.createOrReplaceTempView" target="test_blank"&gt;http://spark.apache.org/docs/latest/api/python/reference/api/pyspark.sql.DataFrame.createOrReplaceTempView.html?highlight=createorreplacetempview#pyspark.sql.DataFrame.createOrReplaceTempView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Creates or replaces a local temporary view with this&amp;nbsp;&lt;B&gt;DataFrame&lt;/B&gt;.&lt;/P&gt;&lt;P&gt;The lifetime of this temporary table is tied to the&amp;nbsp;&lt;B&gt;SparkSession&amp;nbsp;that was used to create this&amp;nbsp;DataFrame&lt;/B&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://spark.apache.org/docs/latest/api/python/reference/api/pyspark.sql.DataFrame.createOrReplaceGlobalTempView.html?highlight=createorreplaceglobaltempview#pyspark.sql.DataFrame.createOrReplaceGlobalTempView" target="test_blank"&gt;http://spark.apache.org/docs/latest/api/python/reference/api/pyspark.sql.DataFrame.createOrReplaceGlobalTempView.html?highlight=createorreplaceglobaltempview#pyspark.sql.DataFrame.createOrReplaceGlobalTempView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Creates or replaces a global temporary view using the given name.&lt;/P&gt;&lt;P&gt;The lifetime of this temporary view is &lt;B&gt;tied to&amp;nbsp;this Spark application.&lt;/B&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 22:39:55 GMT</pubDate>
    <dc:creator>User15787040559</dc:creator>
    <dc:date>2021-06-22T22:39:55Z</dc:date>
    <item>
      <title>What's the difference between a Global view and a Temp view?</title>
      <link>https://community.databricks.com/t5/data-engineering/what-s-the-difference-between-a-global-view-and-a-temp-view/m-p/21708#M14837</link>
      <description>&lt;P&gt;The difference between Global and Temp is how the lifetime of the view is tied to the application:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://spark.apache.org/docs/latest/api/python/reference/api/pyspark.sql.DataFrame.createOrReplaceTempView.html?highlight=createorreplacetempview#pyspark.sql.DataFrame.createOrReplaceTempView" target="test_blank"&gt;http://spark.apache.org/docs/latest/api/python/reference/api/pyspark.sql.DataFrame.createOrReplaceTempView.html?highlight=createorreplacetempview#pyspark.sql.DataFrame.createOrReplaceTempView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Creates or replaces a local temporary view with this&amp;nbsp;&lt;B&gt;DataFrame&lt;/B&gt;.&lt;/P&gt;&lt;P&gt;The lifetime of this temporary table is tied to the&amp;nbsp;&lt;B&gt;SparkSession&amp;nbsp;that was used to create this&amp;nbsp;DataFrame&lt;/B&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://spark.apache.org/docs/latest/api/python/reference/api/pyspark.sql.DataFrame.createOrReplaceGlobalTempView.html?highlight=createorreplaceglobaltempview#pyspark.sql.DataFrame.createOrReplaceGlobalTempView" target="test_blank"&gt;http://spark.apache.org/docs/latest/api/python/reference/api/pyspark.sql.DataFrame.createOrReplaceGlobalTempView.html?highlight=createorreplaceglobaltempview#pyspark.sql.DataFrame.createOrReplaceGlobalTempView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Creates or replaces a global temporary view using the given name.&lt;/P&gt;&lt;P&gt;The lifetime of this temporary view is &lt;B&gt;tied to&amp;nbsp;this Spark application.&lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 22:39:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/what-s-the-difference-between-a-global-view-and-a-temp-view/m-p/21708#M14837</guid>
      <dc:creator>User15787040559</dc:creator>
      <dc:date>2021-06-22T22:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: What's the difference between a Global view and a Temp view?</title>
      <link>https://community.databricks.com/t5/data-engineering/what-s-the-difference-between-a-global-view-and-a-temp-view/m-p/21709#M14838</link>
      <description>&lt;P&gt;In the context of Databricks Notebooks and Clusters &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A Temp View is available across the context of a Notebook and is a common way of sharing data across various language REPL - Ex:- Python to Scala. &lt;/LI&gt;&lt;LI&gt;A Global Temp View is available to all Notebooks running on that Databricks Cluster&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 23 Jun 2021 04:11:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/what-s-the-difference-between-a-global-view-and-a-temp-view/m-p/21709#M14838</guid>
      <dc:creator>aladda</dc:creator>
      <dc:date>2021-06-23T04:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: What's the difference between a Global view and a Temp view?</title>
      <link>https://community.databricks.com/t5/data-engineering/what-s-the-difference-between-a-global-view-and-a-temp-view/m-p/67457#M33344</link>
      <description>&lt;P&gt;Correct A Temp View is scoped to the SparkSession and dropped when that session closes.&amp;nbsp; Each notebook runs in its own SparkSession.&amp;nbsp; The Global Temp View is scoped to the cluster and dropped when the cluster re-starts or you drop it.&lt;/P&gt;
&lt;P&gt;----------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;TEMPORARY&lt;/P&gt;
&lt;P&gt;TEMPORARY views are visible only to the session that created them and are dropped when the session ends.&lt;/P&gt;
&lt;P&gt;GLOBAL TEMPORARY&lt;/P&gt;
&lt;P&gt;Applies to: check marked yes Databricks Runtime&lt;/P&gt;
&lt;P&gt;GLOBAL TEMPORARY views are tied to a system preserved temporary schema global_temp.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/en/sql/language-manual/sql-ref-syntax-ddl-create-view.html" target="_blank"&gt;https://docs.databricks.com/en/sql/language-manual/sql-ref-syntax-ddl-create-view.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2024 01:27:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/what-s-the-difference-between-a-global-view-and-a-temp-view/m-p/67457#M33344</guid>
      <dc:creator>ScottSmithDB</dc:creator>
      <dc:date>2024-04-27T01:27:18Z</dc:date>
    </item>
  </channel>
</rss>

