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: 

DLT pipeline - reading from external tables

ksenija
Contributor

Hello!

I created a DLT pipeline where my sources are external tables. I have to apply changes (stored_as_scd_type = 1). However, when I run my pipeline, I don't see any incremental uploads. The data remains in the same state as when I first created the pipeline. Do you have any suggestions?

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @lucasrocha ,

Yes, we are receiving new records in our tables and updated_at is always populated. We are using the same script to read data from foreign catalog and that DLT pipeline is working completely fine

   

 

 dlt.apply_changes(
       target = target_table,
       source = source_table,
       keys = ["id"],
       sequence_by = col("updated_at"),
       stored_as_scd_type = "1"
     )

 

 

Thanks in advance!
Ksenija

View solution in original post

2 REPLIES 2

lucasrocha
Databricks Employee
Databricks Employee

Hello @ksenija,

I hope this message finds you well.

Is your source table receiving new records? If so, are the fields (operation/sequenceNum) being filled?

If possible, please provide a sample of the code you are using to create your target table with apply changes.

Best regards,
Lucas Rocha

Hello @lucasrocha ,

Yes, we are receiving new records in our tables and updated_at is always populated. We are using the same script to read data from foreign catalog and that DLT pipeline is working completely fine

   

 

 dlt.apply_changes(
       target = target_table,
       source = source_table,
       keys = ["id"],
       sequence_by = col("updated_at"),
       stored_as_scd_type = "1"
     )

 

 

Thanks in advance!
Ksenija

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