作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我遇到了一个非常棘手的情况,尚未使用 Talend 提出自己的解决方案。我有一个输入 MySql,它有许多列,当 VALUE 列包含 1;1;1 时,需要将第一个字符串从 MATCHING 列复制到 contactFirstName 列
我正在使用 tjavarow 组件。
所需描述:
批量设计:
最佳答案
使用简单的 tMap,对输出流中的 contactFirstname 字段使用以下表达式:row46.VALUE.equals("1;1;1") ? row46.MATCHING.replaceAll(";.*$", "") : row46.contactFirstname
希望这有帮助。
成绩单
关于java - Talend-如何将字符串从 'MATCHING' 列替换为 'contactFirstName' 列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43997269/
我是一名优秀的程序员,十分优秀!