<?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: Spark Temp View with two Lakehouses in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Temp-View-with-two-Lakehouses/m-p/4683530#M9128</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="328095" data-lia-user-login="tkiwi" class="lia-mention lia-mention-user"&gt;tkiwi&lt;/a&gt;&amp;nbsp; temporary views in spark are session-scoped; meaning they are short lived and don't exists beyond the scope of the query. If you are expecting to create a view with the hope that it shows up in table section of lakehouse tables, that is not the intended use of the TEMPORRY VIEW&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;fabric notebook has full support for them; try the following&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;spark.sql("create or replace temporary view temp_view_1 as select 1 as colA")
df = spark.sql(f"select * from temp_view_1")
df.show()&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 May 2025 17:04:11 GMT</pubDate>
    <dc:creator>smpa01</dc:creator>
    <dc:date>2025-05-07T17:04:11Z</dc:date>
    <item>
      <title>Spark Temp View with two Lakehouses</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Temp-View-with-two-Lakehouses/m-p/4633002#M8343</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hey there, I`ve got the following situation&lt;/P&gt;&lt;P&gt;Notebook with SparkSQL, the following SELECT is running&lt;/P&gt;&lt;PRE&gt;SELECT * FROM LH1.dbo.table1 t1 
JOIN LH2.dbo.table2 t2 
ON t1.columnID = t2.columnID&lt;/PRE&gt;&lt;P&gt;The following statement is also running&lt;/P&gt;&lt;PRE&gt;CREATE OR REPLACE TEMP VIEW tmp_select AS
SELECT * FROM LH1.dbo.table1 t1 
JOIN LH2.dbo.table2 t2
ON t1.columnID = t2.columnID  &lt;/PRE&gt;&lt;P&gt;But if I want to select this generated temporary View I get the following error:&lt;/P&gt;&lt;P&gt;[REQUIRES_SINGLE_PART_NAMESPACE] spark_catalog requires a single-part namespace, but got \LH1`.`dbo`.`&lt;/P&gt;&lt;P&gt;What I am doing wrong here?&lt;/P&gt;&lt;P&gt;P.S. Both Lakehouses are connected with my notebook and have schema enabled.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Apr 2025 10:41:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Temp-View-with-two-Lakehouses/m-p/4633002#M8343</guid>
      <dc:creator>tkiwi</dc:creator>
      <dc:date>2025-04-01T10:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Temp View with two Lakehouses</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Temp-View-with-two-Lakehouses/m-p/4633072#M8344</link>
      <description>&lt;P&gt;Found a reason by another post on reddit...Spark views are currently not supported:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-schemas#public-preview-limitations" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-schemas#public-preview-limitations&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 11:23:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Temp-View-with-two-Lakehouses/m-p/4633072#M8344</guid>
      <dc:creator>tkiwi</dc:creator>
      <dc:date>2025-04-01T11:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Temp View with two Lakehouses</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Temp-View-with-two-Lakehouses/m-p/4683530#M9128</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="328095" data-lia-user-login="tkiwi" class="lia-mention lia-mention-user"&gt;tkiwi&lt;/a&gt;&amp;nbsp; temporary views in spark are session-scoped; meaning they are short lived and don't exists beyond the scope of the query. If you are expecting to create a view with the hope that it shows up in table section of lakehouse tables, that is not the intended use of the TEMPORRY VIEW&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;fabric notebook has full support for them; try the following&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;spark.sql("create or replace temporary view temp_view_1 as select 1 as colA")
df = spark.sql(f"select * from temp_view_1")
df.show()&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 17:04:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Temp-View-with-two-Lakehouses/m-p/4683530#M9128</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2025-05-07T17:04:11Z</dc:date>
    </item>
  </channel>
</rss>

