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
gunjankabra
New Member

Read data through data frame

I want to read data from two lakehouses and write it to another lakehouse but during notebook run i've to set one default lakehouse so is there any possible way to do this.

5 REPLIES 5
Anonymous
Not applicable

Hi @gunjankabra ,

Thanks for using Fabric Community. Yes it is possible to read data from default and write data in another lakehouse.

vgchennamsft_0-1710316233046.png


Reading Data from Default Lakehouse -

df = spark.sql("SELECT * FROM gopi_lake_house.customer_table1 LIMIT 1000")
display(df)


Writing Data to different lakehoue -

df.write.format("delta").saveAsTable("gopi_test_lakehouse.sales_external")


Hope this is helpful. Please let me know incase of further queries.

Anonymous
Not applicable

Hi @gunjankabra ,

We havenโ€™t heard from you on the last response and was just checking back to see if you have a resolution yet .
In case if you have any resolution please do share that same with the community as it can be helpful to others .
Otherwise, will respond back with the more details and we will try to help .

i want to read data from two different lakehouses in single notebook and write to another

Anonymous
Not applicable

Hi @gunjankabra ,

Please correct if my understanding is wrong.

As per my understanding, you can read tables from different lakehouse in single notebook and can save it as table in different lakehouse.

vgchennamsft_0-1710406268535.png


Note: Default Lakehouse is gopi_bronze here.

Hope this is helpful. Please let me know incase of further queries.

Anonymous
Not applicable

Hello @gunjankabra ,

We havenโ€™t heard from you on the last response and was just checking back to see if you have a resolution yet .
Otherwise, will respond back with the more details and we will try to help .

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Weeks

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (27)