Map Operation Transform Before Table Comparision

Hi All,

I found that some of the Incremental loads have Map operation tranforms before and after the Table comparison. Did anyone know the reason why some DI developers use Map Operation transform before table comparision?

Please let me know.

Thanks.


Bindaas BODS :uk: (BOB member since 2010-03-25)

There are four reasons to use a Map_Operation

  • To control what is pushed down into the source database, e.g. my Query_2 contains a substr() function but I want to execute it in the ETL engine instead of pushing it into the reading SQL. If the Map is directly in front of the TC it does not make sense.

  • To change the opcode of normal rows to insert/update/delete and hence all input rows are read but instead of the loader issuing an insert statement, you want to e.g. delete all these rows. Again, if a Table Comparison is downstream it does not make sense.

  • To change the opcode of an insert/update/delete row to normal so it can be connected to a query and later you change it back to what it was. A workaround as queries cannot deal with insert/update/delete flagged rows. Example: https://wiki.sdn.sap.com/wiki/display/BOBJ/Creating+a+last+insert+and+last+update+date

  • To get rid of rows with a specific opcode. Again, then the Map would be behind the Table Comparison.


Werner Daehn :de: (BOB member since 2004-12-17)

This makes sense, but in the mappings I saw map operation is directly infront of Table comparision converting every opcode to normal and then I don’t see any transformation before that manipulating opcodes.

Thanks for the confirmation Werner


Bindaas BODS :uk: (BOB member since 2010-03-25)