<?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: Read view data using notebook in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Read-view-data-using-notebook/m-p/4660735#M8736</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/756518"&gt;@UdaySutar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It appears that this approach might not work as expected because views created in a SQL Analytics Endpoint aren’t visible on the Lakehouse side. The metadata sync only happens from the Lakehouse to the SQL Endpoint, not the other way around.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As an alternative,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. Use a JDBC connector in your notebook to directly query the view from the SQL Endpoint, or&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. Recreate the view within the Lakehouse using Spark so that it becomes accessible in your notebook.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;If my response resolved your query, kindly mark it as the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Accepted Solution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;to assist others. Additionally, I would be grateful for a&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;'Kudos'&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;if you found my response helpful.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Apr 2025 09:44:04 GMT</pubDate>
    <dc:creator>V-yubandi-msft</dc:creator>
    <dc:date>2025-04-21T09:44:04Z</dc:date>
    <item>
      <title>Read view data using notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Read-view-data-using-notebook/m-p/4659202#M8713</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We are seeking to use a view within a SQL analytics Endpoint as a source of data for a dataframe in a notebook.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When we seek to query it, we see an error like&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;[TABLE_OR_VIEW_NOT_FOUND]&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;code looks like this. The view is under the sales schema.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Apr 2025 02:58:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Read-view-data-using-notebook/m-p/4659202#M8713</guid>
      <dc:creator>UdaySutar</dc:creator>
      <dc:date>2025-04-19T02:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Read view data using notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Read-view-data-using-notebook/m-p/4659324#M8714</link>
      <description>&lt;P class=""&gt;What do you get when you try this?&lt;/P&gt;&lt;P class=""&gt;spark.sql("SHOW TABLES IN sales").show()&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Things to check:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Case Sensitivity or Incorrect Naming&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Spark is case-sensitive by default. You must use exact case when referencing schema and view names.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;For example: if the view is Sales.DailySummary, you must use that exact casing.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;&lt;STRONG&gt;Default Database Context Missing&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;If you are not specifying the full-qualified name (schema.viewname or database.schema.viewname), Spark may not know which catalog or schema to search.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;&lt;STRONG&gt;View is Not Accessible from Spark&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;The view must be created or published in the SQL analytics endpoint tied to the lakehouse or warehouse.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Make sure the view is materialized or created in the same SQL analytics eendpoint that your notebook is connected to.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;&lt;STRONG&gt;View is a Virtual/External View Not Backed by Delta Lake or Tables&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Only views over actual physical tables (Delta format or supported filebacked) are accessible from Spark.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Avoid views built purely on unsupported or dynamic external sources.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Apr 2025 10:10:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Read-view-data-using-notebook/m-p/4659324#M8714</guid>
      <dc:creator>Vinodh247</dc:creator>
      <dc:date>2025-04-19T10:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Read view data using notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Read-view-data-using-notebook/m-p/4659587#M8718</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import com.microsoft.spark.fabric.tds.implicits.read.FabricSparkTDSImplicits._&lt;BR /&gt;import com.microsoft.spark.fabric.Constants&lt;/P&gt;&lt;P&gt;t_sql_query = """&lt;BR /&gt;SELECT * FROM your_view_name&lt;BR /&gt;"""&lt;/P&gt;&lt;P&gt;wsid = spark.conf.get("ws_id")&lt;BR /&gt;lh_name = spark.conf.get("lh_name")&lt;/P&gt;&lt;P&gt;df = spark.read.option(Constants.WorkspaceId, wsid).option(Constants.DatabaseName, lh_name).synapsesql(t_sql_query)&lt;/P&gt;&lt;P&gt;df.createOrReplaceTempView("view_data")&lt;/P&gt;</description>
      <pubDate>Sat, 19 Apr 2025 19:59:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Read-view-data-using-notebook/m-p/4659587#M8718</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-04-19T19:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Read view data using notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Read-view-data-using-notebook/m-p/4660735#M8736</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/756518"&gt;@UdaySutar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It appears that this approach might not work as expected because views created in a SQL Analytics Endpoint aren’t visible on the Lakehouse side. The metadata sync only happens from the Lakehouse to the SQL Endpoint, not the other way around.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As an alternative,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. Use a JDBC connector in your notebook to directly query the view from the SQL Endpoint, or&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. Recreate the view within the Lakehouse using Spark so that it becomes accessible in your notebook.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;If my response resolved your query, kindly mark it as the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Accepted Solution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;to assist others. Additionally, I would be grateful for a&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;'Kudos'&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;if you found my response helpful.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 09:44:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Read-view-data-using-notebook/m-p/4660735#M8736</guid>
      <dc:creator>V-yubandi-msft</dc:creator>
      <dc:date>2025-04-21T09:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Read view data using notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Read-view-data-using-notebook/m-p/4666864#M8834</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/756518"&gt;@UdaySutar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&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, 24 Apr 2025 13:22:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Read-view-data-using-notebook/m-p/4666864#M8834</guid>
      <dc:creator>V-yubandi-msft</dc:creator>
      <dc:date>2025-04-24T13:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Read view data using notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Read-view-data-using-notebook/m-p/4671015#M8896</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/756518"&gt;@UdaySutar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my 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;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 12:35:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Read-view-data-using-notebook/m-p/4671015#M8896</guid>
      <dc:creator>V-yubandi-msft</dc:creator>
      <dc:date>2025-04-28T12:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Read view data using notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Read-view-data-using-notebook/m-p/4677347#M9027</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/756518"&gt;@UdaySutar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;We noticed we haven't received a response from you yet, so we wanted to follow up and ensure the solution we provided addressed your issue. If you require any further assistance or have additional questions, please let us know.&lt;/P&gt;
&lt;P&gt;Your feedback is valuable to us, and we look forward to hearing from you soon.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 10:25:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Read-view-data-using-notebook/m-p/4677347#M9027</guid>
      <dc:creator>V-yubandi-msft</dc:creator>
      <dc:date>2025-05-02T10:25:53Z</dc:date>
    </item>
  </channel>
</rss>

