• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » pivot different columns to different rows

#1 2008-06-29 14:39:17

Alexis
New member
Registered: 2008-06-29
Posts: 1

pivot different columns to different rows

Tags: [csv, file, pivot]

Hi All,

I need some help to solve this problem:

This is the csv input file (separator are spaces in this case, to make the table more readable)

id1     id2     id3     param1  param2  param3  param4
1        1       1       value0    1           2            3
1        1       2       value1    0           4            1
1        1       3       value3    2           3            5
1        1       4       value5    7           8            0

I need an output schema like this:

id1     id2     id3     param_name      param_value
1        1       1       param1               value0
1        1       1       param2               1
1        1       1       param3               2
1        1       1       param4               3
1        1       2       param1               value1
1        1       2       param2               0
.
.
.

I tried with tMap but I have files that have like 6o different parameters.
So it becomes very complicated to handle 60 different outputs.

I was searching in the forum but sadly I couldn't find the answer.

Any help is really appreciated.

Last edited by Alexis (2008-06-29 14:46:34)

Offline

#2 2008-06-30 08:57:08

jcoutin
Member
Registered: 2008-05-30
Posts: 170

Re: pivot different columns to different rows

Hello,

I think that the Tnormalize component will help you.


JC

Offline

#3 2008-06-30 15:45:25

kvishali
Guest

Re: pivot different columns to different rows

My problem is also somewhat similar. If you find any solution or idea how to do it in JasperETL please do share. Thanks in advance smile

[Forum, post 13288 by kvishali in topic 3208] TMAP - T normalize

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » pivot different columns to different rows

Board footer

Powered by FluxBB