<?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: Can we create views in Lakehouse's SQL Endpoint using Fabric Apis? in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-we-create-views-in-Lakehouse-s-SQL-Endpoint-using-Fabric/m-p/4140313#M3968</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="801440" data-lia-user-login="senthilkannan" class="lia-mention lia-mention-user"&gt;senthilkannan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply from frithjof_v&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As an alternative, you can connect to the SQL endpoint corresponding to lakehouse in warehouse and then create a view to use it.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any other questions please feel free to contact me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2024 08:57:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-09-09T08:57:22Z</dc:date>
    <item>
      <title>Can we create views in Lakehouse's SQL Endpoint using Fabric Apis?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-we-create-views-in-Lakehouse-s-SQL-Endpoint-using-Fabric/m-p/4133486#M3905</link>
      <description>&lt;P&gt;I am looking for a way to create views with-in lakehouse's SQL Endpoint using Fabric Apis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do we have a way to do that today?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 13:40:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-we-create-views-in-Lakehouse-s-SQL-Endpoint-using-Fabric/m-p/4133486#M3905</guid>
      <dc:creator>senthilkannan</dc:creator>
      <dc:date>2024-09-04T13:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create views in Lakehouse's SQL Endpoint using Fabric Apis?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-we-create-views-in-Lakehouse-s-SQL-Endpoint-using-Fabric/m-p/4134858#M3915</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="801440" data-lia-user-login="senthilkannan" class="lia-mention lia-mention-user"&gt;senthilkannan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the table I have stored inside lakehouse.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using PySpark, you can create views in Fabric Lakehouse and then view it inside the SQL endpoint.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;from pyspark.sql import SparkSession

# create Spark session
spark = SparkSession.builder \
    .appName("Create View in Lakehouse") \
    .getOrCreate()

# load data and name column header
df = spark.read.format("csv").option("header", "true").load("Files/products.csv")

# select column and create view
df.select("Month").write.mode("overwrite").saveAsTable("test_view1")

print("create success!")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After running the above code successfully, go to the corresponding SQL endpoint in lakehouse and refresh it to view the view.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any other questions please feel free to contact me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 06:50:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-we-create-views-in-Lakehouse-s-SQL-Endpoint-using-Fabric/m-p/4134858#M3915</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-05T06:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create views in Lakehouse's SQL Endpoint using Fabric Apis?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-we-create-views-in-Lakehouse-s-SQL-Endpoint-using-Fabric/m-p/4136068#M3929</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;I think the code you provided creates a table, not view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I don't think you need to create the Spark session in the code, as sessions are managed by Fabric.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I don't know the answer to the original question - how to create a view in SQL Analytics Endpoint via Fabric API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="801440" data-lia-user-login="senthilkannan" class="lia-mention lia-mention-user"&gt;senthilkannan&lt;/a&gt;&amp;nbsp;could you explain more about why you wish to create views by using Fabric API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps you can use jdbc or pyodbc. I'm not experienced with either of them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or perhaps you can use the run pipeline API or run notebook API. These API's are currently only in preview status.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SQL Analytics Endpoint has a SQL connection string so you can connect from client applications like SSMS.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 19:20:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-we-create-views-in-Lakehouse-s-SQL-Endpoint-using-Fabric/m-p/4136068#M3929</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-09-05T19:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create views in Lakehouse's SQL Endpoint using Fabric Apis?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-we-create-views-in-Lakehouse-s-SQL-Endpoint-using-Fabric/m-p/4140313#M3968</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="801440" data-lia-user-login="senthilkannan" class="lia-mention lia-mention-user"&gt;senthilkannan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply from frithjof_v&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As an alternative, you can connect to the SQL endpoint corresponding to lakehouse in warehouse and then create a view to use it.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any other questions please feel free to contact me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 08:57:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-we-create-views-in-Lakehouse-s-SQL-Endpoint-using-Fabric/m-p/4140313#M3968</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-09T08:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create views in Lakehouse's SQL Endpoint using Fabric Apis?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-we-create-views-in-Lakehouse-s-SQL-Endpoint-using-Fabric/m-p/4142995#M3998</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;The challenge with using the pysparks session to create a Lakehouse View is teh views doesn't show up in the UI -&amp;gt; see&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Data-Engineering/Creating-views-from-spark-notebook-into-SQL-analytics-endpoint/m-p/3820697/highlight/true#M1740" target="_blank" rel="noopener"&gt;Creating views from spark notebook into SQL analytics endpoint?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="437984" data-lia-user-login="frithjof_v" class="lia-mention lia-mention-user"&gt;frithjof_v&lt;/a&gt;&amp;nbsp;I am trying to build utilities to deploy a fabric workspaces using FabricApis. The intention is to setup Automated CD process for the fabric to promote code that fits into our org's requirements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Part of that is to figure out how to create Lakehouse views. I could get the connection string from the UI and I assumed ODBC would work. However there are no APIs to get the connection string of the Lakehouse's SQL analytics endpoint.&lt;BR /&gt;&lt;BR /&gt;let me know if there are any further questions on this.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 14:29:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-we-create-views-in-Lakehouse-s-SQL-Endpoint-using-Fabric/m-p/4142995#M3998</guid>
      <dc:creator>senthilkannan</dc:creator>
      <dc:date>2024-09-10T14:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create views in Lakehouse's SQL Endpoint using Fabric Apis?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-we-create-views-in-Lakehouse-s-SQL-Endpoint-using-Fabric/m-p/4143117#M4006</link>
      <description>&lt;P&gt;Have you tried the Lakehouse API?&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-api" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems you can use Create to create a Lakehouse, and then Get Properties to get the SQL Analytics Endpoint connection string.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 15:20:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-we-create-views-in-Lakehouse-s-SQL-Endpoint-using-Fabric/m-p/4143117#M4006</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-09-10T15:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create views in Lakehouse's SQL Endpoint using Fabric Apis?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-we-create-views-in-Lakehouse-s-SQL-Endpoint-using-Fabric/m-p/4169470#M4224</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="801440" data-lia-user-login="senthilkannan" class="lia-mention lia-mention-user"&gt;senthilkannan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is my follow-up just to ask if the problem has been solved?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, can you accept the correct answer as a solution or share your solution to help other members find it faster?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for your cooperation!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 06:09:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-we-create-views-in-Lakehouse-s-SQL-Endpoint-using-Fabric/m-p/4169470#M4224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-24T06:09:16Z</dc:date>
    </item>
  </channel>
</rss>

