March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I'm very new to data engineering and I'm having some trouble creating views from a spark notebook into the default lakehouse. The code runs successfully and tells me a view is being created but it doesn't appear in the lakehouse SQL endpoint.
Any tips would be appreciated.
Solved! Go to Solution.
You can create the views directly in the Lakehouse's SQL Analytics Endpoint.
You can create the views directly in the Lakehouse's SQL Analytics Endpoint.
Thankyou, I was worried this was the case. I was hoping that I could use spark notebooks because I cant automate the run of view scripts in a lakehouse via a pipeline.
Hi @somewhereels ,
If you are looking for a method to query the lakehouse from fabric pipeline then you can achieve a similar result using a script activity.
Take the SQL analytics endpoint from the lakehouse to create a new cloud connection - use External as an option and run the query against the cloud connection within the pipeline. Just ran and works.
Steps to connect to Lakehouse Endpoint using Script Activity:
1. Copy the SQL Endpoint from Lakehouse.
2. In Script, click on External and then Azure SQL Database, fill the details and use Organizational Account to establish connection.
3. Check the connection
4. Execute it
In your case, if you want to create a view,
Result:
FYI: Support for SQL endpoint for Lakehouse is in our backlog but we don't have a ETA.
Hope this is is helpful. Please let me know incase of further queries.
Hi @somewhereels ,
We haven’t heard from you on the last response and was just checking back to see if workaround helped you?
Hi yes I can get this solution to work, thankyou for your time. I don't think I tried this because I was under the assumption that the sql endpoint was read-only?
Hi @somewhereels ,
Glad to know that you got some insights. Please continue using Fabric Community on your further queries.
Hi @somewhereels ,
Thanks for using Fabric Community.
I can also observe the similar behaviour. Unfortunately I cannot access/see the views in SQL Endpoint, created through Fabric Notebook. At present we can only see the tables in SQL Endpoint, when created through Fabric Notebook.
At this time, we are reaching out to the internal team to get some help on this .
We will update you once we hear back from them.
Hi @somewhereels ,
Internal Team confirmed that this is not any issue.
Spark views won't show up in the SQL endpoint. It is the same behavior with Synapse Spark too. Views created in Synapse won't show up in Synapse serverless.
As @frithjof_v said, if you are interested to create a view in lakehouse, you can use sql endpoint functionality.
Hope this is helpful. Please let me know incase of further queries.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
7 | |
3 | |
3 | |
3 | |
2 |