Tuesday, February 28, 2012

Talend tReplaceList is order insensitive

For example if you want to replace cat with hat and then later replace all hat with mat, tReplaceList does not guarantee it. The reason behind this is the usage of Java hashmap's itterate function. They functions does not return keys in the order in which they are inserted.

To go around this problem you have to write you own implementation of the tReplaceList using a sorted map.

1 comment:

  1. can treplacelist be used to replace multiple special characters on multiple columns

    ReplyDelete