How to create dlt streaming live table using python in databricks

I have created a streaming live table using sql as below:

CREATE STREAMING LIVE TABLE customers_count_streaming
COMMENT "count of customers"
TBLPROPERTIES ("myCompanyPipeline.quality" = "gold")
AS
SELECT count(*) as customers_count
FROM STREAM(LIVE.customers_cleaned)

How can I create exact same table but using python @dlt in databricks

Leave a Comment