Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be 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

Reply
kurnivannoery
Regular Visitor

Cannot Cross-workspace Spark SQL queries in Microsoft Fabric

I encountered the error [REQUIRES_SINGLE_PART_NAMESPACE] while trying to perform cross-workspace Spark SQL queries in Microsoft Fabric. The error states that 'spark_catalog requires a single-part namespace,' but I received 'Workspace.Lakehouse.dbo.' Do you have any solutions?

1 ACCEPTED SOLUTION

this issue is solved by adding lakehouse in notebook, if you didn't add lakehouse you can query lakehouse data.

View solution in original post

3 REPLIES 3
FabianSchut
Solution Sage
Solution Sage

Hi @kurnivannoery,

 

Did you enable schemas in both lakehouses? This is necessary to achieve this result: "Make sure you join tables only from lakehouses that have schemas enabled. Joining tables from lakehouses that don’t have schemas enabled won’t work.".

What is the complete query you are using?

this issue is solved by adding lakehouse in notebook, if you didn't add lakehouse you can query lakehouse data.

Hi @kurnivannoery 

Glad that you have solved it! Do you mean choosing a default Lakehouse for your notebook? Can you share the final query statement that works? This would help people who may encounter similar errors. 

 

Update:

I made a test. When selecting the lakehouse as the default lakehouse of the notebook, the query works without error. 

vjingzhanmsft_0-1727244233962.png

 

Best Regards,
Jing

Community Support Team

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.