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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

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.

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 .

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 .

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors