Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
I am trying to create a Materialized Lake View in Fabric based on a dataFrame. Since, it seem impossible directly (unless anobody can suggest)
I tried to create both a temporary view/ Global temporary view using:
Solved! Go to Solution.
For that, you have to understand bronze, silver and gold tables.
So, this is how it works:
Python --> Apache Spark ( spark ) --> delta lake ( parquet with _delta_log transaction log) ( bronze, silver and gold tables ) .
In Delta Lake, we are implementing bronze tables. Once the initial table is created in bronze tables, then we will proceed to materialised lake view ( silver tables ), and finally we will implement the final gold tables.
so here First, create a apache spark ( dataframe ) using pyspark which is correct in your instance ( df ) . then convert it into bronze delta tables . For that,
Thanks to each one of you for your suggestions and responses. @BhaveshPatel @spaceman127 @v-hjannapu
Hi @AyusmanBasu0604.,
Thank you for reaching out to the Microsoft fabric community forum.
I would also take a moment to thank @spaceman127, @BhaveshPatel for actively participating in the community forum and for the solutions you have been sharing in the community forum. Your contributions make a real difference.
In Fabric, you can’t create a Materialized Lake View directly from a temporary Spark view. That’s why it’s showing the table not found error the temp view exists only in your current Spark session, not in the Lakehouse.
In addition to the suggested answers above, please review the documentation below as it may help you resolve your issue.
https://learn.microsoft.com/en-us/fabric/data-engineering/materialized-lake-views/tutorial
https://learn.microsoft.com/en-us/fabric/data-engineering/materialized-lake-views/overview-materiali...
https://learn.microsoft.com/en-us/fabric/data-engineering/materialized-lake-views/get-started-with-m...
Hope this helps if you have any queries we are happy to assist you further.
Regards,
Harshitha.
Hello @AyusmanBasu0604 ,
You cannot create the view directly from a Dataframe.
Instead, you must go though the created table and then create the view.
This has @BhaveshPatel already been added as part of the solution in his answer.
Best regards
For that, you have to understand bronze, silver and gold tables.
So, this is how it works:
Python --> Apache Spark ( spark ) --> delta lake ( parquet with _delta_log transaction log) ( bronze, silver and gold tables ) .
In Delta Lake, we are implementing bronze tables. Once the initial table is created in bronze tables, then we will proceed to materialised lake view ( silver tables ), and finally we will implement the final gold tables.
so here First, create a apache spark ( dataframe ) using pyspark which is correct in your instance ( df ) . then convert it into bronze delta tables . For that,
User | Count |
---|---|
4 | |
4 | |
2 | |
2 | |
2 |
User | Count |
---|---|
10 | |
8 | |
7 | |
6 | |
6 |