Warm tip: This article is reproduced from serverfault.com, please click

其他-如何从 Talend 中的一行创建多行?

(其他 - How to make multiple rows from one row in Talend?)

发布于 2020-12-28 21:38:56

我有看起来像这样的数据:

Name | Address | FormName
John | 123 Apple Drive | Form1 Form2 Form3
Dave| 133 Westchester Drive | Form1 Form2 Form3

如何根据该FormName将其转换为多行所以结果将是:

Name | Address | FormName
John | 123 Apple Drive | Form1
John | 123 Apple Drive | Form2
John | 123 Apple Drive | Form3
Dave| 133 Westchester Drive | Form1 
Dave| 133 Westchester Drive | Form2
Dave| 133 Westchester Drive | Form3

因此,为每个人的每个表单创建了一行。

我尝试使用该tJavaFlex组件,但这对于这个简单的任务来说似乎太复杂了。

Questioner
mastercool
Viewed
0
mastercool 2020-12-29 06:12:55

我发现tNormalize它正是这样做的!tNormalizetMap像这样连接到我的img1

tNormalize组件中,我指定了要在(空格)上分隔的内容以及要标准化的列在此处输入图片说明