Surrogated key generator warning how to get rid off

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
times29
Premium Member
Premium Member
Posts: 202
Joined: Mon Sep 22, 2008 3:47 pm

Surrogated key generator warning how to get rid off

Post by times29 »

Hi,
I am using Surrogated key generator as in oracle the datatype is number(8,0) . i am getting below warning so how can i fix this in SK generator without changing datatype in oracle?

conversion from source type "uint64" to result type "int32

Thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

From a search for your warning message:

viewtopic.php?t=133840
-craig

"You can never have too many knives" -- Logan Nine Fingers
times29
Premium Member
Premium Member
Posts: 202
Joined: Mon Sep 22, 2008 3:47 pm

Post by times29 »

Thats what i did SK column bigint then transformer bigint still warning
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Then the warning isn't from the generator but rather from your target's attempt to squeeze a BIGINT into a NUMBER(8) field. At some point you will overflow that and the job will fail. However, in the meantime an explicit conversion may help, perhaps the DecimalToDecimal() function? Don't have any docs in front of me right now...
-craig

"You can never have too many knives" -- Logan Nine Fingers
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

or might be the warning is different? are you sure it is same warning for same stage?

If you changed it to bigint then I expect a warning as
conversion from source type "uint64" to result type "int64"

or the same warning for the next downstream operator, please check the warning message again.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
Post Reply