cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Re-running DLT Pipeline Does Not Add Data After Delete

dbdude
New Contributor II

I am using DLT and unity catalog and using managed tables. The first table in this pipeline is a live streaming table. I first did this in the SQL editor:

DELETE FROM my_table;

This appears to have deleted all the records, which I wanted since now when I do a SELECT, it shows 0 rows. Then I re-ran the pipeline. This first table is running this command:

CREATE OR REFRESH STREAMING LIVE TABLE my_table
COMMENT "Data from S3"
TBLPROPERTIES ("myCompanyPipeline.quality" = "bronze")
AS
SELECT * FROM cloud_files("s3://my-bucket/path/", "parquet");

However when this pipeline finishes, the table has no data in it. What am I not understanding?

1 REPLY 1

BilalAslamDbrx
Databricks Employee
Databricks Employee

@Mo is correct!

 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group