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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
sushantk19
Creator
Creator

Implementing SCD2 using TOS SCD components

Hi,

I have to implement SCD2 logic(Insert/update) in my TOS code using SCD2 components. My Target DB is Amazon Redshift. Can you please let me know which TOS component needs to be used here ?Will tMysqlSCD or tOracleSCD work ?

Labels (2)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

@sushantk19 , you can implement scd2 with postgresqlSCD component.

 

 

View solution in original post

9 Replies
sushantk19
Creator
Creator
Author

All inputs on above query. How do I implement SCD2 in Redshift Database?

manodwhb
Champion II
Champion II

@sushantk19 , I do not think that we have Redshift SCD component in Talend, you can not use MysqlSCD or tOracleSCD for Redshift Database.

 

Prakhar1
Creator III
Creator III

Hi, 

try to use JDBC component for that.

You can configure the jdbc url for your Redshift connection.

Don't forget to give Kudos

sushantk19
Creator
Creator
Author

Presently, I am trying without SCD component. But facing the below issue.Its not even Inserting data in my Target table. Please see the screenshots attached. I already have 2 country ids in my target. Source  has 253 unique country ids, so as per the Insert update logic it should insert 251 and update 2 records.


Job_Design_SCD2.png
promotion_order.csv
tmap_output.png
sushantk19
Creator
Creator
Author

I tried both of them :

Please see the below error:
Exception in component tDBSCD_2 (job_CORE_000_Country_test)
java.sql.SQLRecoverableException: IO Error: Got minus one from a read call

with tMySQLSCD getting communication Link error although all the DB connections are correct.
sushantk19
Creator
Creator
Author

what should i give in JDBC URL? I have very limited knowledge on Java. If possible, can you share your job design?
Prakhar1
Creator III
Creator III

I have never created job like this so can't share the job design now.

The JDBC URL will look like this : 

jdbc:redshift://<endpoint>:<port>/<database>

 

You can also go through this link to create connection to the JDBCSCD component

https://docs.aws.amazon.com/redshift/latest/mgmt/configure-jdbc-connection.html

 

sushantk19
Creator
Creator
Author

@Prakhar @manodwhb thanks!. I used the postgresqlSCD component and worked perfectly fine for my requirement! Is there any issue with this component for implementing SCD2?

manodwhb
Champion II
Champion II

@sushantk19 , you can implement scd2 with postgresqlSCD component.