<?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: How do I query custom schemas in lakehouses using sql magic cell ? in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-do-I-query-custom-schemas-in-lakehouses-using-sql-magic-cell/m-p/4386863#M6681</link>
    <description>&lt;P&gt;So far I have tried&amp;nbsp;workspace.lakehuse.schema.tablename , doesnt work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried USE SCHEMA and then queried, doesnt work&lt;/P&gt;&lt;P&gt;I have confirmed dbo schemas can be queried but not custom ones.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2025 19:26:57 GMT</pubDate>
    <dc:creator>akaur</dc:creator>
    <dc:date>2025-01-29T19:26:57Z</dc:date>
    <item>
      <title>How do I query custom schemas in lakehouses using sql magic cell ?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-do-I-query-custom-schemas-in-lakehouses-using-sql-magic-cell/m-p/4386830#M6678</link>
      <description>&lt;P&gt;I am unable to query it using sql magic cell. I verified the schema and the table below exists in this lakehouse. I got this error with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%%sql&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;SPAN&gt;select&lt;/SPAN&gt; &lt;SPAN&gt;*&lt;/SPAN&gt; &lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; sampleLAKEHOUSE.AJ.tblFacility&amp;nbsp; &amp;nbsp;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;[TABLE_OR_VIEW_NOT_FOUND] The table or view `sampleLAKEHOUSE`.`AJ`.`tblFacility` cannot be found. Verify the spelling and correctness of the schema and catalog. If you did not qualify the name with a schema, verify the current_schema() output, or qualify the name with the correct schema and catalog. To tolerate the error on drop use DROP VIEW IF EXISTS or DROP TABLE IF EXISTS.; line 1 pos 14; 'Project [*] +- 'UnresolvedRelation [sampleLAKEHOUSE, AJ, tblFacility], [], false&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;however, I am able to view this same data with dataframes and with sql endpoint&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 18:52:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-do-I-query-custom-schemas-in-lakehouses-using-sql-magic-cell/m-p/4386830#M6678</guid>
      <dc:creator>akaur</dc:creator>
      <dc:date>2025-01-29T18:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I query custom schemas in lakehouses using sql magic cell ?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-do-I-query-custom-schemas-in-lakehouses-using-sql-magic-cell/m-p/4386855#M6679</link>
      <description>&lt;P&gt;hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="356335" data-lia-user-login="akaur" class="lia-mention lia-mention-user"&gt;akaur&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%%sql&lt;BR /&gt;SELECT *&lt;BR /&gt;FROM YourWorkspace.SampleLakehouse.AJ.tblFacility&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If the default lakehouse or schema isn’t set, you must either specify the lakehouse name in your query or explicitly set it before running the query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;see if this works&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 19:20:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-do-I-query-custom-schemas-in-lakehouses-using-sql-magic-cell/m-p/4386855#M6679</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-01-29T19:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I query custom schemas in lakehouses using sql magic cell ?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-do-I-query-custom-schemas-in-lakehouses-using-sql-magic-cell/m-p/4386860#M6680</link>
      <description>&lt;P&gt;Read this for more details, remember this is in preview, so there may be limitations and bugs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-schemas" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-schemas&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 19:24:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-do-I-query-custom-schemas-in-lakehouses-using-sql-magic-cell/m-p/4386860#M6680</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-01-29T19:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I query custom schemas in lakehouses using sql magic cell ?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-do-I-query-custom-schemas-in-lakehouses-using-sql-magic-cell/m-p/4386863#M6681</link>
      <description>&lt;P&gt;So far I have tried&amp;nbsp;workspace.lakehuse.schema.tablename , doesnt work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried USE SCHEMA and then queried, doesnt work&lt;/P&gt;&lt;P&gt;I have confirmed dbo schemas can be queried but not custom ones.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 19:26:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-do-I-query-custom-schemas-in-lakehouses-using-sql-magic-cell/m-p/4386863#M6681</guid>
      <dc:creator>akaur</dc:creator>
      <dc:date>2025-01-29T19:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I query custom schemas in lakehouses using sql magic cell ?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-do-I-query-custom-schemas-in-lakehouses-using-sql-magic-cell/m-p/4386864#M6682</link>
      <description>&lt;P&gt;Interesting&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="356335" data-lia-user-login="akaur" class="lia-mention lia-mention-user"&gt;akaur&lt;/a&gt;&amp;nbsp; , just to make sure you have read rights to this ws and table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MS doc says&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;H2&gt;Cross-workspace Spark SQL queries&lt;/H2&gt;&lt;/DIV&gt;&lt;P&gt;Use the namespace "workspace.lakehouse.schema.table” to refer to tables in your code. This way, you can join tables from different workspaces if the user who runs the code has permission to access the tables.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;SELECT&lt;/SPAN&gt; * 
    &lt;SPAN class=""&gt;FROM&lt;/SPAN&gt; operations.hr.hrm.employees &lt;SPAN class=""&gt;as&lt;/SPAN&gt; employees 
    &lt;SPAN class=""&gt;INNER&lt;/SPAN&gt; &lt;SPAN class=""&gt;JOIN&lt;/SPAN&gt; global.corporate.company.departments &lt;SPAN class=""&gt;as&lt;/SPAN&gt; departments
    &lt;SPAN class=""&gt;ON&lt;/SPAN&gt; employees.deptno = departments.deptno;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this don't work please raise a support ticket with MS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please accept this answer if this is useful. So community users can find the right information quickly&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 19:30:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-do-I-query-custom-schemas-in-lakehouses-using-sql-magic-cell/m-p/4386864#M6682</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-01-29T19:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I query custom schemas in lakehouses using sql magic cell ?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-do-I-query-custom-schemas-in-lakehouses-using-sql-magic-cell/m-p/4391943#M6838</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="356335" data-lia-user-login="akaur" class="lia-mention lia-mention-user"&gt;akaur&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;As&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="913195" data-lia-user-login="nilendraFabric" class="lia-mention lia-mention-user"&gt;nilendraFabric&lt;/a&gt;&amp;nbsp; mentioned,it is in preview.&amp;nbsp;Thank you for the documentation.&amp;nbsp;&lt;SPAN data-teams="true"&gt;If the response has addressed your query, please&lt;STRONG&gt; accept it as a solution&lt;/STRONG&gt; and give a &lt;STRONG&gt;'Kudos'&lt;/STRONG&gt; so other members can easily find it.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Menaka.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 07:21:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-do-I-query-custom-schemas-in-lakehouses-using-sql-magic-cell/m-p/4391943#M6838</guid>
      <dc:creator>v-menakakota</dc:creator>
      <dc:date>2025-02-03T07:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I query custom schemas in lakehouses using sql magic cell ?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-do-I-query-custom-schemas-in-lakehouses-using-sql-magic-cell/m-p/4397676#M6986</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="356335" data-lia-user-login="akaur" class="lia-mention lia-mention-user"&gt;akaur&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;May I ask if you have resolved this issue? If so, please mark the helpful reply and &lt;STRONG&gt;accept it as the solution.&lt;/STRONG&gt; This will be helpful for other community members who have similar problems to solve it faster.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 07:10:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-do-I-query-custom-schemas-in-lakehouses-using-sql-magic-cell/m-p/4397676#M6986</guid>
      <dc:creator>v-menakakota</dc:creator>
      <dc:date>2025-02-06T07:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I query custom schemas in lakehouses using sql magic cell ?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-do-I-query-custom-schemas-in-lakehouses-using-sql-magic-cell/m-p/4398207#M7004</link>
      <description>&lt;P&gt;this isnt resolved yet. I can do cross workspace but calling custom schema in LH using spark sql does not work. I can only do dbo. but I will mark it complete as its still in preview&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 13:07:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-do-I-query-custom-schemas-in-lakehouses-using-sql-magic-cell/m-p/4398207#M7004</guid>
      <dc:creator>akaur</dc:creator>
      <dc:date>2025-02-06T13:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I query custom schemas in lakehouses using sql magic cell ?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-do-I-query-custom-schemas-in-lakehouses-using-sql-magic-cell/m-p/4398221#M7006</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="356335" data-lia-user-login="akaur" class="lia-mention lia-mention-user"&gt;akaur&lt;/a&gt;&amp;nbsp;You accepted the followup thread rather than real the solution. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 13:15:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-do-I-query-custom-schemas-in-lakehouses-using-sql-magic-cell/m-p/4398221#M7006</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-02-06T13:15:46Z</dc:date>
    </item>
  </channel>
</rss>

