Pentaho 五氢釜中concat组的反向

Pentaho 五氢釜中concat组的反向,pentaho,kettle,normalize,Pentaho,Kettle,Normalize,在Pentaho水壶中,我有一些类似的数据 (它们实际上是复杂ldap查询的结果) 其中,x和y是我的表的列,y是一个普通字符串 我想规范化表,将其转换为 x y foo apple foo banana foo pear bar potato bar carrot bar tomato 有可能吗?可能使用javascript步骤?您可以在PDI中使用“将字段拆分为行””步骤。将除沫器用作“,”,它会将行拆

在Pentaho水壶中,我有一些类似的数据 (它们实际上是复杂ldap查询的结果)

其中,
x
y
是我的表的列,
y
是一个普通字符串

我想规范化表,将其转换为

x         y
foo       apple
foo       banana
foo       pear
bar       potato
bar       carrot
bar       tomato
有可能吗?可能使用javascript步骤?

您可以在PDI中使用“将字段拆分为行””步骤。将除沫器用作“”,它会将行拆分为所需的输出

在这里放了一个。你可以检查代码

x         y
foo       apple
foo       banana
foo       pear
bar       potato
bar       carrot
bar       tomato