• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] ' vslue outputted to the table after aggregate rows step

#1 2012-04-05 12:56:05

djugal
Member
Registered: 2011-06-16
Posts: 232
Website

[resolved] ' vslue outputted to the table after aggregate rows step

Hi,

I am facing this issue as the field after being aggregated by the function 'list' in the taggregate rows

i have this scenario where 1 student many activities
so for an particular activity i have to use list & ignore null

like for example

i/p schema (2 tables student & activity):
student
id name age
1 ron       14
2 sam      13

activity
id activity_name  position value
1   football          fwd
1   studies                       75
2   sam                           60



o/p schema

id name age football studies
1  ron   14    fwd        75
2  sam  13    ''           60


now as sam doesnt have football as activity '' is displayed but null is expected, any ans why '' coming


aggregaterow func
football     list
studies     sum

ignore null checked

any help here

thx & regards,
jugal

Offline

#2 2012-04-05 13:23:55

djugal
Member
Registered: 2011-06-16
Posts: 232
Website

Re: [resolved] ' vslue outputted to the table after aggregate rows step

its an extension of my earlier post http://www.talendforge.org/forum/viewtopic.php?id=17477

Offline

#3 2012-04-06 05:52:09

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

Re: [resolved] ' vslue outputted to the table after aggregate rows step

Hi

I created a job using the data above and didn't get '' in result.

Which version of TOS do you use?
Could you upload the screenshot of your job?

Regards,
Pedro


Uploaded Images


Only Paranoid Survive.

Offline

#4 2012-04-06 09:38:02

djugal
Member
Registered: 2011-06-16
Posts: 232
Website

Re: [resolved] ' vslue outputted to the table after aggregate rows step

jetlpro 4.1.2
can dis occurance dis due to my using db2 input to postgres o/p
screen is ditto like the one u posted just replacing file with db2 & log with postgres

thx & regards,
jugal

Offline

#5 2012-04-06 09:55:56

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

Re: [resolved] ' vslue outputted to the table after aggregate rows step

Hi Jugal

I try to reproduce this issue by using DB2 and Postgresql, but failed.

So I guess this is due to the data in your DB. Or you'd better run this job with other TOS version.

Regards,
Pedro


Only Paranoid Survive.

Offline

#6 2012-04-06 10:15:04

djugal
Member
Registered: 2011-06-16
Posts: 232
Website

Re: [resolved] ' vslue outputted to the table after aggregate rows step

Thx pedro will try

Offline

#7 2012-05-24 09:23:29

djugal
Member
Registered: 2011-06-16
Posts: 232
Website

Re: [resolved] ' vslue outputted to the table after aggregate rows step

i found the reason why its comin '', because i selected list operation & there was no value of football for sam i.e id=2
the inserted value in db is empty string i.e ""

1 way to alter this is to use treplace after aggregaterows & replace "" with null

can u suggest some other way

regards,
djugal

Offline

#8 2012-05-24 09:25:07

djugal
Member
Registered: 2011-06-16
Posts: 232
Website

Re: [resolved] ' vslue outputted to the table after aggregate rows step

sorry for the table mistake
it is
activity
id activity_name  position value
1   football          fwd
1   studies                       75
2   studies                       60

not
activity
id activity_name  position value
1   football          fwd
1   studies                       75
2   sam                           60

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] ' vslue outputted to the table after aggregate rows step

Board footer

Powered by FluxBB