• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » strange result given by Numeric.sequence("s1",1,1)

#1 2012-07-06 05:41:25

Joe
Member
Registered: 2011-01-07
Posts: 102

strange result given by Numeric.sequence("s1",1,1)

Hi all

Here are two subjobs in one father job.
one of the two named "Waiting for Rank"(call it job_a ),the other named "Rank"(job_b).

job_a—(onsubjobok)—>job_b

job_a write data into a csv file,and job_b will read and process it.

in job_b,there are three tmaps,each of them  do the same operation ,adding sequence cloumn for the tables order by different cloumn. so,here I used Numeric.sequence()  three times .( to distinguish them,i use "s1","s2","s3" as the string parameter).

when i run the father job directly,I get wrong sequence number for table1 which use the "s1" as the string parameter for the function. However ,if I run the two subjobs one by one,the result is ok.

I don't know why..

I change the "s1" to "s",and then ran the father job,the result is ok again.

Could any one give a in-depth expression about the function Numeric.sequence(string,int,int)  for me? especially the string parameter.

Thanks very much.

BestRegards,
Joe

Offline

#2 2012-07-06 08:13:53

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

Re: strange result given by Numeric.sequence("s1",1,1)

Hi Joe

Please send me an email with this export job.
I will test it for you.

Regards,
Pedro


Only Paranoid Survive.

Offline

#3 2012-07-06 08:56:19

Joe
Member
Registered: 2011-01-07
Posts: 102

Re: strange result given by Numeric.sequence("s1",1,1)

hi pedro
  I have tried to send a export job to shong before. But it seems that i can't send any file except words out from company computer.

Can you tell me the string parameter in Numeric.sequence()  is for what? In my opinion,it be without any real meaning.


Joe

Offline

#4 2012-07-06 09:05:24

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

Re: strange result given by Numeric.sequence("s1",1,1)

Hi Joe

There isn't any real meaning for the string parameter in Numeric.sequence().
Could you show us more detail so that I can reproduce this issue?

Regards,
Pedro


Only Paranoid Survive.

Offline

#5 2012-07-06 09:15:34

Joe
Member
Registered: 2011-01-07
Posts: 102

Re: strange result given by Numeric.sequence("s1",1,1)

Hi pedro

I'll try to copy it to my PC,and then send the job to you this night,certainly if i get the permission of IT.


Joe

Offline

#6 2012-07-10 02:36:37

alevy
Member
Registered: 2009-11-20
Posts: 1486

Re: strange result given by Numeric.sequence("s1",1,1)

I think perhaps you have Numeric.sequence("s1",1,1) in both subjobs?  The "s1" is just the name of the sequence but because sequences are created in a routine, they are shared across all jobs running in the same JVM i.e. each job run at the same time using the same sequence name will reference the same sequence.

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » strange result given by Numeric.sequence("s1",1,1)

Board footer

Powered by FluxBB