The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello Experts,
I am trying to read the table and renaming of few columns through SQL and trying to load & create the table in the silver lakehouse.
Below is the code using through notebooks in the Fabric
I am trying to fetch the data from bronze layer (staging schema) and need to create & load the table with same data but changing of names. Please suggest.
@v-nikhilan-msft
thanks for the reply,
I know the workaround and could do through Dataflow Gen2 & Data Pipelines but requirement is to use & achieve it through notebooks.
is there any possibility through code & create the table in the silver lakehouse ?
Hi @amty63
Currently achieving this through notebooks is not possible, because we can have only one default lakehouse for a notebook.
Hope this helps.
Hi @amty63
We haven’t heard from you on the last response and was just checking back to see if your query got resolved. Otherwise, will respond back with the more details and we will try to help.
Thanks
Hi @amty63
We haven’t heard from you on the last response and was just checking back to see if your query got resolved. Otherwise, will respond back with the more details and we will try to help.
Thanks
Hi @amty63
Thanks for using Fabric Community.
Reading data from one lakehouse and creating a table using the same data in another lakehouse is not possible in Notebooks. The reason is there can be only one default lakehouse for a notebook in the current spark session. Instead you can use a dataflow and create a new table in another lakehouse. I have created a repro for you and attached the screenshots below:
I have a table named Covid_table in the Source Lakehouse. The schema is as below:
2) Create a Dataflow Gen2 and select the source as Lakehouse. Select the required lakehouse and the table.
After the data is successfully imported, you can do the required changes. You can remove the columns.
You can rename the columns:
After doing the changes, select the destination as the silver lakehouse.
Give the table a new name:
Save the settings and click on Publish. A new table will be created in the Lakehouse.
Hope this helps. Please let me know if you have any further questions.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Fabric update to learn about new features.
User | Count |
---|---|
5 | |
3 | |
2 | |
2 | |
2 |
User | Count |
---|---|
25 | |
12 | |
8 | |
4 | |
4 |