Forum Discussion
pmscorca
Post Prodigy
6 months agoUsing MLV to write data from a lakehouse into a warehouse
Hi, for a Fabric solution I've a lakehouse to save data read from some sources and a warehouse having a staging area and a dwh area. I think to use some MLVs to perform some transformation on raw d...
- 6 months ago
I stand corrected, you can use a shortcut, but you dont have to, you can query the MLV directly and insert it in a staging table in the warehouse, and from there ETL to your gold layer, using a pipeline
Some sample code:TRUNCATE TABLE stg.factSales_stg;INSERT INTO stg.factSales_stg(sale_id, sale_date, customer_id, product_id,quantity, amount, region_name, last_update_ts)SELECTsale_id, sale_date, customer_id, product_id,quantity, amount, region_name, SYSUTCDATETIME()FROM lh_sales.sales.v_fact_sales_mlvMLV to staging table, staging table ETL to gold layer is the considered best practice.
v-ssriganesh
Community Support
6 months agoHello pmscorca,
We hope you're doing well. Could you please confirm whether your issue has been resolved or if you're still facing challenges? Your update will be valuable to the community and may assist others with similar concerns.
Thank you.