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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
kurnivannoery
New Contributor

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
Contributor III

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.

Anonymous
Not applicable

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
Users online (2,086)