Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

Table Comparison tagging as update but not updated on the target.

$
0
0

What we are doing is

1. Joining four tables (since we need to do self join we have used same table twice so total 3 tables)

2. QT1 (Query Transformation 1) - Pulling out three columns from the output using query transformation.

3. QT1 - For one of the columns mapping, I have used rpad((COL1 || COL2 || 'TXT'), 30, ' ').

4. QT1 - For some reason rpad here on QT1 is not working.

5. So if I am keying XXXYYY121 I am expecting "XXXYYY121                     " as output but this is not happening.

6. So I have to use another QT2 for doing this logic

7. On QT1 simply I mapped the col this way - COL1 || COL2 || 'TXT'

8. On QT2 I am rpadding the column, rpad(COL, 30, ' ') . This works and it gave the expected output.

9. Now I am feeding this value to a table comparison. I am comparing two columns based on a primay key.

Value of that PK is "XXXYYY121                     " .

10. When I run the job in debug mode, I can see record tagged as update from TC.

11. I have mapping operation whose option is Update as Update.

12. I can see record still tagged as Update from the Mapoperation. But on the target table, column value is still same and its not getting updated. Not sure why.

 

Did anyone faced the same scenario where TC and MO tagged the record as update but not updating the record on the target table.

 

ManyThanks,

Srinivas Kumar


Viewing all articles
Browse latest Browse all 4013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>