Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

SCD type 2 how to track deleted source rows?

Hi!

 

Is it possible to track deleted rows from the source with SCD 2. What I expect is that the current row in the target db will get an scd EndDate if the key was not found in the source input (csv).

Is this how it is supposed to work in Talend for SCD 2?

 

Any ideas or suggestions for how to cope with deleted records in source files is appreciated.

 

Thank you in advance.

 

Kind regards

 

RF

 

Labels (2)
1 Solution

Accepted Solutions
akumar2301
Specialist II
Specialist II

 

One way to identify it using tMap using Outer Join

 

Keep Your Table in  main And your CSV file in lookup and do Outer Join based on Keys.

If you do not find the record in Lookup , populate end date and then update your Table.

 

Let me know if any issue.

 

 

 

View solution in original post

2 Replies
David_Beaty
Specialist
Specialist

Hi,

 

I would have thought that the CDC strategy on the source system needs to change to report all rows that have had something happen to them (inserted updated deleted). Depends if you have a proper CDC mechanism or you are just selecting rows from source with a created/update date in the range of interest.

Not really a definitive answer but how Talend will handle it is probably second to actually getting the update to Talend.

 

akumar2301
Specialist II
Specialist II

 

One way to identify it using tMap using Outer Join

 

Keep Your Table in  main And your CSV file in lookup and do Outer Join based on Keys.

If you do not find the record in Lookup , populate end date and then update your Table.

 

Let me know if any issue.