#1 2012-03-06 12:01:37

pellegrino
Member
Registered: 2011-06-21
Posts: 11

Read excel by column

Hi all!
i have to process an excel with multiple sheet and indefinite number of rows/columns (so, with a dynamic schema)
my informations are written by column

     |A |B  |C |...|n
1   |a1|b1|c1|...|n1
2   |a2|b2|c2|...|n2
3   |a3|b3|c3|...|n3
4   |a4|b4|c4|...|n4
...  |...|... |...|...|...
n   |an|bn|cn|...|nn

i wish to have the output flow a1 a2 a3 a4 an | b1 b2 b3 b4 bn| c1 c2 c3 c4 cn.......
is there a simple way to READ an EXCEL BY COLUMN?  roll

i just tryed to use Tturnrow (but is incompatiblewith TOS5.2) tnormalize and tPivotToColumnDelimited (but needs static schema)
furthermore, for my big files would be better directly read it by cloumn instead of processing the whole file for turn column to row..

is there some component able to do this job? roll
Thank you !

Offline

#2 2012-03-07 10:20:27

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: Read excel by column

Hi

I come up with one workaround...
I want to get A column row by row and add each row into a string variable.
But as you say, you don't want to turn column to row for performance...
Does anyone have perfect solution?

Regards,
Pedro


Only Paranoid Survive.

Offline

#3 2012-03-07 10:44:18

avdbrink
Member
Company: Conspect Consulting & ICT
Registered: 2010-11-08
Posts: 360
Website

Re: Read excel by column

Hi,

No perfect solution (yet), maybe the Dynamic schema functions in the commercial version of DI are able to do the job here?

I'm currently working on another solution that can read an excel file with an unknown number of rows/columns but this component reads values cell by cell, converting them into key/value pairs, I don't think this meets your requirements.

Regards,
Arno

Offline

#4 2012-03-08 12:30:36

pellegrino
Member
Registered: 2011-06-21
Posts: 11

Re: Read excel by column

avdbrink wrote:

Hi,

No perfect solution (yet), maybe the Dynamic schema functions in the commercial version of DI are able to do the job here?

I'm currently working on another solution that can read an excel file with an unknown number of rows/columns but this component reads values cell by cell, converting them into key/value pairs, I don't think this meets your requirements.

Regards,
Arno

maybe.. but i'm poor  wink

did you uploaded that component in talend forge? maybe can help me..

Offline

#5 2012-03-08 14:36:53

avdbrink
Member
Company: Conspect Consulting & ICT
Registered: 2010-11-08
Posts: 360
Website

Re: Read excel by column

Hi,

Sorry for that wink

About my custom component: I haven't uploaded it, because it is still work in progress. I hope it will be finished soon, but no guarantee whatsoever big_smile

Regards,
Arno

Offline

Board footer

Powered by FluxBB