<?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 Notebook load data from a Lakehouse that's not default in Hack Together</title>
    <link>https://community.fabric.microsoft.com/t5/Hack-Together/Notebook-load-data-from-a-Lakehouse-that-s-not-default/m-p/3645502#M5</link>
    <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've loaded my sources and my medallion stages into their own lakehouses for scalability and trying to keep things tidy from the get-go. I'm now in a position where it would be REALLY useful to, within a notebook, be able to pull data in from a source, run some SQL on it, and load it into a layer. Pretty standard simple transformation step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can add those lakehouses to my notebook so they're both there, but I can't get data from any lakehouse that isnt the default for that notebook. If we can't get data from it, why can we add it? Is this somehting thats coming soon or am I doing something wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I select 'load data' from a table in a lakehouse that isnt default to the notebook, it auto populates the cell, starting with the comment:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# With Spark SQL, Please run the query onto the lakehouse which is from the same workspace as the current default lakehouse.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;df = spark.sql(&lt;/SPAN&gt;&lt;SPAN&gt;"SELECT * FROM SilverLayerLakehouse.myTable LIMIT 10"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;display(df)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and trying to run that cell yields the error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;AnalysisException&lt;/SPAN&gt;: Table or view not found: SilverLayerLakehouse.myTable; line 1 pos 14; 'GlobalLimit 10 +- 'LocalLimit 10 +- 'Project [*] +- 'UnresolvedRelation [SilverLayerLakehouse, myTable], [], false&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If I switch it to default it runs fine, but I need to load from source and store in silver with some SQL in between. With 'One lake' I assumed my data was visible from anywhere and that was the whole idea behind it, but I can't seem to get my notebook to read anything from a different lake? Am I missing something, or is this going to be functionality further down the line?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 18 Jan 2024 09:28:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-01-18T09:28:08Z</dc:date>
    <item>
      <title>Notebook load data from a Lakehouse that's not default</title>
      <link>https://community.fabric.microsoft.com/t5/Hack-Together/Notebook-load-data-from-a-Lakehouse-that-s-not-default/m-p/3645502#M5</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've loaded my sources and my medallion stages into their own lakehouses for scalability and trying to keep things tidy from the get-go. I'm now in a position where it would be REALLY useful to, within a notebook, be able to pull data in from a source, run some SQL on it, and load it into a layer. Pretty standard simple transformation step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can add those lakehouses to my notebook so they're both there, but I can't get data from any lakehouse that isnt the default for that notebook. If we can't get data from it, why can we add it? Is this somehting thats coming soon or am I doing something wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I select 'load data' from a table in a lakehouse that isnt default to the notebook, it auto populates the cell, starting with the comment:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# With Spark SQL, Please run the query onto the lakehouse which is from the same workspace as the current default lakehouse.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;df = spark.sql(&lt;/SPAN&gt;&lt;SPAN&gt;"SELECT * FROM SilverLayerLakehouse.myTable LIMIT 10"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;display(df)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and trying to run that cell yields the error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;AnalysisException&lt;/SPAN&gt;: Table or view not found: SilverLayerLakehouse.myTable; line 1 pos 14; 'GlobalLimit 10 +- 'LocalLimit 10 +- 'Project [*] +- 'UnresolvedRelation [SilverLayerLakehouse, myTable], [], false&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If I switch it to default it runs fine, but I need to load from source and store in silver with some SQL in between. With 'One lake' I assumed my data was visible from anywhere and that was the whole idea behind it, but I can't seem to get my notebook to read anything from a different lake? Am I missing something, or is this going to be functionality further down the line?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Jan 2024 09:28:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Hack-Together/Notebook-load-data-from-a-Lakehouse-that-s-not-default/m-p/3645502#M5</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-18T09:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook load data from a Lakehouse that's not default</title>
      <link>https://community.fabric.microsoft.com/t5/Hack-Together/Notebook-load-data-from-a-Lakehouse-that-s-not-default/m-p/3702059#M53</link>
      <description>&lt;P&gt;The medallion architecture suggests to have different zones within a lokehouse.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I understand your issue, you could create the file strcuture (zones) within workspae and in the same lakehouse.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 17:51:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Hack-Together/Notebook-load-data-from-a-Lakehouse-that-s-not-default/m-p/3702059#M53</guid>
      <dc:creator>darshanpv</dc:creator>
      <dc:date>2024-02-15T17:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook load data from a Lakehouse that's not default</title>
      <link>https://community.fabric.microsoft.com/t5/Hack-Together/Notebook-load-data-from-a-Lakehouse-that-s-not-default/m-p/3703532#M69</link>
      <description>&lt;P&gt;Having a single lakehouse with all layers contained within it goes against the access and security suggestions. Individual lakehouses in their own workspace allow for role based / workspace access permissions, keeping bronze safe, Silver accessible to data scientists and gold accessible to reporting analysts.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The solution I've been given for this from microsoft was to do shortcuts to the active lakehouse for any data I want to read in. Writing out can be done from anywhere.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 09:07:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Hack-Together/Notebook-load-data-from-a-Lakehouse-that-s-not-default/m-p/3703532#M69</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-16T09:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook load data from a Lakehouse that's not default</title>
      <link>https://community.fabric.microsoft.com/t5/Hack-Together/Notebook-load-data-from-a-Lakehouse-that-s-not-default/m-p/3704327#M72</link>
      <description>&lt;P&gt;from our experience, you can access any lakehouse and warehouse in the same workspace. Cross workspace will require shortcuts.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 15:15:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Hack-Together/Notebook-load-data-from-a-Lakehouse-that-s-not-default/m-p/3704327#M72</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-16T15:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook load data from a Lakehouse that's not default</title>
      <link>https://community.fabric.microsoft.com/t5/Hack-Together/Notebook-load-data-from-a-Lakehouse-that-s-not-default/m-p/3704338#M73</link>
      <description>&lt;P&gt;ps. you could also try an absolute approach to loading the correct lakehouse by using the abfss path&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from delta.tables import DeltaTable&lt;BR /&gt;lakehousePath = "abfss://yourpathhere"&lt;BR /&gt;deltaTablePath = f"{lakehousePath}/Tables/{tableName}"&lt;BR /&gt;deltaTable = DeltaTable.forPath(spark, deltaTablePath)&lt;BR /&gt;deltaTable.toDF().show()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can get the abfss path from the lakehouse. click onto the triple dots of the Tables Node in the left menu and open properties. if you don't see properties, be sure to be in lakehouse mode and not SQL Mode.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 15:22:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Hack-Together/Notebook-load-data-from-a-Lakehouse-that-s-not-default/m-p/3704338#M73</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-16T15:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook load data from a Lakehouse that's not default</title>
      <link>https://community.fabric.microsoft.com/t5/Hack-Together/Notebook-load-data-from-a-Lakehouse-that-s-not-default/m-p/4384487#M915</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I went through the same situation and found an answer in&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;A href="https://community.fabric.microsoft.com/t5/Data-Science/Spark-SQL-can-t-read-lakehouse-tables-in-a-schema-with-an/m-p/4274490#M538" target="_self"&gt;Spark SQL can't read lakehouse tables in a schema with an uppercase name&lt;/A&gt;. &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;You need to put the following code at the beginning of your notebook&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;spark.conf.set("spark.sql.caseSensitive", "true")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 13:58:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Hack-Together/Notebook-load-data-from-a-Lakehouse-that-s-not-default/m-p/4384487#M915</guid>
      <dc:creator>michelmetran</dc:creator>
      <dc:date>2025-01-28T13:58:46Z</dc:date>
    </item>
  </channel>
</rss>

