Difference between Delta table and Delta Live table

 


what's the difference between a Delta table and a Delta Live tables ?

----------------------------------------------------------------------------------------------------------

Delta table is a way to store data in tables, whereas Delta Live Tables allows you to describe how data flows between these tables declaratively. Delta Live Tables is a declarative framework that manages many delta tables, by creating them and keeping them up to date. In short, Delta tables is a data format while Delta Live Tables is a data pipeline framework (source: https://learn.microsoft.com/en-us/azure/databricks/introduction/delta-comparison )


How to Create a materialized views in Delta live table.

---------------------------------------------------------------------------------------------------------

you can use below code to create Materialized view in DLT

spark.table("db_name.schem_name.table_Name"):

OR

spark.createDataFrame([], schema=Schema)

Remember if you use dlt.read_stream it will only create Delta Live table or Streaming table


Post a Comment